TPTP 4.0.0 Monitoring Tools Project
Public API Specification

org.eclipse.hyades.perfmon.agents.core
Class CoreAgent

java.lang.Object
  extended byorg.eclipse.hyades.perfmon.agents.core.CoreAgent
All Implemented Interfaces:
org.eclipse.hyades.internal.execution.remote.AgentControllerListener, org.eclipse.hyades.internal.execution.remote.CustomCommandHandler, org.eclipse.hyades.internal.execution.remote.MonitorListener

public class CoreAgent
extends java.lang.Object
implements org.eclipse.hyades.internal.execution.remote.CustomCommandHandler, org.eclipse.hyades.internal.execution.remote.AgentControllerListener, org.eclipse.hyades.internal.execution.remote.MonitorListener


Field Summary
 Debugger dbg
           
 
Constructor Summary
CoreAgent(java.lang.String agentName, java.lang.String agentType)
           
 
Method Summary
static void addJarToClassPath(java.io.File jarFile)
           
static void addJarToClassPath(java.lang.String fileURL)
           
static void addJarToClassPath(java.net.URL jarURL)
           
 void agentControllerActive()
           
 void agentControllerInactive()
           
 void getChildren(java.lang.String id)
           
 java.util.Properties getConnectionProperties()
           
 void handleCommand(org.eclipse.hyades.internal.execution.local.common.CustomCommand command)
           
 boolean isAgentActive()
           
 void monitorActive()
           
 void monitorInactive()
           
 void recursiveJarAdd(java.lang.String directory)
           
 void sendCBEMessage(java.lang.String msg, int severity)
           
 void sendCBEMessage(java.lang.String msg, java.lang.String severity)
           
 void sendCBEMessage(java.lang.String component, java.lang.String subComponent, java.lang.String msg, java.lang.String severity)
           
 void sendCounter(java.lang.String id, java.lang.String pid, java.lang.String name, java.lang.String description)
           
 void sendDescriptor(java.lang.String id, java.lang.String pid, java.lang.String name, java.lang.String description)
           
 void sendDoubleResult(java.lang.String id, java.lang.Double result)
           
 void sendDoubleResult(java.lang.String id, java.lang.String result)
           
 void sendMessage(java.lang.String msg)
           
 void sendStringResult(java.lang.String id, java.lang.String result)
           
 void setDataCollector(DataCollectionLayer dataCollector)
           
 void setValue(java.lang.String id, java.lang.String value)
           
 void stopAgent()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dbg

public Debugger dbg
Constructor Detail

CoreAgent

public CoreAgent(java.lang.String agentName,
                 java.lang.String agentType)
Method Detail

getConnectionProperties

public java.util.Properties getConnectionProperties()

isAgentActive

public boolean isAgentActive()

setDataCollector

public void setDataCollector(DataCollectionLayer dataCollector)

stopAgent

public void stopAgent()

sendCBEMessage

public void sendCBEMessage(java.lang.String msg,
                           java.lang.String severity)

sendCBEMessage

public void sendCBEMessage(java.lang.String msg,
                           int severity)

sendCBEMessage

public void sendCBEMessage(java.lang.String component,
                           java.lang.String subComponent,
                           java.lang.String msg,
                           java.lang.String severity)

sendMessage

public void sendMessage(java.lang.String msg)

setValue

public void setValue(java.lang.String id,
                     java.lang.String value)

getChildren

public void getChildren(java.lang.String id)

handleCommand

public void handleCommand(org.eclipse.hyades.internal.execution.local.common.CustomCommand command)
Specified by:
handleCommand in interface org.eclipse.hyades.internal.execution.remote.CustomCommandHandler

monitorActive

public void monitorActive()
Specified by:
monitorActive in interface org.eclipse.hyades.internal.execution.remote.MonitorListener

monitorInactive

public void monitorInactive()
Specified by:
monitorInactive in interface org.eclipse.hyades.internal.execution.remote.MonitorListener

agentControllerActive

public void agentControllerActive()
Specified by:
agentControllerActive in interface org.eclipse.hyades.internal.execution.remote.AgentControllerListener

agentControllerInactive

public void agentControllerInactive()
Specified by:
agentControllerInactive in interface org.eclipse.hyades.internal.execution.remote.AgentControllerListener

addJarToClassPath

public static void addJarToClassPath(java.lang.String fileURL)
                              throws java.io.IOException,
                                     java.lang.NoSuchMethodException,
                                     java.lang.reflect.InvocationTargetException,
                                     java.lang.IllegalAccessException
Throws:
java.io.IOException
java.lang.NoSuchMethodException
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException

addJarToClassPath

public static void addJarToClassPath(java.io.File jarFile)
                              throws java.io.IOException,
                                     java.lang.NoSuchMethodException,
                                     java.lang.reflect.InvocationTargetException,
                                     java.lang.IllegalAccessException
Throws:
java.io.IOException
java.lang.NoSuchMethodException
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException

addJarToClassPath

public static void addJarToClassPath(java.net.URL jarURL)
                              throws java.io.IOException,
                                     java.lang.NoSuchMethodException,
                                     java.lang.reflect.InvocationTargetException,
                                     java.lang.IllegalAccessException
Throws:
java.io.IOException
java.lang.NoSuchMethodException
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException

recursiveJarAdd

public void recursiveJarAdd(java.lang.String directory)

sendStringResult

public void sendStringResult(java.lang.String id,
                             java.lang.String result)

sendDoubleResult

public void sendDoubleResult(java.lang.String id,
                             java.lang.Double result)

sendDoubleResult

public void sendDoubleResult(java.lang.String id,
                             java.lang.String result)

sendCounter

public void sendCounter(java.lang.String id,
                        java.lang.String pid,
                        java.lang.String name,
                        java.lang.String description)

sendDescriptor

public void sendDescriptor(java.lang.String id,
                           java.lang.String pid,
                           java.lang.String name,
                           java.lang.String description)

TPTP 4.0.0 Monitoring Tools Project
Public API Specification