public abstract class GCUBEPortTypeContext extends GCUBEContext
If useful, the creation of a port-type context may be cached, e.g.
using the pattern illustrated for GCUBEServiceContext.
| Modifier and Type | Class and Description |
|---|---|
protected class |
GCUBEPortTypeContext.PTConsumer
A
Consumer for port-type registration to RI scope removal events. |
| Modifier and Type | Field and Description |
|---|---|
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.
|
logger, timers| Constructor and Description |
|---|
GCUBEPortTypeContext() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
debugContext, getJNDIContext, getResource, getTiming, printContext, resetTimer, setJNDIContextprotected 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
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.Copyright © 2015. All Rights Reserved.