org.gcube.data.analysis.statisticalmanager.experimentspace
Class ComputationFactoryResource

java.lang.Object
  extended by org.gcube.common.core.utils.handlers.GCUBEServiceClientImpl
      extended by org.gcube.common.core.state.GCUBEStatefulResource<org.gcube.common.core.state.GCUBEWSResourceKey>
          extended by org.gcube.common.core.state.GCUBEWSResource
              extended by org.gcube.data.analysis.statisticalmanager.experimentspace.ComputationFactoryResource
All Implemented Interfaces:
org.gcube.common.core.utils.handlers.GCUBEServiceClient, org.globus.wsrf.PersistenceCallback, org.globus.wsrf.Resource, org.globus.wsrf.ResourceLifetime, org.globus.wsrf.ResourceProperties, org.globus.wsrf.TopicListAccessor

public class ComputationFactoryResource
extends org.gcube.common.core.state.GCUBEWSResource

Author:
gioia

Nested Class Summary
 
Nested classes/interfaces inherited from class org.gcube.common.core.state.GCUBEStatefulResource
org.gcube.common.core.state.GCUBEStatefulResource.LOCK, org.gcube.common.core.state.GCUBEStatefulResource.TaskContext
 
Field Summary
static String MESSAGE_COMPUTATION_ID
           
static String MESSAGE_REQUEST
           
static String MESSAGE_SCOPE
           
static String SERVICE
           
 
Fields inherited from class org.gcube.common.core.state.GCUBEStatefulResource
uuidGen
 
Constructor Summary
ComputationFactoryResource()
           
 
Method Summary
 void cleanD4ScienceComputation()
           
 void cleanLocalComputation()
           
 void cleanLocalResourcesComputational(String genId)
           
static org.gcube.data.access.queueManager.FactoryConfiguration createQueueConfig(String scope)
           
 String getAgorithmDescription(String category, String algorithmName)
           
static String getConfigPath()
           
 List<org.gcube.dataanalysis.ecoengine.datatypes.StatisticalType> getListParameters(String category, String algorithmName)
           
 boolean getLocalComputation()
           
 int getLocalResourcesFree()
           
 int getLocalResourcesNeeded(String algorithm, String category)
           
protected  void initialise(Object... arg0)
           
 boolean setD4ScienceComputation()
           
 int setLocalResourcesAvailable(String agentId, String algorithm, String category)
           
 
Methods inherited from class org.gcube.common.core.state.GCUBEWSResource
getCurrentTime, getEPR, getPorttypeContext, getProperty, getPropertyNames, getPublisher, getResourcePropertySet, getServiceContext, getTerminationTime, getTopicList, getTopicNames, initialise, initialiseContainers, inScope, load, publish, setPortTypeContext, setTerminationTime, unpublish
 
Methods inherited from class org.gcube.common.core.state.GCUBEStatefulResource
getID, getLock, getScheduledTasks, getScope, launchTask, onRemove, setID, setPersistenceDelegate, stopTask, store
 
Methods inherited from class org.gcube.common.core.utils.handlers.GCUBEServiceClientImpl
getPortTypeMap, setPortTypeMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.globus.wsrf.PersistenceCallback
store
 

Field Detail

SERVICE

public static final String SERVICE
See Also:
Constant Field Values

MESSAGE_COMPUTATION_ID

public static final String MESSAGE_COMPUTATION_ID
See Also:
Constant Field Values

MESSAGE_SCOPE

public static final String MESSAGE_SCOPE
See Also:
Constant Field Values

MESSAGE_REQUEST

public static final String MESSAGE_REQUEST
See Also:
Constant Field Values
Constructor Detail

ComputationFactoryResource

public ComputationFactoryResource()
Method Detail

initialise

protected void initialise(Object... arg0)
                   throws Exception
Specified by:
initialise in class org.gcube.common.core.state.GCUBEWSResource
Throws:
Exception

createQueueConfig

public static org.gcube.data.access.queueManager.FactoryConfiguration createQueueConfig(String scope)
                                                                                 throws Exception
Throws:
Exception

getLocalResourcesNeeded

public int getLocalResourcesNeeded(String algorithm,
                                   String category)

setLocalResourcesAvailable

public int setLocalResourcesAvailable(String agentId,
                                      String algorithm,
                                      String category)

cleanLocalResourcesComputational

public void cleanLocalResourcesComputational(String genId)

getLocalResourcesFree

public int getLocalResourcesFree()

getConfigPath

public static String getConfigPath()

getListParameters

public List<org.gcube.dataanalysis.ecoengine.datatypes.StatisticalType> getListParameters(String category,
                                                                                          String algorithmName)
                                                                                   throws Exception
Throws:
Exception

getAgorithmDescription

public String getAgorithmDescription(String category,
                                     String algorithmName)
                              throws Exception
Throws:
Exception

setD4ScienceComputation

public boolean setD4ScienceComputation()

cleanD4ScienceComputation

public void cleanD4ScienceComputation()

getLocalComputation

public boolean getLocalComputation()

cleanLocalComputation

public void cleanLocalComputation()


Copyright © 2013. All Rights Reserved.