org.gcube.vremanagement.executor.contexts
Class EnginePTContext

java.lang.Object
  extended by GCUBEStatefulPortTypeContext
      extended by org.gcube.vremanagement.executor.contexts.EnginePTContext

public class EnginePTContext
extends GCUBEStatefulPortTypeContext

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

Author:
Fabio Simeoni (University of Strathclyde).

Field Summary
static java.lang.String PORTTYPE_NAME
          Port-type JNDI name.
static java.lang.String PORTTYPE_NAMESPACE
          Port-type namespace.
 
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..
 java.lang.String getJNDIName()
          
 java.lang.String getNamespace()
          
 GCUBEServiceContext getServiceContext()
          
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PORTTYPE_NAME

public static final java.lang.String PORTTYPE_NAME
Port-type JNDI name.

See Also:
Constant Field Values

PORTTYPE_NAMESPACE

public static final java.lang.String PORTTYPE_NAMESPACE
Port-type namespace.

See Also:
Constant Field Values
Method Detail

getContext

public static EnginePTContext getContext()
Returns a context instance.

Returns:
the context.

getJNDIName

public java.lang.String getJNDIName()


getNamespace

public java.lang.String getNamespace()


getEngine

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

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

createEngine

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

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

getServiceContext

public GCUBEServiceContext getServiceContext()