|
TPTP 4.5.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Agent
| 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 |
|---|
void addAgentListener(AgentListener listener)
AgentListenervoid removeAgentListener(AgentListener listener)
AgentListenerProcess getProcess()
void setProcess(Process p)
boolean isAutoAttach()
void setAutoAttach(boolean auto)
void attach()
throws InactiveAgentException,
InactiveProcessException
InactiveAgentException
InactiveProcessException
void detach()
throws InactiveAgentException,
InactiveProcessException
InactiveAgentException
InactiveProcessExceptionjava.lang.String getType()
void setType(java.lang.String type)
java.lang.String getName()
void setName(java.lang.String name)
java.lang.String getUUID()
void setUUID(java.lang.String uuid)
boolean isActive()
void setActive(boolean isActive)
boolean isMonitored()
void setMonitored(boolean isMonitored)
boolean isAttached()
boolean isAttached(boolean remote)
void setAttached(boolean isAttached)
void startMonitoring(DataProcessor processor)
throws InactiveAgentException
InactiveAgentException
void stopMonitoring()
throws InactiveAgentException
InactiveAgentExceptionvoid setConfiguration(AgentConfiguration config)
AgentConfiguration getConfiguration()
void publishConfiguration()
throws InactiveAgentException
InactiveAgentException
void invokeCustomCommand(CustomCommand command)
throws InactiveAgentException
InactiveAgentExceptionboolean isToProfileFile()
java.lang.String getProfileFile()
void setProfileFile(java.lang.String _profileFile)
_profileFile - The _profileFile to set
|
TPTP 4.5.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||