org.globus.ogsa.impl.samples.notification
Class MessageGenerator

java.lang.Object
  extended byorg.globus.ogsa.impl.samples.notification.MessageGenerator
All Implemented Interfaces:
OperationProvider

public class MessageGenerator
extends java.lang.Object
implements OperationProvider


Field Summary
static java.lang.String DEFAULT_NAMESPACE
           
 
Constructor Summary
MessageGenerator()
           
 
Method Summary
 void addMessageGenerator(MessageGeneratorType msg)
           
 void finalize()
           
 QName[] getOperations()
          Called during initialization when the Grid service needs to find out what operations are supported by this provider.
 void initialize(GridServiceBase serviceBase)
          Called when the operation provider is added to a grid service.
 void removeMessageGenerator(MessageGeneratorType msg)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_NAMESPACE

public static final java.lang.String DEFAULT_NAMESPACE
See Also:
Constant Field Values
Constructor Detail

MessageGenerator

public MessageGenerator()
Method Detail

getOperations

public 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 serviceBase)
                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:
serviceBase - the service this provider is being associated with
Throws:
GridServiceException - if the initialization (and service creation is to be aborted)

finalize

public void finalize()

addMessageGenerator

public void addMessageGenerator(MessageGeneratorType msg)
                         throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

removeMessageGenerator

public void removeMessageGenerator(MessageGeneratorType msg)
                            throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException