org.globus.ogsa.impl.samples.counter.delegation
Class CounterProvider
java.lang.Object
org.globus.ogsa.impl.samples.counter.delegation.CounterProvider
- All Implemented Interfaces:
- OperationProvider
- public class CounterProvider
- extends java.lang.Object
- implements OperationProvider
|
Field Summary |
static javax.xml.namespace.QName[] |
operations
|
|
Method Summary |
int |
add(int val)
|
javax.xml.namespace.QName[] |
getOperations()
called during initialization when the Grid service needs to find out
what operations are supported by this provider. |
int |
getValue()
|
void |
initialize(GridServiceBase base)
called when the operation provider is added to a grid service |
int |
subtract(int val)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
operations
public static javax.xml.namespace.QName[] operations
CounterProvider
public CounterProvider()
getOperations
public javax.xml.namespace.QName[] getOperations()
- Description copied from interface:
OperationProvider
- called during initialization when the Grid service needs to find out
what operations are supported by this provider.
- Specified by:
getOperations in interface OperationProvider
- Returns:
- an array of operation qnames as defined in WSDL. An
OperationProvider can use the empty string "" to denote that all
operations with a certain local name are implemented. Similarly
the wildcard "*" can be used in the local part of the qname to denote
that all operations within a certain namespace are implemented. Combining
these two approaches and returning:
new QName[] {new QName("","*")}, will result in all incoming
operations being redirected to this provider (apart from the OGSI defined
GridService interface operations provided by the
GridServiceBase implementation. Note that individual operations
in the OGSI namespace could still be overridded with this approach, but
not using the 'all namespaces and all operation' wildcard.
initialize
public void initialize(GridServiceBase base)
throws GridServiceException
- Description copied from interface:
OperationProvider
- called when the operation provider is added to a grid service
- Specified by:
initialize in interface OperationProvider
- Parameters:
base - the service this provider is being associated with
- Throws:
GridServiceException - if the initialization (and service creation
is to be aborted)
add
public int add(int val)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
subtract
public int subtract(int val)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
getValue
public int getValue()
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
Copyright ? 1999 University of Chicago and The University of Southern California. All Rights Reserved.