org.gcube.dataanalysis.executor.job.management
Class DistributedProcessingAgent
java.lang.Object
org.gcube.dataanalysis.executor.job.management.DistributedProcessingAgent
public class DistributedProcessingAgent
- extends Object
|
Constructor Summary |
DistributedProcessingAgent(Serializable configurationFile,
String gCubeScope,
String computationOwner,
String mainClass,
String pathToLibFolder,
String modelName,
String containerFolder,
int maxElementsPerJob,
boolean forceReUploadofLibs,
int leftSetNumberOfElements,
int rightSetNumberOfElements)
A distributed processing agent. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
jobManager
protected QueueJobManager jobManager
deletefiles
protected boolean deletefiles
mainclass
protected String mainclass
maxElementsAllowedPerJob
protected 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
configurationFile
protected Serializable configurationFile
rightSetNumberOfElements
protected int rightSetNumberOfElements
leftSetNumberOfElements
protected int leftSetNumberOfElements
endpoints
protected List<String> endpoints
subdivisiondiv
protected int subdivisiondiv
defaultJobOutput
protected static String defaultJobOutput
defaultScriptFile
protected static String defaultScriptFile
logger
protected org.apache.log4j.Logger logger
DistributedProcessingAgent
public DistributedProcessingAgent(Serializable configurationFile,
String gCubeScope,
String computationOwner,
String mainClass,
String pathToLibFolder,
String modelName,
String containerFolder,
int maxElementsPerJob,
boolean forceReUploadofLibs,
int leftSetNumberOfElements,
int rightSetNumberOfElements)
- 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.
setLogger
public void setLogger(org.apache.log4j.Logger logger)
setEndPoints
public void setEndPoints(List<String> endpoints)
hasResentMessages
public boolean hasResentMessages()
compute
public void compute()
throws Exception
- Throws:
Exception
buildScriptFile
public void buildScriptFile(String jobName,
String jobOutput,
String jarsPath,
String fullMainClass)
throws Exception
- Throws:
Exception
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()
Copyright © 2013. All Rights Reserved.