org.gcube.vremanagement.executor.contexts
Class EnginePTContext

java.lang.Object
  extended by org.gcube.common.core.contexts.GCUBEContext
      extended by org.gcube.common.core.contexts.GCUBEPortTypeContext
          extended by org.gcube.common.core.contexts.GCUBEStatefulPortTypeContext
              extended by org.gcube.vremanagement.executor.contexts.EnginePTContext

public class EnginePTContext
extends org.gcube.common.core.contexts.GCUBEStatefulPortTypeContext

The context of the Engine port-type of the service.

Author:
Fabio Simeoni (University of Strathclyde).

Nested Class Summary
 
Nested classes/interfaces inherited from class org.gcube.common.core.contexts.GCUBEPortTypeContext
org.gcube.common.core.contexts.GCUBEPortTypeContext.PTConsumer
 
Field Summary
protected static EnginePTContext cache
          Singleton instance.
static String PORTTYPE_NAME
          Port-type JNDI name.
static String PORTTYPE_NAMESPACE
          Port-type namespace.
 
Fields inherited from class org.gcube.common.core.contexts.GCUBEStatefulPortTypeContext
LIFETIME_JNDI_NAME, profile, PUBLICATION_MODE_JNDI_PULL, PUBLICATION_MODE_JNDI_PUSH, PUBLICATIONPROFILE_JNDI_NAME, publicationStatus, RESOURCE_HOME_JNDI_NAME, RPDNAME_JNDI_NAME, WS_HOME_JNDI_NAME
 
Fields inherited from class org.gcube.common.core.contexts.GCUBEPortTypeContext
deploymentDescriptor, name, securityDescriptor, WSDD_FILE_NAME, WSSD_WSDD_NAME
 
Fields inherited from class org.gcube.common.core.contexts.GCUBEContext
logger, timers
 
Method Summary
 EngineResource createEngine()
          Creates th singleton EngineResource of the port-type.
static EnginePTContext getContext()
          Returns a context instance.
 EngineResource getEngine()
          Returns the singleton EngineResource of the port-type..
 String getJNDIName()
          
 String getNamespace()
          
 org.gcube.common.core.contexts.GCUBEServiceContext getServiceContext()
          
 
Methods inherited from class org.gcube.common.core.contexts.GCUBEStatefulPortTypeContext
getLocalHome, getPublicationProfile, getResourceLifeTime, getRPDName, getWSHome, makeKey, onInitialisation
 
Methods inherited from class org.gcube.common.core.contexts.GCUBEPortTypeContext
getDeploymentDescriptor, getEPR, getFile, getName, getPersistentFile, getProperty, getSecurityDescriptor, onFailure, onReady, onStateChange, onUpdate
 
Methods inherited from class org.gcube.common.core.contexts.GCUBEContext
debugContext, getJNDIContext, getResource, getTiming, printContext, resetTimer, setJNDIContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PORTTYPE_NAME

public static final String PORTTYPE_NAME
Port-type JNDI name.

See Also:
Constant Field Values

PORTTYPE_NAMESPACE

public static final String PORTTYPE_NAMESPACE
Port-type namespace.

See Also:
Constant Field Values

cache

protected static EnginePTContext cache
Singleton instance.

Method Detail

getContext

public static EnginePTContext getContext()
Returns a context instance.

Returns:
the context.

getJNDIName

public String getJNDIName()

Specified by:
getJNDIName in class org.gcube.common.core.contexts.GCUBEPortTypeContext

getNamespace

public String getNamespace()

Specified by:
getNamespace in class org.gcube.common.core.contexts.GCUBEPortTypeContext

getEngine

public EngineResource getEngine()
                         throws Exception
Returns the singleton EngineResource of the port-type..

Returns:
the engine.
Throws:
Exception - if the engine could not be returned.

createEngine

public EngineResource createEngine()
                            throws Exception
Creates th singleton EngineResource of the port-type.

Throws:
Exception - if the engine could not be created.

getServiceContext

public org.gcube.common.core.contexts.GCUBEServiceContext getServiceContext()

Specified by:
getServiceContext in class org.gcube.common.core.contexts.GCUBEPortTypeContext


Copyright © 2013. All Rights Reserved.