org.gcube.vremanagement.executor.stubs
Class BaseCall

java.lang.Object
  extended by org.gcube.common.core.utils.calls.GCUBECall<org.gcube.common.core.informationsystem.client.queries.WSResourceQuery>
      extended by org.gcube.common.core.utils.calls.WSCall
          extended by org.gcube.vremanagement.executor.stubs.BaseCall
Direct Known Subclasses:
ExecutorCall, TaskCall

public abstract class BaseCall
extends org.gcube.common.core.utils.calls.WSCall

Base class for high-level interactions with the service.

Author:
Fabio Simeoni (University of Strathclyde)

Nested Class Summary
 
Nested classes/interfaces inherited from class org.gcube.common.core.utils.calls.WSCall
org.gcube.common.core.utils.calls.WSCall.WSCallHandler
 
Nested classes/interfaces inherited from class org.gcube.common.core.utils.calls.GCUBECall
org.gcube.common.core.utils.calls.GCUBECall.ResultHolder<RESULT>
 
Field Summary
protected  List<org.gcube.common.core.plugins.GCUBEPluginContext.TypeMapping> mappings
          The type mappings required by the task.
protected  Map<String,String> properties
          Name and value of properties to use as filter for task discovery.
protected  String taskName
          The name of the task to launch
 
Fields inherited from class org.gcube.common.core.utils.calls.GCUBECall
clients, logger
 
Constructor Summary
protected BaseCall(org.gcube.common.core.scope.GCUBEScope scope, org.gcube.common.core.security.GCUBESecurityManager... securityManager)
           
protected BaseCall(String taskName, org.gcube.common.core.scope.GCUBEScope scope, org.gcube.common.core.security.GCUBESecurityManager... securityManager)
           
 
Method Summary
 org.gcube.common.core.informationsystem.client.queries.WSResourceQuery getQuery()
          
protected  String getServiceClass()
          
protected  String getServiceName()
          
 void setQuery(org.gcube.common.core.informationsystem.client.queries.WSResourceQuery query)
          
 void setTaskProperty(String name, String value)
          Sets the name and value of a task property to use in the query for the best-effort strategy..
 
Methods inherited from class org.gcube.common.core.utils.calls.WSCall
getInitQuery
 
Methods inherited from class org.gcube.common.core.utils.calls.GCUBECall
findPortType, getEndpointReference, getLogger, getPortTypeName, getRIQuery, getScopeManager, getSecurityManager, setEndpointReference, setLogger, setScopeManager, setSecurityManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

taskName

protected String taskName
The name of the task to launch


properties

protected Map<String,String> properties
Name and value of properties to use as filter for task discovery.


mappings

protected List<org.gcube.common.core.plugins.GCUBEPluginContext.TypeMapping> mappings
The type mappings required by the task.

Constructor Detail

BaseCall

protected BaseCall(String taskName,
                   org.gcube.common.core.scope.GCUBEScope scope,
                   org.gcube.common.core.security.GCUBESecurityManager... securityManager)
            throws Exception
Throws:
Exception

BaseCall

protected BaseCall(org.gcube.common.core.scope.GCUBEScope scope,
                   org.gcube.common.core.security.GCUBESecurityManager... securityManager)
            throws Exception
Throws:
Exception
Method Detail

getServiceClass

protected String getServiceClass()

Specified by:
getServiceClass in class org.gcube.common.core.utils.calls.GCUBECall<org.gcube.common.core.informationsystem.client.queries.WSResourceQuery>

getServiceName

protected String getServiceName()

Specified by:
getServiceName in class org.gcube.common.core.utils.calls.GCUBECall<org.gcube.common.core.informationsystem.client.queries.WSResourceQuery>

setTaskProperty

public void setTaskProperty(String name,
                            String value)
Sets the name and value of a task property to use in the query for the best-effort strategy..

Parameters:
name - the name.

setQuery

public void setQuery(org.gcube.common.core.informationsystem.client.queries.WSResourceQuery query)

Overrides:
setQuery in class org.gcube.common.core.utils.calls.GCUBECall<org.gcube.common.core.informationsystem.client.queries.WSResourceQuery>

getQuery

public org.gcube.common.core.informationsystem.client.queries.WSResourceQuery getQuery()

Overrides:
getQuery in class org.gcube.common.core.utils.calls.GCUBECall<org.gcube.common.core.informationsystem.client.queries.WSResourceQuery>


Copyright © 2013. All Rights Reserved.