nextgrid.api.pom
Interface Grounding

All Superinterfaces:
java.io.Serializable

public interface Grounding
extends java.io.Serializable

Implementation of the service logic.

Author:
Rodrigo Ruiz, Nikolaos Matskanis

Field Summary
static javax.xml.namespace.QName ATTR_GROUNDING_TYPE
          Attribute key for the service grounding type URI.
static javax.xml.namespace.QName ATTR_OPERATION
          Attribute key for service groundings accepting operation names.
static java.lang.String NS_GROUNDING
          Name space for grounding attributes.
 
Method Summary
 void dispose()
          Clean up.
 java.util.Map<javax.xml.namespace.QName,java.lang.String> getSupportedAttribs()
          Gets the names and descriptions of all supported attributes.
 java.net.URI getType()
          Gets a URI for the type of this grounding.
 void invoke(ProcessEnvironment env, Service service)
          Invokes the logic of this grounding.
 void validate()
          Validates this grounding.
 

Field Detail

NS_GROUNDING

static final java.lang.String NS_GROUNDING
Name space for grounding attributes.

See Also:
Constant Field Values

ATTR_GROUNDING_TYPE

static final javax.xml.namespace.QName ATTR_GROUNDING_TYPE
Attribute key for the service grounding type URI.


ATTR_OPERATION

static final javax.xml.namespace.QName ATTR_OPERATION
Attribute key for service groundings accepting operation names.

It is expected that standard groundings will be able to execute different actions depending on the service configuration. This attribute will be the basic configuration field for such groundings.

Method Detail

getType

java.net.URI getType()
Gets a URI for the type of this grounding. This URI can be used for looking up grounding implementations.

Returns:
The Grounding type as a URI

getSupportedAttribs

java.util.Map<javax.xml.namespace.QName,java.lang.String> getSupportedAttribs()
Gets the names and descriptions of all supported attributes.

The returned map contains [name, description] pairs of attributes.

Returns:
A map containing attribute names and descriptions

invoke

void invoke(ProcessEnvironment env,
            Service service)
            throws ProcessException
Invokes the logic of this grounding.

Parameters:
env - Process environment
service - The service instance on which this grounding must be executed
Throws:
ProcessException - If an error occurs

dispose

void dispose()
Clean up.


validate

void validate()
              throws ProcessException
Validates this grounding.

Throws:
ProcessException - If the validation fails


Copyright © 2006-2008 Grid Systems, S.A.. All Rights Reserved.