Constructor and Description |
---|
DefaultAgent() |
Modifier and Type | Method and Description |
---|---|
protected ProcessThread |
createProcessThread(java.lang.ThreadGroup processesThreadGroup,
ExecutionModulesManager modulesManager,
ExecutionProcess process)
Creates the thread which will coordinate the execution for this agent.
|
void |
destroy()
Clean up (needs to be called by overriding method)
|
java.lang.String |
getAgentUuid()
Agent unique identifier
|
ExecutionModuleDescriptor |
getExecutionModuleDescriptor(java.lang.String moduleName,
java.lang.String moduleVersion)
Describe all the flows provided by this execution module.
|
void |
init()
Initialization
|
protected java.lang.String |
initAgentUuid()
Called during initialization in order to determines the agent UUID.
|
void |
kill(java.lang.String processUuid)
Kills this process
|
java.util.List<ExecutionModuleDescriptor> |
listExecutionModuleDescriptors()
List all execution modules which can be processed by this agent.
|
boolean |
ping() |
void |
process(ExecutionProcess process)
Execute / take part to this process
|
java.lang.String |
process(java.util.List<java.net.URI> uris)
Asynchronously processes the flows defined as URIs, or interpret a single
UUID URN as a scheduled or template process.
|
void |
setDefaultModulePrefix(java.lang.String defaultModulePrefix) |
void |
setModulesManager(ExecutionModulesManager modulesManager) |
java.lang.String |
toString() |
void |
waitFor(java.lang.String processUuid,
java.lang.Long millis)
Wait for this process to finish.
|
public void init()
public void destroy()
protected java.lang.String initAgentUuid()
public void process(ExecutionProcess process)
SlcAgent
public java.lang.String process(java.util.List<java.net.URI> uris)
SlcAgent
public void kill(java.lang.String processUuid)
SlcAgent
public void waitFor(java.lang.String processUuid, java.lang.Long millis)
SlcAgent
protected ProcessThread createProcessThread(java.lang.ThreadGroup processesThreadGroup, ExecutionModulesManager modulesManager, ExecutionProcess process)
public ExecutionModuleDescriptor getExecutionModuleDescriptor(java.lang.String moduleName, java.lang.String moduleVersion)
SlcAgent
getExecutionModuleDescriptor
in interface SlcAgent
public java.util.List<ExecutionModuleDescriptor> listExecutionModuleDescriptors()
SlcAgent
listExecutionModuleDescriptors
in interface SlcAgent
public void setModulesManager(ExecutionModulesManager modulesManager)
public void setDefaultModulePrefix(java.lang.String defaultModulePrefix)
public java.lang.String getAgentUuid()
SlcAgent
getAgentUuid
in interface SlcAgent
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2007–2020. All rights reserved.