|
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 | ||||||||
java.lang.Objectorg.eclipse.tptp.platform.execution.client.agent.internal.AgentImpl
public class AgentImpl
| Field Summary | |
|---|---|
protected AgentState |
_agentState
|
protected boolean |
_autoAttach
|
protected org.eclipse.tptp.platform.execution.client.core.IDataProcessor |
_dataProcessor
|
protected boolean |
_isActive
|
protected java.util.Vector |
_listeners
|
protected java.lang.String |
_name
|
protected org.eclipse.tptp.platform.execution.client.core.IProcess |
_process
|
protected java.lang.String |
_profileFile
|
protected java.lang.String |
_type
|
protected java.lang.String |
_uuid
|
protected java.lang.String |
_version
|
protected java.lang.String |
agentMetadata
|
protected org.eclipse.tptp.platform.execution.util.TPTPAgentAccess |
agentMode
|
| Constructor Summary | |
|---|---|
AgentImpl()
|
|
AgentImpl(java.lang.String name)
|
|
AgentImpl(java.lang.String name,
java.lang.String type)
|
|
| Method Summary | |
|---|---|
void |
addAgentListener(org.eclipse.tptp.platform.execution.client.agent.IAgentListener listener)
|
int |
addDataListener(org.eclipse.tptp.platform.execution.client.core.IDataProcessor dataProcessor)
|
long |
addEventListener(java.lang.String interfaceID,
org.eclipse.tptp.platform.execution.util.ICommandHandler listener)
Add a listener for agent events |
void |
attach()
|
void |
connectionClosed(IConnection connection)
Invoked when a connection is lost. |
void |
detach()
|
org.eclipse.tptp.platform.execution.client.core.IAgentController |
getAgentController()
|
int |
getAgentInstanceId()
Retrieve the instance id of this agent. |
java.util.Vector |
getAgentListener()
|
java.lang.String |
getAgentMetaData()
|
int |
getAgentMode()
|
int |
getAgentTokenId()
Retrieve the instance id of this agent. |
java.lang.String |
getName()
|
org.eclipse.tptp.platform.execution.client.core.IProcess |
getProcess()
Get the Process assocites with Agent |
java.lang.String[] |
getSupportedInterfaces()
|
java.lang.String |
getType()
|
java.lang.String |
getUUID()
|
java.lang.String |
getVersion()
Retrieve the version of this agent. |
void |
handleAgentCommand(org.eclipse.tptp.platform.execution.util.ICommandElement command)
This is the local handler for |
boolean |
isActive()
|
boolean |
isAttached()
|
boolean |
isAttached(boolean remote)
|
boolean |
isAutoAttach()
|
boolean |
isMonitored()
|
void |
processExited(org.eclipse.tptp.platform.execution.client.core.IProcess process)
Invoked when a process that was previously launched exits.The process parameter contains all the information regarding the process. |
void |
processLaunched(org.eclipse.tptp.platform.execution.client.core.IProcess process)
Invoked when a process is launched. |
int |
receiveData(char[] buffer)
|
void |
releaseAccess()
|
void |
releaseControl()
|
void |
removeAgentListener(org.eclipse.tptp.platform.execution.client.agent.IAgentListener listener)
|
void |
removeEventListener(java.lang.String interfaceID,
long listenerID)
Remove a listener for agent events |
boolean |
requestAccess(org.eclipse.tptp.platform.execution.util.TPTPAgentAccess accessMode)
|
boolean |
requestControl()
|
void |
sendCommand(org.eclipse.tptp.platform.execution.util.ICommandElement outCommand,
org.eclipse.tptp.platform.execution.util.ICommandHandler respHandler)
Send the command |
void |
sendCommand(java.lang.String outCommand,
org.eclipse.tptp.platform.execution.util.ICommandHandler respHandler)
Send the command |
void |
sendData(byte[] buffer)
|
void |
sendData(byte[] buffer,
int bufferLength)
|
void |
sendDataWithoutDime(byte[] buffer,
int bufferLength)
|
void |
setAgentController(org.eclipse.tptp.platform.execution.client.core.IAgentController ac)
|
void |
setAgentInstanceId(int id)
Change the agent instance's id |
void |
setAgentMode(org.eclipse.tptp.platform.execution.util.TPTPAgentAccess agentMode)
Get the Agent reference mode - Observer or Controller |
void |
setAgentTokenId(int id)
Change the agent instance's id |
void |
setName(java.lang.String name)
Change the name of the agent |
void |
setProcess(org.eclipse.tptp.platform.execution.client.core.IProcess process)
Set the Process associated with Agent |
void |
setType(java.lang.String type)
Change the type of the agent |
void |
setUUID(java.lang.String uuid)
|
void |
setVersion(java.lang.String version)
Set the Agent version |
void |
startMonitoring(org.eclipse.tptp.platform.execution.client.core.IDataProcessor processor)
|
void |
startMonitoring(org.eclipse.tptp.platform.execution.util.TPTPDataPath direction)
|
void |
startMonitoring(org.eclipse.tptp.platform.execution.util.TPTPDataPath direction,
org.eclipse.tptp.platform.execution.client.core.IDataProcessor processor)
|
void |
stopMonitoring()
|
void |
stopMonitoring(org.eclipse.tptp.platform.execution.client.core.IDataProcessor processor)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String _name
protected java.lang.String _type
protected java.lang.String _uuid
protected java.lang.String _version
protected boolean _autoAttach
protected boolean _isActive
protected java.lang.String _profileFile
protected org.eclipse.tptp.platform.execution.client.core.IProcess _process
protected java.lang.String agentMetadata
protected org.eclipse.tptp.platform.execution.util.TPTPAgentAccess agentMode
protected java.util.Vector _listeners
protected AgentState _agentState
protected org.eclipse.tptp.platform.execution.client.core.IDataProcessor _dataProcessor
| Constructor Detail |
|---|
public AgentImpl()
public AgentImpl(java.lang.String name)
public AgentImpl(java.lang.String name,
java.lang.String type)
| Method Detail |
|---|
public org.eclipse.tptp.platform.execution.client.core.IAgentController getAgentController()
public void setAgentController(org.eclipse.tptp.platform.execution.client.core.IAgentController ac)
public void addAgentListener(org.eclipse.tptp.platform.execution.client.agent.IAgentListener listener)
addAgentListener in interface org.eclipse.tptp.platform.execution.client.agent.IAgentAgent#addAgentListener(AgentListener)public void removeAgentListener(org.eclipse.tptp.platform.execution.client.agent.IAgentListener listener)
Agent#removeAgentListener(AgentListener)public java.util.Vector getAgentListener()
getAgentListener in interface org.eclipse.tptp.platform.execution.client.agent.IAgentAgent#removeAgentListener(AgentListener)public void setType(java.lang.String type)
type - value of the new typepublic void setName(java.lang.String name)
name - the new agent's namepublic int getAgentInstanceId()
public void setAgentInstanceId(int id)
uuid - the new uuid's valuepublic int getAgentTokenId()
public void setAgentTokenId(int id)
uuid - the new uuid's valuepublic java.lang.String getVersion()
public void setVersion(java.lang.String version)
version - the new version numberpublic void setProcess(org.eclipse.tptp.platform.execution.client.core.IProcess process)
setProcess in interface org.eclipse.tptp.platform.execution.client.agent.IAgentversion - the new version numberpublic org.eclipse.tptp.platform.execution.client.core.IProcess getProcess()
getProcess in interface org.eclipse.tptp.platform.execution.client.agent.IAgentversion - the new version number
public long addEventListener(java.lang.String interfaceID,
org.eclipse.tptp.platform.execution.util.ICommandHandler listener)
addEventListener in interface org.eclipse.tptp.platform.execution.client.agent.IAgentlistener - to handle the event notification
public void removeEventListener(java.lang.String interfaceID,
long listenerID)
removeEventListener in interface org.eclipse.tptp.platform.execution.client.agent.IAgentlistener - to handle the event notification
public void sendCommand(org.eclipse.tptp.platform.execution.util.ICommandElement outCommand,
org.eclipse.tptp.platform.execution.util.ICommandHandler respHandler)
throws org.eclipse.tptp.platform.execution.exceptions.InactiveAgentException
sendCommand in interface org.eclipse.tptp.platform.execution.client.agent.IAgentoutCommand - the command to send outhandler - processing the response of the command
org.eclipse.tptp.platform.execution.exceptions.InactiveAgentException
public void sendCommand(java.lang.String outCommand,
org.eclipse.tptp.platform.execution.util.ICommandHandler respHandler)
throws org.eclipse.tptp.platform.execution.exceptions.InactiveAgentException
sendCommand in interface org.eclipse.tptp.platform.execution.client.agent.IAgentoutCommand - the command to send outhandler - processing the response of the command
org.eclipse.tptp.platform.execution.exceptions.InactiveAgentExceptionpublic boolean isAutoAttach()
Agent#isAutoAttach(boolean)public java.lang.String getType()
Agent#getType()public java.lang.String getName()
getName in interface org.eclipse.tptp.platform.execution.client.agent.IAgentAgent#getName()public java.lang.String getUUID()
Agent#getUUID()public boolean isActive()
Agent#isActive()public boolean isMonitored()
isMonitored in interface org.eclipse.tptp.platform.execution.client.agent.IAgentAgent#isMonitored()public int addDataListener(org.eclipse.tptp.platform.execution.client.core.IDataProcessor dataProcessor)
addDataListener in interface org.eclipse.tptp.platform.execution.client.agent.IAgentpublic void startMonitoring(org.eclipse.tptp.platform.execution.util.TPTPDataPath direction)
startMonitoring in interface org.eclipse.tptp.platform.execution.client.agent.IAgent
public void startMonitoring(org.eclipse.tptp.platform.execution.util.TPTPDataPath direction,
org.eclipse.tptp.platform.execution.client.core.IDataProcessor processor)
throws org.eclipse.tptp.platform.execution.exceptions.InactiveAgentException
startMonitoring in interface org.eclipse.tptp.platform.execution.client.agent.IAgentorg.eclipse.tptp.platform.execution.exceptions.InactiveAgentExceptionAgent#startMonitoring()
public void startMonitoring(org.eclipse.tptp.platform.execution.client.core.IDataProcessor processor)
throws org.eclipse.tptp.platform.execution.exceptions.InactiveAgentException
startMonitoring in interface org.eclipse.tptp.platform.execution.client.agent.IAgentorg.eclipse.tptp.platform.execution.exceptions.InactiveAgentExceptionAgent#startMonitoring()
public void stopMonitoring(org.eclipse.tptp.platform.execution.client.core.IDataProcessor processor)
throws org.eclipse.tptp.platform.execution.exceptions.InactiveAgentException
org.eclipse.tptp.platform.execution.exceptions.InactiveAgentExceptionAgent#startMonitoring()
public void stopMonitoring()
throws org.eclipse.tptp.platform.execution.exceptions.InactiveAgentException
stopMonitoring in interface org.eclipse.tptp.platform.execution.client.agent.IAgentorg.eclipse.tptp.platform.execution.exceptions.InactiveAgentExceptionAgent#stopMonitoring()
public void sendData(byte[] buffer,
int bufferLength)
throws org.eclipse.tptp.platform.execution.exceptions.DataChannelConnectionException
org.eclipse.tptp.platform.execution.exceptions.DataChannelConnectionException
public void sendDataWithoutDime(byte[] buffer,
int bufferLength)
throws org.eclipse.tptp.platform.execution.exceptions.DataChannelConnectionException
org.eclipse.tptp.platform.execution.exceptions.DataChannelConnectionException
public void sendData(byte[] buffer)
throws org.eclipse.tptp.platform.execution.exceptions.DataChannelConnectionException
sendData in interface org.eclipse.tptp.platform.execution.client.agent.IAgentorg.eclipse.tptp.platform.execution.exceptions.DataChannelConnectionExceptionpublic void releaseAccess()
releaseAccess in interface org.eclipse.tptp.platform.execution.client.agent.IAgentpublic boolean requestControl()
requestControl in interface org.eclipse.tptp.platform.execution.client.agent.IAgentpublic void releaseControl()
releaseControl in interface org.eclipse.tptp.platform.execution.client.agent.IAgentpublic void setUUID(java.lang.String uuid)
public void handleAgentCommand(org.eclipse.tptp.platform.execution.util.ICommandElement command)
public void processLaunched(org.eclipse.tptp.platform.execution.client.core.IProcess process)
IProcessListener
processLaunched in interface IProcessListenerProcessListener#processLaunchedpublic void processExited(org.eclipse.tptp.platform.execution.client.core.IProcess process)
IProcessListener
processExited in interface IProcessListenerProcessListener#processExitedpublic void connectionClosed(IConnection connection)
IConnectionListener
connectionClosed in interface IConnectionListener
public void attach()
throws org.eclipse.tptp.platform.execution.exceptions.InactiveAgentException,
org.eclipse.tptp.platform.execution.exceptions.InactiveProcessException
org.eclipse.tptp.platform.execution.exceptions.InactiveAgentException
org.eclipse.tptp.platform.execution.exceptions.InactiveProcessExceptionAgent#attach()
public void detach()
throws org.eclipse.tptp.platform.execution.exceptions.InactiveAgentException,
org.eclipse.tptp.platform.execution.exceptions.InactiveProcessException
org.eclipse.tptp.platform.execution.exceptions.InactiveAgentException
org.eclipse.tptp.platform.execution.exceptions.InactiveProcessExceptionAgent#detach()public boolean isAttached()
Agent#isAttached()public boolean isAttached(boolean remote)
Agent#isAttached()
public int receiveData(char[] buffer)
throws org.eclipse.tptp.platform.execution.exceptions.InactiveAgentException,
org.eclipse.tptp.platform.execution.exceptions.NotConnectedException
receiveData in interface org.eclipse.tptp.platform.execution.client.agent.IAgentorg.eclipse.tptp.platform.execution.exceptions.InactiveAgentException
org.eclipse.tptp.platform.execution.exceptions.NotConnectedExceptionpublic java.lang.String[] getSupportedInterfaces()
getSupportedInterfaces in interface org.eclipse.tptp.platform.execution.client.agent.IAgent
public java.lang.String getAgentMetaData()
throws org.eclipse.tptp.platform.execution.exceptions.NotConnectedException
getAgentMetaData in interface org.eclipse.tptp.platform.execution.client.agent.IAgentorg.eclipse.tptp.platform.execution.exceptions.NotConnectedExceptionpublic int getAgentMode()
getAgentMode in interface org.eclipse.tptp.platform.execution.client.agent.IAgentpublic void setAgentMode(org.eclipse.tptp.platform.execution.util.TPTPAgentAccess agentMode)
public boolean requestAccess(org.eclipse.tptp.platform.execution.util.TPTPAgentAccess accessMode)
requestAccess in interface org.eclipse.tptp.platform.execution.client.agent.IAgent
|
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 | ||||||||