Class DistributedProcessingAgentWPS
- java.lang.Object
-
- org.gcube.dataanalysis.executor.job.management.DistributedProcessingAgentWPS
-
public class DistributedProcessingAgentWPS extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected org.gcube.dataanalysis.ecoengine.configuration.AlgorithmConfigurationconfigurationprotected StringcontainerFolderprotected static StringdefaultJobOutputprotected static StringdefaultScriptFileprotected booleandeletefilesprotected List<String>endpointsprotected booleanforceUploadprotected Stringgscopeprotected WPSJobManagerjobManagerprotected intleftSetNumberOfElementsprotected org.apache.log4j.Loggerloggerprotected StringmainclassintmaxElementsAllowedPerJobprotected StringmodelNameprotected StringpathToLibprotected intrightSetNumberOfElementsprotected StringsessionIDprotected booleanstopprotected intsubdivisiondivprotected StringuserName
-
Constructor Summary
Constructors Constructor Description DistributedProcessingAgentWPS(org.gcube.dataanalysis.ecoengine.configuration.AlgorithmConfiguration configuration, String gCubeScope, String computationOwner, String mainClass, String pathToLibFolder, String modelName, String containerFolder, int maxElementsPerJob, boolean forceReUploadofLibs, int leftSetNumberOfElements, int rightSetNumberOfElements, String sessionID)A distributed processing agent.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcompute()org.gcube.dataanalysis.ecoengine.configuration.INFRASTRUCTUREgetInfrastructure()StringgetLoad()StringgetResourceLoad()StringgetResources()floatgetStatus()org.gcube.dataanalysis.ecoengine.configuration.ALG_PROPS[]getSupportedAlgorithms()booleanhasResentMessages()voidsetLogger(org.apache.log4j.Logger logger)voidshutdown()
-
-
-
Field Detail
-
jobManager
protected WPSJobManager jobManager
-
deletefiles
protected boolean deletefiles
-
mainclass
protected String mainclass
-
maxElementsAllowedPerJob
public int maxElementsAllowedPerJob
-
forceUpload
protected boolean forceUpload
-
stop
protected boolean stop
-
gscope
protected String gscope
-
userName
protected String userName
-
pathToLib
protected String pathToLib
-
modelName
protected String modelName
-
containerFolder
protected String containerFolder
-
configuration
protected org.gcube.dataanalysis.ecoengine.configuration.AlgorithmConfiguration configuration
-
rightSetNumberOfElements
protected int rightSetNumberOfElements
-
leftSetNumberOfElements
protected int leftSetNumberOfElements
-
subdivisiondiv
protected int subdivisiondiv
-
sessionID
protected String sessionID
-
defaultJobOutput
protected static String defaultJobOutput
-
defaultScriptFile
protected static String defaultScriptFile
-
logger
protected org.apache.log4j.Logger logger
-
-
Constructor Detail
-
DistributedProcessingAgentWPS
public DistributedProcessingAgentWPS(org.gcube.dataanalysis.ecoengine.configuration.AlgorithmConfiguration configuration, String gCubeScope, String computationOwner, String mainClass, String pathToLibFolder, String modelName, String containerFolder, int maxElementsPerJob, boolean forceReUploadofLibs, int leftSetNumberOfElements, int rightSetNumberOfElements, String sessionID)A distributed processing agent. Performs a distributed computation doing the MAP of the product of two sets: A and B Splits over B : A x B1 , A x B2, ... , A x Bn Prepares a script to be executed on remote nodes The computation is then sent to remote processors.
-
-
Method Detail
-
setLogger
public void setLogger(org.apache.log4j.Logger logger)
-
hasResentMessages
public boolean hasResentMessages()
-
getResources
public String getResources()
-
getStatus
public float getStatus()
-
getSupportedAlgorithms
public org.gcube.dataanalysis.ecoengine.configuration.ALG_PROPS[] getSupportedAlgorithms()
-
getInfrastructure
public org.gcube.dataanalysis.ecoengine.configuration.INFRASTRUCTURE getInfrastructure()
-
shutdown
public void shutdown()
-
getLoad
public String getLoad()
-
getResourceLoad
public String getResourceLoad()
-
-