public final class InstanceState
extends org.gcube.common.core.state.GCUBEWSResource
| Constructor and Description |
|---|
InstanceState() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSession(org.gcube.common.core.scope.GCUBEScope scope,
Session session)
Adds a new
Session to the service's state |
void |
createState(org.gcube.common.core.scope.GCUBEScope scope)
Creates a new state for the given scope
|
void |
disposeState(org.gcube.common.core.scope.GCUBEScope scope,
Session report)
Disposes the scope
|
PublishedScopeResource |
getPublishedScopeResource(org.gcube.common.core.scope.GCUBEScope scope)
Gets the resource published in the IS for the given scope
|
String |
getSerializedSession(String id)
Gets the string representation of a
Session |
Session |
getSession(String id)
Gets the
Session |
ScopeState |
getState(org.gcube.common.core.scope.GCUBEScope scope)
Gets the state for the given scope
|
protected void |
initialise(Object... params) |
protected void |
reuseState(org.gcube.common.core.scope.GCUBEScope scope) |
getCurrentTime, getEPR, getPorttypeContext, getProperty, getPropertyNames, getPublisher, getResourcePropertySet, getServiceContext, getTerminationTime, getTopicList, getTopicNames, initialise, initialiseContainers, inScope, load, publish, setPortTypeContext, setTerminationTime, unpublishgetID, getLock, getScheduledTasks, getScope, launchTask, onRemove, setID, setPersistenceDelegate, stopTask, storegetPortTypeMap, setPortTypeMapprotected void initialise(Object... params) throws Exception
initialise in class org.gcube.common.core.state.GCUBEWSResourceExceptionprotected void reuseState(org.gcube.common.core.scope.GCUBEScope scope)
throws Exception
Exceptionpublic Session getSession(String id) throws IOException
Sessionid - the session IDIOExceptionpublic String getSerializedSession(String id) throws IOException
Sessionid - the session IDIOExceptionpublic void addSession(org.gcube.common.core.scope.GCUBEScope scope,
Session session)
throws org.globus.wsrf.NoSuchResourceException
Session to the service's statesession - the session to addorg.globus.wsrf.NoSuchResourceExceptionpublic ScopeState getState(org.gcube.common.core.scope.GCUBEScope scope) throws org.globus.wsrf.NoSuchResourceException
org.globus.wsrf.NoSuchResourceExceptionpublic void disposeState(org.gcube.common.core.scope.GCUBEScope scope,
Session report)
throws IOException,
VirtualNode.NoGHNFoundException
report - IOExceptionVirtualNode.NoGHNFoundExceptionpublic PublishedScopeResource getPublishedScopeResource(org.gcube.common.core.scope.GCUBEScope scope) throws org.globus.wsrf.NoSuchResourceException
scope - org.globus.wsrf.NoSuchResourceExceptionCopyright © 2015. All Rights Reserved.