|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.globus.ogsa.impl.core.service.ServicePropertiesImpl
org.globus.ogsa.impl.ogsi.GridServiceImpl
Base class that all grid services extend. Implements GridServiceBase interface.
| Field Summary | |
protected QueryEngine |
queryEngine
|
protected ServiceDataSet |
serviceData
|
| Constructor Summary | |
GridServiceImpl()
|
|
GridServiceImpl(java.lang.String name)
|
|
| Method Summary | |
void |
activate(GridContext context)
called when a service becomes active after having been deactivated. |
void |
addOperationProvider(OperationProvider provider)
adds a new operation provider to this service. |
void |
deactivate(GridContext context)
called just before a service gets deactivated. |
void |
destroy()
|
ExtensibilityType |
findServiceData(ExtensibilityType queryExpression)
|
java.lang.Object |
getInstanceProperty(java.lang.String key)
gets a property that is to be propagated to other instances that this Grid service may create. |
OperationProvider |
getOperationProvider(javax.xml.namespace.QName operation)
gets the operation provider based on the qname of the operation as defined in the WSDL representation of the service interface |
QueryEngine |
getQueryEngine()
gets the QueryEngine implementation that is used to evaluate service data based query expressions on the service. |
ServiceDataSet |
getServiceDataSet()
gets the ServiceDataSet implementing storage of service data entries for the service. |
java.util.Collection |
getServiceDataValues(javax.xml.namespace.QName qname)
gets service data values requested for a service data element qname |
java.lang.Class |
getServiceInterface()
gets the class representing the service interface of this service. |
TerminationTimeType |
getTerminationTime()
gets the current termination time of the service. |
void |
populateInstanceProperties(GridServiceBase properties)
propagates instance properties of this service to another Grid service |
void |
postCreate(GridContext context)
called when a service has been created and all of its configuration has been set up. |
void |
preCreate(GridServiceBase factory)
called when a service object is created. |
void |
preDestroy(GridContext context)
called just before a service gets destroyed. |
TerminationTimeType |
requestTerminationAfter(ExtendedDateTimeType terminationTime)
|
TerminationTimeType |
requestTerminationBefore(ExtendedDateTimeType terminationTime)
|
protected TerminationTimeType |
setDefaultTermination(ExtendedDateTimeType terminationTime)
|
void |
setQueryEngine(QueryEngine queryEngine)
sets the QueryEngine implementation that is used to evaluate service data based query expressions on the service. |
ExtensibilityType |
setServiceData(ExtensibilityType updateExpression)
|
void |
setServiceDataSet(ServiceDataSet serviceData)
sets the ServiceDataSet implementing storage of service data entries for the service. |
| Methods inherited from class org.globus.ogsa.impl.core.service.ServicePropertiesImpl |
flush, getPersistentProperty, getProperty, keySet, setPersistentProperty, setProperty |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.globus.ogsa.ServiceProperties |
flush, getPersistentProperty, getProperty, setPersistentProperty, setProperty |
| Field Detail |
protected ServiceDataSet serviceData
protected QueryEngine queryEngine
| Constructor Detail |
public GridServiceImpl()
public GridServiceImpl(java.lang.String name)
| Method Detail |
public java.lang.Class getServiceInterface()
GridServiceBaseGridServiceBase.
getServiceInterface in interface GridServiceBasepublic OperationProvider getOperationProvider(javax.xml.namespace.QName operation)
GridServiceBase
getOperationProvider in interface GridServiceBaseoperation - name of operation to look up (namespace "" and localPart
"*" can be used to find generic operation dispatchers)
public void addOperationProvider(OperationProvider provider)
throws GridServiceException
GridServiceBase
addOperationProvider in interface GridServiceBaseprovider - OperationProvider to be linked with this service
GridServiceException - if the provider failed to initializepublic java.lang.Object getInstanceProperty(java.lang.String key)
GridServiceBase
getInstanceProperty in interface GridServiceBasekey - the name of the property (note instance properties are prefixed by "instance-"
in the configuration)
public void populateInstanceProperties(GridServiceBase properties)
GridServiceBase
populateInstanceProperties in interface GridServiceBaseproperties - the Grid service that is to be populated with instance properties from this service
public void preCreate(GridServiceBase factory)
throws GridServiceException
GridServiceCallback
preCreate in interface GridServiceCallbackfactory - the Grid service that is in the process of creating this
service object, or if this is a persistent Grid service it points to
the service to be created.
GridServiceException - if the service should not be created
public void postCreate(GridContext context)
throws GridServiceException
GridServiceCallback
postCreate in interface GridServiceCallbackcontext - state information currently associated with the service
that was created.
GridServiceException - if the service creation should be aborted
public void activate(GridContext context)
throws GridServiceException
GridServiceCallback
activate in interface GridServiceCallbackcontext - state information currently asociated with the service
GridServiceException - if the service activation should be aborted
public void deactivate(GridContext context)
throws GridServiceException
GridServiceCallback
deactivate in interface GridServiceCallbackcontext - state information currently associated with the service
GridServiceException - if the service deactivation failed
public void preDestroy(GridContext context)
throws GridServiceException
GridServiceCallback
preDestroy in interface GridServiceCallbackcontext - state information currently associated with the service
GridServiceException - if the destruction failed (will be
reported to clients in the case of explicit destroy calls)public ServiceDataSet getServiceDataSet()
GridServiceBase
getServiceDataSet in interface GridServiceBasepublic void setServiceDataSet(ServiceDataSet serviceData)
GridServiceBase
setServiceDataSet in interface GridServiceBaseserviceData - ServiceDataSet to be associated with this Grid servicepublic QueryEngine getQueryEngine()
GridServiceBaseQueryEngine can be used to register new
evaluators for custom query expressions.
getQueryEngine in interface GridServiceBasepublic void setQueryEngine(QueryEngine queryEngine)
GridServiceBase
setQueryEngine in interface GridServiceBasequeryEngine - QueryEngine to be associated with this Grid servicepublic java.util.Collection getServiceDataValues(javax.xml.namespace.QName qname)
ServiceDataValueCallback
getServiceDataValues in interface ServiceDataValueCallbackqname - name of service data element (all values will be wrapped
inside of element tags with this qname)
public ExtensibilityType setServiceData(ExtensibilityType updateExpression)
throws java.rmi.RemoteException,
MutabilityViolationFaultType,
ExtensibilityTypeFaultType,
PartialFailureFaultType,
CardinalityViolationFaultType,
IncorrectValueFaultType,
TypeViolationFaultType,
FaultType,
ExtensibilityNotSupportedFaultType,
ModifiabilityViolationFaultType
setServiceData in interface GridServicejava.rmi.RemoteException
MutabilityViolationFaultType
ExtensibilityTypeFaultType
PartialFailureFaultType
CardinalityViolationFaultType
IncorrectValueFaultType
TypeViolationFaultType
FaultType
ExtensibilityNotSupportedFaultType
ModifiabilityViolationFaultType
public TerminationTimeType requestTerminationAfter(ExtendedDateTimeType terminationTime)
throws java.rmi.RemoteException,
TerminationTimeUnchangedFaultType,
FaultType
requestTerminationAfter in interface GridServicejava.rmi.RemoteException
TerminationTimeUnchangedFaultType
FaultTypeprotected TerminationTimeType setDefaultTermination(ExtendedDateTimeType terminationTime)
public TerminationTimeType requestTerminationBefore(ExtendedDateTimeType terminationTime)
throws java.rmi.RemoteException,
TerminationTimeUnchangedFaultType,
FaultType
requestTerminationBefore in interface GridServicejava.rmi.RemoteException
TerminationTimeUnchangedFaultType
FaultType
public ExtensibilityType findServiceData(ExtensibilityType queryExpression)
throws java.rmi.RemoteException,
FaultType,
TargetInvalidFaultType,
ExtensibilityNotSupportedFaultType,
ExtensibilityTypeFaultType
findServiceData in interface GridServicejava.rmi.RemoteException
FaultType
TargetInvalidFaultType
ExtensibilityNotSupportedFaultType
ExtensibilityTypeFaultTypepublic TerminationTimeType getTerminationTime()
GridServiceBase
getTerminationTime in interface GridServiceBase
public void destroy()
throws java.rmi.RemoteException,
FaultType,
ServiceNotDestroyedFaultType
destroy in interface GridServicejava.rmi.RemoteException
FaultType
ServiceNotDestroyedFaultType
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||