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 QUEUE
           
static org.gcube.data.access.queueManager.FactoryConfiguration queueConfig
           
 
Fields inherited from class org.gcube.common.core.state.GCUBEStatefulResource
uuidGen
 
Constructor Summary
ComputationFactoryResource()
           
 
Method Summary
 void cleanD4ScienceComputation()
           
 void cleanLocalResourcesComputational(String genId)
           
 String getAgorithmDescription(String category, String algorithmName)
           
static String getConfigPath()
           
 List<org.gcube.dataanalysis.ecoengine.datatypes.StatisticalType> getListParameters(String category, String algorithmName)
           
 int getLocalResourcesFree()
           
protected  void initialise(Object... arg0)
           
 boolean setD4ScienceComputation()
           
 int setLocalResourcesAvailable(String agentId, org.gcube.data.analysis.statisticalmanager.stubs.SMAlgorithm algorithm)
           
 
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

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

QUEUE

public static final String QUEUE
See Also:
Constant Field Values

queueConfig

public static org.gcube.data.access.queueManager.FactoryConfiguration queueConfig
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

setLocalResourcesAvailable

public int setLocalResourcesAvailable(String agentId,
                                      org.gcube.data.analysis.statisticalmanager.stubs.SMAlgorithm algorithm)

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()


Copyright © 2012. All Rights Reserved.