TPTP 4.6.0 Platform Project
Internal API Specification

org.eclipse.hyades.trace.ui.internal.piclient
Class PIProcessListener

java.lang.Object
  extended by org.eclipse.hyades.trace.ui.internal.piclient.PIProcessListener
All Implemented Interfaces:
AgentListener, AgentPeerListener, ProcessListener
Direct Known Subclasses:
PIAttachListener

public class PIProcessListener
extends java.lang.Object
implements ProcessListener, AgentPeerListener


Field Summary
protected  boolean _autoMonitoring
           
protected  int _launchMode
           
protected  boolean _monitor
           
protected  java.util.ArrayList _monitoredAgents
           
protected  java.util.ArrayList _processVariableList
           
protected  org.eclipse.hyades.models.hierarchy.TRCNode fNode
           
protected  org.eclipse.hyades.models.hierarchy.TRCProcessProxy fProcess
           
protected static java.lang.String getLauncherHandlersExtPoint
           
 
Constructor Summary
PIProcessListener(org.eclipse.hyades.models.hierarchy.TRCNode node)
          PIProcessListener constructor comment.
PIProcessListener(org.eclipse.hyades.models.hierarchy.TRCNode node, org.eclipse.hyades.models.hierarchy.TRCProcessProxy process)
           
 
Method Summary
 void addAgent(Agent agent)
          If this method is invoked to add an agent, then only agents that are explicitly added will be loaded as part of the model; otherwise all agents associated with the process will be loaded.
 void agentActive(Agent ag)
          Invoked when an agent first becomes active
 void agentInactive(Agent ag)
          Invoked when an agent becomes inactive.
 void dispose()
           
 void error(Agent agent, java.lang.String errorId, java.lang.String errStr)
          Invoked when an error is recieved from the agent.
 StatGeneratorDataProcessor getDataProcessor()
          Return the data processor associated with this listener.
 java.util.ArrayList getProcessVariableList()
           
protected  void giveControl(org.eclipse.hyades.models.hierarchy.TRCAgentProxy agentProxy, boolean pre, boolean active)
          called during an agentActive or agentInactive scenario
protected  void giveControl(org.eclipse.hyades.models.hierarchy.TRCProcessProxy processProxy, boolean launched)
          called during a process Lauhced or process Exited scenario
 void handleCommand(Agent agent, CommandElement command)
          Invoked when there is no established handler for the context of a message.
 void monitor(boolean monitor)
           
 void peerWaiting(Agent agent, Agent peer)
          Invoked when an agent requests to be monitored because this client is currently monitoring another agent.
 void processExited(Process result)
          Invoked when a process that was previously launched exits.The process parameter contains all the information regarding the process.
 void processLaunched(Process result)
          Invoked when a process is launched.
 Agent sendConfigurationToAgent(org.eclipse.hyades.models.hierarchy.TRCAgentProxy agent, java.lang.String host, java.lang.String processId)
           
 void setAutoMonitoring(boolean b)
           
 void setLaunchMode(int mode)
          Insert the method's description here.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_monitoredAgents

protected java.util.ArrayList _monitoredAgents

_processVariableList

protected java.util.ArrayList _processVariableList

fNode

protected org.eclipse.hyades.models.hierarchy.TRCNode fNode

fProcess

protected org.eclipse.hyades.models.hierarchy.TRCProcessProxy fProcess

_autoMonitoring

protected boolean _autoMonitoring

_monitor

protected boolean _monitor

_launchMode

protected int _launchMode

getLauncherHandlersExtPoint

protected static final java.lang.String getLauncherHandlersExtPoint
See Also:
Constant Field Values
Constructor Detail

PIProcessListener

public PIProcessListener(org.eclipse.hyades.models.hierarchy.TRCNode node)
PIProcessListener constructor comment.


PIProcessListener

public PIProcessListener(org.eclipse.hyades.models.hierarchy.TRCNode node,
                         org.eclipse.hyades.models.hierarchy.TRCProcessProxy process)
Method Detail

setAutoMonitoring

public void setAutoMonitoring(boolean b)
Parameters:
b -

setLaunchMode

public void setLaunchMode(int mode)
Insert the method's description here. Creation date: (5/2/2001 5:37:22 PM)

Parameters:
mode - int

getProcessVariableList

public java.util.ArrayList getProcessVariableList()
Returns:
HashMap

getDataProcessor

public StatGeneratorDataProcessor getDataProcessor()
Return the data processor associated with this listener. This can be null if no processor has not yet been associated with this listener.

Returns:
The data processor associated with this listener

agentActive

public void agentActive(Agent ag)
Description copied from interface: AgentListener
Invoked when an agent first becomes active

Specified by:
agentActive in interface AgentListener

agentInactive

public void agentInactive(Agent ag)
Description copied from interface: AgentListener
Invoked when an agent becomes inactive.

Specified by:
agentInactive in interface AgentListener

giveControl

protected void giveControl(org.eclipse.hyades.models.hierarchy.TRCAgentProxy agentProxy,
                           boolean pre,
                           boolean active)
called during an agentActive or agentInactive scenario

Parameters:
agentProxy -
pre -
active -

giveControl

protected void giveControl(org.eclipse.hyades.models.hierarchy.TRCProcessProxy processProxy,
                           boolean launched)
called during a process Lauhced or process Exited scenario

Parameters:
processProxy -
launched -

dispose

public void dispose()

error

public void error(Agent agent,
                  java.lang.String errorId,
                  java.lang.String errStr)
Invoked when an error is recieved from the agent.

Specified by:
error in interface AgentListener

handleCommand

public void handleCommand(Agent agent,
                          CommandElement command)
Description copied from interface: AgentListener
Invoked when there is no established handler for the context of a message.

Specified by:
handleCommand in interface AgentListener

monitor

public void monitor(boolean monitor)

peerWaiting

public void peerWaiting(Agent agent,
                        Agent peer)
Invoked when an agent requests to be monitored because this client is currently monitoring another agent.

Specified by:
peerWaiting in interface AgentPeerListener

processExited

public void processExited(Process result)
Description copied from interface: ProcessListener
Invoked when a process that was previously launched exits.The process parameter contains all the information regarding the process.

Specified by:
processExited in interface ProcessListener

processLaunched

public void processLaunched(Process result)
Description copied from interface: ProcessListener
Invoked when a process is launched. The process parameter contains all the information regarding the process.

Specified by:
processLaunched in interface ProcessListener

sendConfigurationToAgent

public Agent sendConfigurationToAgent(org.eclipse.hyades.models.hierarchy.TRCAgentProxy agent,
                                      java.lang.String host,
                                      java.lang.String processId)

addAgent

public void addAgent(Agent agent)
If this method is invoked to add an agent, then only agents that are explicitly added will be loaded as part of the model; otherwise all agents associated with the process will be loaded.

Parameters:
agent - The agent to be added

TPTP 4.6.0 Platform Project
Internal API Specification