|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.common.core.contexts.GCUBEContext
org.gcube.common.core.contexts.GCUBEPortTypeContext
public abstract class GCUBEPortTypeContext
Partial implementation of contexts for port-types.
If useful, the creation of a port-type context may be cached, e.g.
using the pattern illustrated for GCUBEServiceContext.
| Nested Class Summary | |
|---|---|
protected class |
GCUBEPortTypeContext.PTConsumer
A Consumer for port-type registration to RI scope removal events. |
| Field Summary | |
|---|---|
protected org.apache.axis.deployment.wsdd.WSDDService |
deploymentDescriptor
The deployment descriptor of the port-type. |
protected String |
name
The name of the port-type. |
protected org.globus.wsrf.impl.security.descriptor.ServiceSecurityDescriptor |
securityDescriptor
The security descriptor of the port-type. |
protected static String |
WSDD_FILE_NAME
The name of the deployment descriptor. |
protected static String |
WSSD_WSDD_NAME
The name of the security descriptor parameter in the deployment descriptor. |
| Fields inherited from class org.gcube.common.core.contexts.GCUBEContext |
|---|
logger, timers |
| Constructor Summary | |
|---|---|
GCUBEPortTypeContext()
|
|
| Method Summary | |
|---|---|
org.apache.axis.deployment.wsdd.WSDDService |
getDeploymentDescriptor()
Returns the deployment descriptor of the port-type. |
org.apache.axis.message.addressing.EndpointReferenceType |
getEPR()
Returns an (unqualified) EPR to the port-type. |
File |
getFile(String path,
boolean... writeMode)
Gives read or write access to a File. |
abstract String |
getJNDIName()
Return the name of the port-type in the JNDI configuration |
String |
getName()
Returns a name for the port-type to use in log entries. |
abstract String |
getNamespace()
Returns the namespace of the port-type. |
File |
getPersistentFile(String path,
boolean... writeMode)
Gives read or write access to a File that will persist across redployments of the Running Instance. |
Object |
getProperty(String prop,
boolean... required)
Resolve a configuration property against the naming service. |
org.globus.wsrf.impl.security.descriptor.ServiceSecurityDescriptor |
getSecurityDescriptor()
Returns the security descriptor of the port-type. |
abstract GCUBEServiceContext |
getServiceContext()
Returns the name of the service of the port-type. |
protected void |
onFailure()
Invoked when the Running Instance fails. |
protected void |
onInitialisation()
Invoked when the Running Instance has completed initialisation. |
protected void |
onReady()
Invoked when the Running Instance is ready to operate. |
protected void |
onStateChange()
Invoked upon a change to the RI's stateful resources, if any. |
protected void |
onUpdate()
Invoked when the Runnning Instance is updated. |
| 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 |
|---|
protected static String WSDD_FILE_NAME
protected static String WSSD_WSDD_NAME
protected String name
protected org.apache.axis.deployment.wsdd.WSDDService deploymentDescriptor
protected org.globus.wsrf.impl.security.descriptor.ServiceSecurityDescriptor securityDescriptor
| Constructor Detail |
|---|
public GCUBEPortTypeContext()
| Method Detail |
|---|
public org.apache.axis.message.addressing.EndpointReferenceType getEPR()
throws Exception
Exception - if the EPR could not be derived.public String getName()
getName in class GCUBEContextgetJNDIName()
public Object getProperty(String prop,
boolean... required)
throws RuntimeException
getProperty in class GCUBEContextprop - the property.required - (optional) true if the property is required, false or omitted if property is optional.
The only implication is a different handling of failure and logging. Failure in resolving optional properties results in a runtime
exception and fatal log entry, whereas failure in resolving optional properties results in a null result and warning
in the log.
null if the property was optional and could not be resolved.
RuntimeException - if the property is required but cannot be resolved.public org.apache.axis.deployment.wsdd.WSDDService getDeploymentDescriptor()
public org.globus.wsrf.impl.security.descriptor.ServiceSecurityDescriptor getSecurityDescriptor()
public File getFile(String path,
boolean... writeMode)
File.
Write access induces backups and read access relies on backups to recover from failures.
getFile in class GCUBEContextpath - the file path.writeMode - (optional) the access mode, true for write access and false for read access (default).
public File getPersistentFile(String path,
boolean... writeMode)
throws IllegalArgumentException
File that will persist across redployments of the Running Instance.
path - the file path.writeMode - (optional) the access mode, true for write access and false for read access (default).
IllegalArgumentException - if access is in write mode and the path is to a folder.GCUBEServiceContext.getPersistentFile(String, boolean...)public abstract String getJNDIName()
public abstract String getNamespace()
public abstract GCUBEServiceContext getServiceContext()
protected void onInitialisation()
throws Exception
Exception - if the callback did not complete successfully.
protected void onReady()
throws Exception
Exception - if the callback did not complete successfully.
protected void onUpdate()
throws Exception
Exception - if the callback did not complete successfully.
protected void onStateChange()
throws Exception
Exception - if the callback did not complete successfully.
protected void onFailure()
throws Exception
Exception - if the callback did not complete successfully.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||