fr.dyade.aaa.agent
Interface EngineMBean


public interface EngineMBean


Method Summary
 java.lang.String dumpAgent(java.lang.String id)
           
 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.
 boolean isRunning()
          Tests if the engine is alive.
 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

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 © 2004 Scalagent - All rights reserved