public abstract class GCUBEStatefulPortTypeContext extends GCUBEPortTypeContext
GCUBEPortTypeContext for stateful services.GCUBEPortTypeContext.PTConsumer| Modifier and Type | Field and Description |
|---|---|
protected static String |
LIFETIME_JNDI_NAME
Name of lifetime JNDI environment.
|
protected GCUBEPublicationProfile |
profile
Publication profile.
|
protected static String |
PUBLICATION_MODE_JNDI_PULL
Legal value of publication mode JNDI environment.
|
protected static String |
PUBLICATION_MODE_JNDI_PUSH
Legal value of publication mode JNDI environment.
|
protected static String |
PUBLICATIONPROFILE_JNDI_NAME
Name of publication profile JNDI resource.
|
protected boolean |
publicationStatus
Publication status.
|
protected static String |
RESOURCE_HOME_JNDI_NAME
Name of stateful resource home JNDI resource.
|
protected static String |
RPDNAME_JNDI_NAME
Name of Resource Property Document (RPD) JNDI environment.
|
protected static String |
WS_HOME_JNDI_NAME
Name of WS-resource home JNDI resource.
|
deploymentDescriptor, name, securityDescriptor, WSDD_FILE_NAME, WSSD_WSDD_NAMElogger, timers| Constructor and Description |
|---|
GCUBEStatefulPortTypeContext() |
| Modifier and Type | Method and Description |
|---|---|
GCUBELocalHome |
getLocalHome()
Returns the
GCUBELocalHome associated with the port-type. |
GCUBEPublicationProfile |
getPublicationProfile()
Loads and returns the
GCUBEPublicationProfile of the port-type.The publication profile is configured as a JNDI resource in accordance with the following template (text in italics marks points of instantiations): |
Integer |
getResourceLifeTime()
Returns the time after which WS-Resources are scheduled to terminate.
|
String |
getRPDName()
Returns the name of the root element of the Resource Property Document in the WSDL of the associated
port-type.
|
GCUBEWSHome |
getWSHome()
Returns the
GCUBEWSHome associated with the port-type. |
GCUBEWSResourceKey |
makeKey(String value)
Convenience method to builds a
GCUBEWSResourceKey key from a given value. |
protected void |
onInitialisation()
Invoked when the Running Instance has completed initialisation.
|
getDeploymentDescriptor, getEPR, getFile, getJNDIName, getName, getNamespace, getPersistentFile, getProperty, getSecurityDescriptor, getServiceContext, onFailure, onReady, onStateChange, onUpdatedebugContext, getJNDIContext, getResource, getTiming, printContext, resetTimer, setJNDIContextprotected static final String RPDNAME_JNDI_NAME
protected static final String WS_HOME_JNDI_NAME
protected static final String RESOURCE_HOME_JNDI_NAME
protected static final String LIFETIME_JNDI_NAME
protected static final String PUBLICATIONPROFILE_JNDI_NAME
protected static final String PUBLICATION_MODE_JNDI_PULL
protected static final String PUBLICATION_MODE_JNDI_PUSH
protected GCUBEPublicationProfile profile
protected boolean publicationStatus
protected void onInitialisation()
throws Exception
onInitialisation in class GCUBEPortTypeContextException - if the callback did not complete successfully.public String getRPDName()
<environment
name="RPDName"
value="[RPD name]"
type="java.lang.String"
override="false" />
public GCUBEWSHome getWSHome()
GCUBEWSHome associated with the port-type.
The home instance is configured as a JNDI resource, in accordance with with the following
template (text in italics marks points of instantiations):
<resource name="home" type="[the FQN of a sublclass of GCUBEWSHome]">
<resourceParams>
<parameter>
<name>factory</name>
<value>org.globus.wsrf.jndi.BeanFactory</value>
</parameter>
<parameter>
<name>resourceClass</name>
<value>[FQN of a subclass of GCUBEWSResource]</value>
</parameter>
<parameter>
<name>persistenceDelegateClass</name>
<value>[FQN of a concrete subclass of GCUBEPersistenceDelegate]</value>
</parameter>
<parameter>
<name>keyName</name>
<value>[the serialisation of a QName]</value>
</parameter>
<parameter>
<name>sweeperDelay</name>
<value>[milliseconds]</value>
</parameter>
<parameter>
<name>cacheTimeout</name>
<value>[milliseconds, e.g. 120000]</value>
</parameter>
</resourceParams>
</resource>
where sweeperDelay and cacheTimeout are optional, and the name of the JNDI resource and its context of occurrence
are to be constrained by clients.
GCUBEResourceHome,
GCUBEWSHomepublic GCUBEWSResourceKey makeKey(String value)
GCUBEWSResourceKey key from a given value.value - the value.public GCUBELocalHome getLocalHome()
GCUBELocalHome associated with the port-type.
The home instance is configured as a JNDI resource, in accordance with with the following
template (text in italics marks points of instantiations):
<resource name="localhome" type="[the FQN of a sublclass of GCUBELocalHome]">
<resourceParams>
<parameter>
<name>factory</name>
<value>org.globus.wsrf.jndi.BeanFactory</value>
</parameter>
<parameter>
<name>resourceClass</name>
<value>[FQN of a subclass of GCUBELocalResource]</value>
</parameter>
<parameter>
<name>cacheTimeout</name>
<value>[milliseconds, e.g. 120000]</value>
</parameter>
</resourceParams>
</resource>
where cacheTimeout is optional.
GCUBEResourceHome,
GCUBELocalHomepublic Integer getResourceLifeTime()
<environment
name="lifetime"
value="[lifetime in seconds]"
type="java.lang.Integer"
override="false" />
public GCUBEPublicationProfile getPublicationProfile()
GCUBEPublicationProfile of the port-type.
<resource name="publicationProfile" type="org.gcube.common.core.service.GCUBEPublicationProfile">
<resourceParams>
<parameter>
<name>factory</name>
<value>org.globus.wsrf.jndi.BeanFactory</value>
</parameter>
<parameter>
<name>mode</name>
<value>[push|pull]</value>
</parameter>
<parameter>
<name>fileName</name>
<value>@config.dir@/[configuration file name]</value>
</parameter>
</resourceParams>
</resource>
null if the profile could not be loadedCopyright © 2015. All Rights Reserved.