|
TPTP 4.4.0 Platform Project Internal API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| Method Summary | |
|---|---|
void |
addAgentListener(AgentListener listener)
Add a listener that will inform you when this Agent becomes active/inactive. |
void |
attach()
Attach to the agent. |
void |
detach()
Detach from the agent. |
AgentConfiguration |
getConfiguration()
Get the configuration object for this agent. |
java.lang.String |
getName()
Retrieve the name of this agent. |
Process |
getProcess()
Get the process which this agent is a member of. |
java.lang.String |
getProfileFile()
Get the fully quality path of profiling file |
java.lang.String |
getType()
Retrieve the type name of this agent. |
java.lang.String |
getUUID()
Retrieve the UUID of this agent. |
void |
invokeCustomCommand(CustomCommand command)
Send a custom command to the agent for processing. |
boolean |
isActive()
Determine whether this agent is currently active. |
boolean |
isAttached()
Determine is this agent is currently attached to a client. |
boolean |
isAttached(boolean remote)
|
boolean |
isAutoAttach()
If autoAttach is set, this is like registering an interest in this agent. |
boolean |
isMonitored()
Determine if this agent is currently being monitored. |
boolean |
isToProfileFile()
Determine if this agent is sending data to a profiling file |
void |
publishConfiguration()
Publish's the AgentConfiguration to an active agent |
void |
removeAgentListener(AgentListener listener)
Remove a listener previously added with addAgentListener. |
void |
setActive(boolean isActive)
|
void |
setAttached(boolean isAttached)
|
void |
setAutoAttach(boolean auto)
|
void |
setConfiguration(AgentConfiguration config)
Set the configuration for the agent. |
void |
setMonitored(boolean isMonitored)
|
void |
setName(java.lang.String name)
|
void |
setProcess(Process p)
|
void |
setProfileFile(java.lang.String _profileFile)
Set the fully quality path of profiling file |
void |
setType(java.lang.String type)
|
void |
setUUID(java.lang.String uuid)
|
void |
startMonitoring(DataProcessor processor)
Start monitoring the data output of this agent using the specified DataProcessor. |
void |
stopMonitoring()
Stop monitoring this agent. |
| Method Detail |
public void addAgentListener(AgentListener listener)
AgentListenerpublic void removeAgentListener(AgentListener listener)
AgentListenerpublic Process getProcess()
public void setProcess(Process p)
public boolean isAutoAttach()
public void setAutoAttach(boolean auto)
public void attach()
throws InactiveAgentException,
InactiveProcessException
InactiveAgentException
InactiveProcessException
public void detach()
throws InactiveAgentException,
InactiveProcessException
InactiveAgentException
InactiveProcessExceptionpublic java.lang.String getType()
public void setType(java.lang.String type)
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getUUID()
public void setUUID(java.lang.String uuid)
public boolean isActive()
public void setActive(boolean isActive)
public boolean isMonitored()
public void setMonitored(boolean isMonitored)
public boolean isAttached()
public boolean isAttached(boolean remote)
public void setAttached(boolean isAttached)
public void startMonitoring(DataProcessor processor)
throws InactiveAgentException
InactiveAgentException
public void stopMonitoring()
throws InactiveAgentException
InactiveAgentExceptionpublic void setConfiguration(AgentConfiguration config)
public AgentConfiguration getConfiguration()
public void publishConfiguration()
throws InactiveAgentException
InactiveAgentException
public void invokeCustomCommand(CustomCommand command)
throws InactiveAgentException
InactiveAgentExceptionpublic boolean isToProfileFile()
public java.lang.String getProfileFile()
public void setProfileFile(java.lang.String _profileFile)
_profileFile - The _profileFile to set
|
TPTP 4.4.0 Platform Project Internal API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||