public abstract class StagingCall.StagingHandler extends GCUBEStagingServiceHandler<GCUBEServiceClientImpl>
GCUBEStatefulServiceHandler for embedding in StagingCalls.GCUBEServiceHandler.NoQueryResultExceptionhandled, logger, producer| Constructor and Description |
|---|
StagingCall.StagingHandler()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
_interact(org.apache.axis.message.addressing.EndpointReferenceType epr)
Used internally to wrap
GCUBEServiceHandler.interact(EndpointReferenceType) and handle its successes and failures. |
protected List<org.apache.axis.message.addressing.EndpointReferenceType> |
findFactories()
Returns a list of EPRs to factories.
|
protected List<RPDocument> |
findWSResources()
Discovers suitable WS-Resources of the target port-type.
|
GCUBEScopeManager |
getScopeManager()
Returns the scope manager of the handler.
|
protected String |
getTargetPortTypeName()
Returns the local name of the target port-type as the basis for a key to store 'successful'
EPRs of the port-type in the cache provided by the service client (cf.
|
void |
run()
Executes the task implemented by the handler.
|
_createInstance, createInstance, getFactories, getInstances, tryFactoriesfindInstancescacheEPR, clearCachedEPR, getAttempts, getCachedEPR, getCacheKey, interact, setAttempts, tryInstancesclearBlackboard, getBlackboard, getHandled, getId, getLogger, getName, getSecurityManager, getState, notify, setBlackboard, setHandled, setLogger, setName, setScopeManager, setSecurityManager, setState, subscribe, undo, unsubscribeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearBlackboard, getBlackboard, getHandled, getId, getLogger, getName, getSecurityManager, setBlackboard, setHandled, setLogger, setName, setScopeManager, setSecurityManager, subscribe, undo, unsubscribepublic StagingCall.StagingHandler()
protected void _interact(org.apache.axis.message.addressing.EndpointReferenceType epr)
throws Exception
GCUBEServiceHandler.interact(EndpointReferenceType) and handle its successes and failures.
GCUBEServiceHandler.interact(EndpointReferenceType) succeeds, it store the input EPR
in the handler's state. If GCUBEServiceHandler.interact(EndpointReferenceType) fails with a GCUBEFault,
it propagates the GCUBEException which models it most specifically._interact in class GCUBEServiceHandler<GCUBEServiceClientImpl>epr - the EPR of an instance of the target port-type.Exception - if the interaction fails to complete successfully.GCUBEServiceHandler.interact(EndpointReferenceType).public void run()
throws Exception
run in interface GCUBEIHandler<GCUBEServiceClientImpl>run in class GCUBEServiceHandler<GCUBEServiceClientImpl>Exception - if the execution of the task does not complete normally.protected String getTargetPortTypeName()
GCUBEServiceHandler.getCacheKey()).
By default, it returns the name of handler (cf. GCUBEHandler.getName()), which will not grant EPR reuse
across any other handler type that may target the same port-type. Override and return a specific port-type name
to grant EPR reuse across all handler types that target the same port-type and share the same client.
getTargetPortTypeName in class GCUBEServiceHandler<GCUBEServiceClientImpl>#getName()},
#getCacheKey()}.protected List<RPDocument> findWSResources() throws Exception
findWSResources in class GCUBEStatefulServiceHandler<GCUBEServiceClientImpl>Exception - if suitable instances cannot be found.public GCUBEScopeManager getScopeManager()
getScopeManager in interface GCUBEIHandler<GCUBEServiceClientImpl>getScopeManager in class GCUBEHandler<GCUBEServiceClientImpl>protected List<org.apache.axis.message.addressing.EndpointReferenceType> findFactories() throws Exception
findFactories in class GCUBEStagingServiceHandler<GCUBEServiceClientImpl>Exception - if no EPR can be returned.Copyright © 2015. All Rights Reserved.