|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Home
the Home interface offers methods to create, lookup and destroy WS-Resources
| Method Summary | |
|---|---|
void |
activateHome(String serviceName)
activate the service using the given name Called when the container brings up the service |
String |
createWSRFServiceInstance(Map<String,Object> initParams)
create a new WS-Resource and persist it |
void |
destroyWSRFServiceInstance(String resourceId)
delete and cleanup the administrative information about a WS-Resource (NOTE: this will not call WSRFInstance.destroy()
(NOTE 2: locks will be cleaned as well} |
String |
extractServiceReference(org.codehaus.xfire.MessageContext context)
retrieve the correct service instance id, based on the message context TODO refactor to use some abstract context |
WSRFInstance |
get(String id)
Get a wsrf instance for read access (i.e. without aquiring a lock) |
FaultConverter |
getFaultConverter()
get the FaultConverter for this service |
WSRFInstance |
getForUpdate(String id)
Get a wsrf instance for update (i.e. aquire a lock) |
long |
getNumberOfInstances()
retrieve the current number of alive instances |
String |
getServiceName()
get the service name controlled by this Home |
Store |
getStore()
get the Store instance, if lower level access to the persistence layer is required |
Calendar |
getTerminationTime(String resourceId)
Get the termination time of an WS-Resource |
boolean |
isShuttingDown()
check whether the service is currently shutting down |
void |
passivateHome()
passivate the service. |
void |
persist(WSRFInstance instance)
persist the given instance |
void |
setTerminationTime(String resourceId,
Calendar newTT)
Set the termination time of an WS-Resource |
void |
stopExpiryCheckNow()
Stop the expiry checker for this service |
boolean |
supportsNotification()
does this service support notification (i.e. |
| Method Detail |
|---|
void activateHome(String serviceName)
throws Exception
Exceptionvoid passivateHome()
String getServiceName()
String extractServiceReference(org.codehaus.xfire.MessageContext context)
throws ResourceUnknownException
context -
ResourceUnknownException
WSRFInstance get(String id)
throws ResourceUnknownException
id - the ID of the resource
ResourceUnknownException - if no such resource exists
WSRFInstance getForUpdate(String id)
throws ResourceUnknownException,
ResourceUnavailableException
id - the ID of the resource
ResourceUnknownException - if no such resource exists
ResourceUnavailableException - if the resource cannot be locked within the timeout period
String createWSRFServiceInstance(Map<String,Object> initParams)
throws ResourceNotCreatedException
Map - initialisation parameters (may be null)
ResourceNotCreatedExceptionvoid persist(WSRFInstance instance)
instance -
void destroyWSRFServiceInstance(String resourceId)
throws Exception
WSRFInstance.destroy()
(NOTE 2: locks will be cleaned as well}
resource -
Exception
Calendar getTerminationTime(String resourceId)
throws ResourceUnknownException
resourceId -
ResourceUnknownException
void setTerminationTime(String resourceId,
Calendar newTT)
throws ResourceUnknownException,
TerminationTimeChangeRejectedException,
UnableToSetTerminationTimeException
resourceId - Calendar -
ResourceUnknownException
TerminationTimeChangeRejectedException
UnableToSetTerminationTimeExceptionlong getNumberOfInstances()
FaultConverter getFaultConverter()
e -
void stopExpiryCheckNow()
de.fzj.unicore.wsrflite.utils.deployment.DeploymentCenter.unregisterService(String serviceName)boolean isShuttingDown()
true if the service is currently shutting downStore getStore()
Store instance, if lower level access to the persistence layer is required
boolean supportsNotification()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||