Package fr.dyade.aaa.agent
Interface AgentMBean
-
- All Known Subinterfaces:
AcquisitionQueueMBean,AcquisitionTopicMBean,AdminTopicMBean,ClusterQueueMBean,DestinationMBean,DistributionQueueMBean,DistributionTopicMBean,QueueMBean,TopicMBean,UserAgentMBean
- All Known Implementing Classes:
AcquisitionQueue,AcquisitionTopic,AdminTopic,Agent,AgentFactory,AliasInQueue,AliasQueue,AMQPAgent,ClusterQueue,Container,Destination,DistributionQueue,DistributionTopic,ElasticTopic,FtpQueue,Queue,SchedulerQueue,SynchronousAgent,Topic,UserAgent
public interface AgentMBean
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddelete()Permits this agent to destroy it.StringgetAgentId()Returns the global unique identifier of the agent.longgetCommitTime()Returns the total commit time calculated for this agent.StringgetName()Returns thisAgent's name.intgetReactNb()longgetReactTime()Returns the total reaction time calculated for this agent.booleanisAgentProfiling()Returns truebooleanisFixed()Tests if the agent is pinned in memory.voidresetCommitTime()Reset the commit time for this agent.voidresetReactTime()Reset the reaction time for this agent.voidresetTimer()Reset react and commit time for this agent.voidsetAgentProfiling(boolean agentProfiling)Sets If true, the cumulative time of reaction and commit is kept for each agent.StringtoString()Returns a string representation of this agent, including the agent's class, name, global identication, and fixed property.
-
-
-
Method Detail
-
getName
String getName()
Returns thisAgent's name.- Returns:
- this
Agent's name.
-
getAgentId
String getAgentId()
Returns the global unique identifier of the agent.- Returns:
- the global unique identifier of the agent.
-
isFixed
boolean isFixed()
Tests if the agent is pinned in memory.- Returns:
- true if this agent is pinned in memory; false otherwise.
-
delete
void delete()
Permits this agent to destroy it.
-
toString
String toString()
Returns a string representation of this agent, including the agent's class, name, global identication, and fixed property.
-
getReactNb
int getReactNb()
- Returns:
- the reactNb
-
isAgentProfiling
boolean isAgentProfiling()
Returns true- Returns:
- true if the agent profiling is on.
- See Also:
EngineMBean.isAgentProfiling()
-
setAgentProfiling
void setAgentProfiling(boolean agentProfiling)
Sets If true, the cumulative time of reaction and commit is kept for each agent.- Parameters:
agentProfiling- if true sets the agent profiling.- See Also:
EngineMBean.setAgentProfiling(boolean)
-
getReactTime
long getReactTime()
Returns the total reaction time calculated for this agent.- Returns:
- the reactTime
-
resetReactTime
void resetReactTime()
Reset the reaction time for this agent.
-
getCommitTime
long getCommitTime()
Returns the total commit time calculated for this agent.- Returns:
- the commitTime
-
resetCommitTime
void resetCommitTime()
Reset the commit time for this agent.
-
resetTimer
void resetTimer()
Reset react and commit time for this agent.
-
-