|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.common.core.utils.calls.GCUBECall<QUERY>
public abstract class GCUBECall<QUERY extends ISQuery<?>>
Partial implementation for calls to port-types of gCube services.
The call subsumes the best-effort interaction strategy of a GCUBEServiceHandler.
Equally, it may target a port-type at a known endpoint.
Call scope must be specified at creation time, with a GCUBEScope or via a GCUBEScopeManager.
Security may be specified at creation via a GCUBESecurityManager.
| Nested Class Summary | |
|---|---|
static class |
GCUBECall.ResultHolder<RESULT>
Convenience holder for exporting invocation results from within anonymous specialisation of |
| Field Summary | |
|---|---|
protected static Map<Class<?>,GCUBEServiceClientImpl> |
clients
|
protected GCUBELog |
logger
Object logger. |
| Constructor Summary | |
|---|---|
GCUBECall(GCUBEScope scope,
GCUBESecurityManager... securityManager)
Creates an instance with a scope and a security manager. |
|
GCUBECall(GCUBEScopeManager scopeManager,
GCUBESecurityManager... securityManager)
Creates an instance with a scope manager and a security manager. |
|
GCUBECall(GCUBEServiceContext ctxt)
Creates an instance with a service context. |
|
| Method Summary | |
|---|---|
protected List<org.apache.axis.message.addressing.EndpointReferenceType> |
findPortType(GCUBERIQuery query,
String portType)
Helper method that executes a given query to return a list of references to endpoints of a given port-type. |
org.apache.axis.message.addressing.EndpointReferenceType |
getEndpointReference()
Returns the target endpoint. |
protected abstract QUERY |
getInitQuery()
Returns the initial query for the best-effort strategy. |
GCUBELog |
getLogger()
Returns the call's logger. |
protected abstract String |
getPortTypeName()
Returns the name of the target port-type. |
QUERY |
getQuery()
Returns the query for the best-effort strategy. |
protected GCUBERIQuery |
getRIQuery()
Helper method that returns a query for Running Instances of the service of the target port-type. |
GCUBEScopeManager |
getScopeManager()
Returns the scope manager used for the call. |
GCUBESecurityManager |
getSecurityManager()
Returns the security manager used for the call. |
protected abstract String |
getServiceClass()
Returns the class of the service of the target port-type. |
protected abstract String |
getServiceName()
Returns the name of the service of the target port-type. |
void |
setEndpointReference(org.apache.axis.message.addressing.EndpointReferenceType epr)
Sets the target endpoint. |
void |
setLogger(GCUBELog logger)
Sets the call's logger. |
void |
setQuery(QUERY query)
Set the query for the best-effort strategy. |
void |
setScopeManager(GCUBEScopeManager scopeManager)
Sets the scope manager used for the call. |
void |
setSecurityManager(GCUBESecurityManager securityManager)
Sets the security manager used for the call. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static Map<Class<?>,GCUBEServiceClientImpl> clients
protected GCUBELog logger
| Constructor Detail |
|---|
public GCUBECall(GCUBEScopeManager scopeManager,
GCUBESecurityManager... securityManager)
throws Exception
scopeManager - the scope manager.securityManager - the security manager.
Exception - if the instance could not be created.
public GCUBECall(GCUBEScope scope,
GCUBESecurityManager... securityManager)
throws Exception
scope - the scope.securityManager - the security manager.
Exception - if the instance could not be created.
public GCUBECall(GCUBEServiceContext ctxt)
throws Exception
ctxt - the context.
Exception - if the instance could not be created.| Method Detail |
|---|
public void setLogger(GCUBELog logger)
logger - the logger.public GCUBELog getLogger()
protected abstract String getPortTypeName()
protected abstract String getServiceName()
protected abstract String getServiceClass()
public GCUBESecurityManager getSecurityManager()
public void setSecurityManager(GCUBESecurityManager securityManager)
securityManager - the security manager.public GCUBEScopeManager getScopeManager()
public void setScopeManager(GCUBEScopeManager scopeManager)
scopeManager - the scope manager.public void setQuery(QUERY query)
query - the query.public QUERY getQuery()
protected abstract QUERY getInitQuery()
throws Exception
Exception - if the query could not be returned (typically because it could not be built).public void setEndpointReference(org.apache.axis.message.addressing.EndpointReferenceType epr)
epr - a reference to the endpoint.public org.apache.axis.message.addressing.EndpointReferenceType getEndpointReference()
protected GCUBERIQuery getRIQuery()
throws Exception
Exception - if the query could not returned.
protected List<org.apache.axis.message.addressing.EndpointReferenceType> findPortType(GCUBERIQuery query,
String portType)
throws Exception
query - the query.portType - the port-type name.
Exception - if the query could not returned.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||