|
TPTP 4.6.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Process
| Method Summary | |
|---|---|
void |
addEnvironmentVariable(Variable variable)
Adds an environment variable to this process. |
void |
addProcessListener(ProcessListener listener)
Adds a ProcessListener to this Process instance. |
Agent |
getAgent(java.lang.String name)
Retrieves an agent based upon it's name |
java.util.Enumeration |
getAgentsByType(java.lang.String type)
Provides an enumeration of all the agents of a specific type that are assciated with this Process. |
Console |
getConsole()
Retrieves the console of this Process instance. |
java.util.Enumeration |
getEnvironment()
Provides an enumeration of each Variabe comprising the entire environment of this process. |
Variable |
getEnvironmentVariable(java.lang.String name)
Retrieves an environment variable from this process. |
java.lang.String |
getExecutable()
Get the exectable name for this process. |
java.lang.String |
getName()
Retrieves the name of this process as provided by Process#setName() |
Node |
getNode()
Retrieves the Node that this Process instance is associated with. |
java.lang.String |
getParameters()
Retrieves the parameters of the process. |
java.lang.String |
getProcessId()
Retrieve the process ID (pid) for this process |
java.lang.String |
getUUID()
Retrieves the uuid of this process if it is known, null otherwise. |
boolean |
isActive()
|
void |
kill(long delay)
Kills this process if it is active. |
void |
launch()
Launches the process on the node that was provided to the ProcessFactory during construction of this Process instance. |
java.util.Enumeration |
listAgents()
Provides an Enumeration of all the Agents associated with this Process instance. |
void |
removeEnvironmentVariable(Variable variable)
Removes an environment variable from this process. |
void |
removeProcessListener(ProcessListener listener)
Removes a ProcessListener from this Process instance. |
void |
setActive(boolean isActive)
|
void |
setExecutable(java.lang.String exe)
Set the exectauble name for this process. |
void |
setLocation(java.lang.String location)
Set's the home directory of the process. |
void |
setName(java.lang.String name)
Save a user friendly name so that it can be retrieved later via Process#getName() |
void |
setParameters(java.lang.String parameters)
Set the parameters for this process |
void |
setProcessId(java.lang.String pid)
|
void |
setUUID(java.lang.String uuid)
|
Agent |
waitForAgent(java.lang.String agentType,
java.lang.String agentName,
int timeout)
Blocks calling thread until the agent is retrieved, if the agent cannot be retrieved within the timeout period, null is returned for the agent return value. |
| Method Detail |
|---|
void launch()
throws ProcessActiveException,
NotConnectedException,
NoSuchApplicationException
ProcessActiveException
NotConnectedException
NoSuchApplicationException
void kill(long delay)
throws InactiveProcessException,
NotConnectedException
InactiveProcessException
NotConnectedExceptionjava.util.Enumeration listAgents()
AgentAgent getAgent(java.lang.String name)
Agentjava.util.Enumeration getAgentsByType(java.lang.String type)
void addProcessListener(ProcessListener listener)
ProcessListenervoid removeProcessListener(ProcessListener listener)
ProcessListener
Node getNode()
throws InactiveProcessException
InactiveProcessExceptionNodevoid setName(java.lang.String name)
java.lang.String getName()
java.lang.String getUUID()
void setUUID(java.lang.String uuid)
void setExecutable(java.lang.String exe)
throws ProcessActiveException
ProcessActiveExceptionjava.lang.String getExecutable()
java.lang.String getProcessId()
throws InactiveProcessException
InactiveProcessExceptionvoid setProcessId(java.lang.String pid)
boolean isActive()
void setActive(boolean isActive)
Console getConsole()
void addEnvironmentVariable(Variable variable)
throws ProcessActiveException
ProcessActiveExceptionVariable getEnvironmentVariable(java.lang.String name)
void removeEnvironmentVariable(Variable variable)
throws ProcessActiveException
ProcessActiveExceptionjava.util.Enumeration getEnvironment()
Variable
void setParameters(java.lang.String parameters)
throws ProcessActiveException
ProcessActiveExceptionjava.lang.String getParameters()
void setLocation(java.lang.String location)
throws ProcessActiveException
ProcessActiveException
Agent waitForAgent(java.lang.String agentType,
java.lang.String agentName,
int timeout)
throws NotConnectedException,
InactiveProcessException
agentType - the type of agent qualified the selectionagentName - the name of the agent to wait fortimeout - the maximum time to wait for the agent to be retrieved
NotConnectedException
InactiveProcessException
|
TPTP 4.6.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||