public interface EngineMBean
Modifier and Type | Method and Description |
---|---|
String |
dumpAgent(String id) |
int |
getAverageCPU()
Returns the average use of CPU by the Engine thread during last minute.
|
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()
Returns the total commit time calculated for this engine.
|
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()
Returns the total reaction time calculated for this engine.
|
String |
getRunningAgent()
Returns the unique id. of the running agent if any, null otherwise.
|
long |
getWorkInProgress()
Returns the tick counter that reflects activity in engine.
|
boolean |
isAgentProfiling()
Returns true if the agent profiling is on.
|
boolean |
isNoTxIfTransient()
Returns the flag to avoid transactions.
|
boolean |
isRunning()
Tests if the engine is alive.
|
String |
report()
Returns a report about the distribution of messages type in queue.
|
void |
resetCommitTime()
Reset the commit time for this engine.
|
void |
resetReactTime()
Reset the reaction time for this engine.
|
void |
resetTimer()
Reset react and commit time for this engine.
|
void |
setAgentProfiling(boolean agentProfiling)
Sets the agent profiling.
|
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
|
String |
toString()
Returns a string representation of this engine.
|
String getName()
Engine
's name.Engine
's name.int getNbMaxAgents()
int getNbAgents()
boolean isRunning()
MessageConsumer
is alive; false
otherwise.long getNbReactions()
int getNbMessages()
String getRunningAgent()
int getNbWaitingMessages()
String report()
int getNbFixedAgents()
void setNbMaxAgents(int NbMaxAgents)
NbMaxAgents
- the maximum number of agentsboolean isAgentProfiling()
isAgentProfiling()
void setAgentProfiling(boolean agentProfiling)
agentProfiling
- if true set the agent profiling.setAgentProfiling(boolean)
long getReactTime()
void resetReactTime()
long getCommitTime()
void resetCommitTime()
void resetTimer()
long getWorkInProgress()
int getAverageCPU()
float getAverageLoad1()
float getAverageLoad5()
float getAverageLoad15()
String toString()
void start() throws Exception
Exception
- an error occurs.void stop()
boolean isNoTxIfTransient()
Copyright © 2022 ScalAgent D.T.. All rights reserved.