|
TPTP 4.4.0 Platform Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface represents the Agent Controller running on the target machine(either local or remote machine). The Agent Controller, provides services to launch new processes, and attach to agents that coexist within processes. It also provides extensible agent architecture for control capabilities and data collection. It provides capabilities for performing operations as described in this interface. Agent hosted within the Agent Controller may communicate data back to monitoring clients (e.g. TPTP workbench). Multiple agent controllers can reside on a target host (will service different ports) and a client can connect to multiple agent controllers on the target host. This interface is the source for instantiating IAgent and IProcess objects.
| Method Summary | |
|---|---|
int |
addEventListener(java.lang.String interfaceID,
ICommandHandler eventHandler)
Add the Event Listener to listen to the events (specified by the interfaceID) from the Agent Controller |
boolean |
authenticateUser(User user)
|
IProcess |
createProcess()
Create the Process object to store process related information |
IProcess |
createProcess(java.lang.String executable)
Create the Process and set the executable attirbute of the process object |
IProcess |
createProcess(java.lang.String executable,
java.lang.String parameters)
Create the Process and set the executable attirbute of the process object, and parameters |
void |
disconnect()
Disconnect from Agent Controller |
IAgent |
getAgent(java.lang.String agentName,
long processId)
Retrieve an Agent instance that is bound to the input process id of the target process. |
IAgent |
getAgent(java.lang.String agentName,
java.lang.String agentClassName)
Retrieve an existing Agent instance, This method will create a new instance if there is no existing agent instance available |
IAgent |
getAgent(java.lang.String agentName,
java.lang.String agentClassName,
long processId)
Retrieve an Agent instance. |
IAgent |
getAgent(java.lang.String agentName,
java.lang.String agentClassName,
TPTPAgentAccess accessMode)
Retrieve an Agent instance. |
IAgent |
getAgent(java.lang.String agentName,
TPTPAgentAccess accessMode)
Retrieve an agent instance |
ConnectionInfo |
getConnectionInfo()
Get the Connection Infomation - protocol, port number, secured connection info( for secured connection) |
IFileTransferManager |
getFileTransferManager()
Returns instance of File Transfer Manager that provides file transfer services like Get File, Put File and Delete File |
long |
getNextContextId()
Get the Next Context ID for sending commands |
INode |
getNode()
Retrieve the instance of INode associated with the Agent Controller |
IProcess |
getProcess(long processId)
Retrieve a specific Process on this Node |
java.util.Enumeration |
listAgents()
Enumerate all the active agents on this node. |
java.util.Enumeration |
listProcesses()
Enumerate all the active processes on this node. |
java.lang.String[] |
queryAvailableAgents()
Retrieve the list of available agents on the Agent Controller. |
java.lang.String[] |
queryAvailableAgents(java.lang.String[] interfaceID)
|
IAgent[] |
queryRunningAgents()
Returns the list of running agents |
IAgent[] |
queryRunningAgents(java.lang.String[] interfaceID)
Returns the list of running agents filtered by interface ID |
IAgent[] |
queryRunningAgents(java.lang.String agentName,
java.lang.String[] interfaceID,
long pid)
Query Agent by a processid, agent name and interface id. |
void |
removeEventListener(java.lang.String interfaceID,
ICommandHandler eventHandler)
Remove the Event Listener - Stop listening to the events (specified by interfaceID) |
| Method Detail |
public INode getNode()
public long getNextContextId()
public void disconnect()
public IAgent getAgent(java.lang.String agentName,
java.lang.String agentClassName)
throws NotConnectedException
agentName - agentClassName -
NotConnectedException
public IAgent getAgent(java.lang.String agentName,
java.lang.String agentClassName,
TPTPAgentAccess accessMode)
throws NotConnectedException
agentName - agentClassName - accessMode - see TPTPAgentAccess
NotConnectedException
public IAgent getAgent(java.lang.String agentName,
long processId)
throws NotConnectedException
agentName - processId -
NotConnectedException
public IAgent getAgent(java.lang.String agentName,
java.lang.String agentClassName,
long processId)
throws NotConnectedException
agentName - agentClassName - processId -
NotConnectedException
public java.util.Enumeration listProcesses()
throws NotConnectedException
NotConnectedException
public java.util.Enumeration listAgents()
throws NotConnectedException
NotConnectedException
public IProcess getProcess(long processId)
throws NotConnectedException
processId -
NotConnectedException
public java.lang.String[] queryAvailableAgents()
throws NotConnectedException
NotConnectedException
public java.lang.String[] queryAvailableAgents(java.lang.String[] interfaceID)
throws NotConnectedException
interfaceID -
NotConnectedException
public IAgent[] queryRunningAgents()
throws NotConnectedException
NotConnectedException
public IAgent[] queryRunningAgents(java.lang.String[] interfaceID)
throws NotConnectedException
NotConnectedExceptionpublic IFileTransferManager getFileTransferManager()
public int addEventListener(java.lang.String interfaceID,
ICommandHandler eventHandler)
interfaceID - eventHandler -
public void removeEventListener(java.lang.String interfaceID,
ICommandHandler eventHandler)
interfaceID - eventHandler - public IProcess createProcess()
public IProcess createProcess(java.lang.String executable)
executable -
public IProcess createProcess(java.lang.String executable,
java.lang.String parameters)
executable - parameters -
public ConnectionInfo getConnectionInfo()
public boolean authenticateUser(User user)
throws NotConnectedException
NotConnectedException
public IAgent getAgent(java.lang.String agentName,
TPTPAgentAccess accessMode)
throws NotConnectedException
agentName - accessMode -
NotConnectedException
public IAgent[] queryRunningAgents(java.lang.String agentName,
java.lang.String[] interfaceID,
long pid)
throws NotConnectedException
agentName - pid -
NotConnectedException
|
TPTP 4.4.0 Platform Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||