fr.dyade.aaa.agent
Interface EngineMBean


public interface EngineMBean


Method Summary
 java.lang.String dumpAgent(java.lang.String id)
           
 float getAverageLoad1()
          Returns the load averages for the last minute.
 float getAverageLoad15()
          Returns the load averages for the past 15 minutes.
 float getAverageLoad5()
          Returns the load averages for the past 5 minutes.
 long getCommitTime()
           
 java.lang.String getName()
          Returns this Engine's name.
 int getNbAgents()
          Returns the number of agents actually loaded in memory.
 int getNbFixedAgents()
          Returns the number of fixed agents.
 int getNbMaxAgents()
          Returns the maximum number of agents loaded in memory.
 int getNbMessages()
          Gets the number of messages posted to this engine since creation.
 long getNbReactions()
          Returns the number of agent's reaction since last boot.
 int getNbWaitingMessages()
          Gets the number of waiting messages in this engine.
 long getReactTime()
           
 boolean isAgentProfiling()
           
 boolean isRunning()
          Tests if the engine is alive.
 void setAgentProfiling(boolean agentProfiling)
           
 void setNbMaxAgents(int NbMaxAgents)
          Sets the maximum number of agents that can be loaded simultaneously in memory.
 void start()
          Causes this engine to begin execution
 void stop()
          Forces the engine to stop executing
 java.lang.String toString()
          Returns a string representation of this engine.
 

Method Detail

getName

java.lang.String getName()
Returns this Engine's name.

Returns:
this Engine's name.

getNbMaxAgents

int getNbMaxAgents()
Returns the maximum number of agents loaded in memory.

Returns:
the maximum number of agents loaded in memory

getNbAgents

int getNbAgents()
Returns the number of agents actually loaded in memory.

Returns:
the maximum number of agents actually loaded in memory

isRunning

boolean isRunning()
Tests if the engine is alive.

Returns:
true if this MessageConsumer is alive; false otherwise.

getNbReactions

long getNbReactions()
Returns the number of agent's reaction since last boot.

Returns:
the number of agent's reaction since last boot

getNbMessages

int getNbMessages()
Gets the number of messages posted to this engine since creation. return the number of messages.


getNbWaitingMessages

int getNbWaitingMessages()
Gets the number of waiting messages in this engine. return the number of waiting messages.


getNbFixedAgents

int getNbFixedAgents()
Returns the number of fixed agents.

Returns:
the number of fixed agents

setNbMaxAgents

void setNbMaxAgents(int NbMaxAgents)
Sets the maximum number of agents that can be loaded simultaneously in memory.

Parameters:
NbMaxAgents - the maximum number of agents

dumpAgent

java.lang.String dumpAgent(java.lang.String id)
                           throws java.lang.Exception
Throws:
java.lang.Exception

isAgentProfiling

boolean isAgentProfiling()

setAgentProfiling

void setAgentProfiling(boolean agentProfiling)

getReactTime

long getReactTime()
Returns:
the reactTime

getCommitTime

long getCommitTime()
Returns:
the commitTime

getAverageLoad1

float getAverageLoad1()
Returns the load averages for the last minute.

Returns:
the load averages for the last minute.

getAverageLoad5

float getAverageLoad5()
Returns the load averages for the past 5 minutes.

Returns:
the load averages for the past 5 minutes.

getAverageLoad15

float getAverageLoad15()
Returns the load averages for the past 15 minutes.

Returns:
the load averages for the past 15 minutes.

toString

java.lang.String toString()
Returns a string representation of this engine.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this engine.

start

void start()
           throws java.lang.Exception
Causes this engine to begin execution

Throws:
java.lang.Exception

stop

void stop()
Forces the engine to stop executing



Copyright © 2011 ScalAgent D.T.. All Rights Reserved.