cz.cuni.amis.pogamut.base.agent.jmx.proxy
Class AgentIdJMXProxy

Package class diagram package AgentIdJMXProxy
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.agent.jmx.proxy.AgentIdJMXProxy
All Implemented Interfaces:
IAgentId, cz.cuni.amis.utils.token.IToken, Serializable

public class AgentIdJMXProxy
extends Object
implements IAgentId

Makes it possible to control agent running in remote JVM through JMX protocol.

Author:
ik
See Also:
Serialized Form

Constructor Summary
AgentIdJMXProxy(AgentJMXProxy agentProxy)
           
 
Method Summary
 long[] getIds()
           
 cz.cuni.amis.utils.flag.Flag<String> getName()
          Contains a human-readable name of the agent.
 String getToken()
          Must return token that is unique even across different JVMs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgentIdJMXProxy

public AgentIdJMXProxy(AgentJMXProxy agentProxy)
                throws MalformedURLException,
                       IOException,
                       MalformedObjectNameException
Throws:
MalformedURLException
IOException
MalformedObjectNameException
Method Detail

getName

public cz.cuni.amis.utils.flag.Flag<String> getName()
Description copied from interface: IAgentId
Contains a human-readable name of the agent.

Note that the name is quite different string than IAgentId.getToken(). The token contains unique-identifier of the agent across whole JVMs in the world, but the name is just human-readable identifier that can be even changed over time.

Therefore, the name should not be used for any compares or interpretation.

Specified by:
getName in interface IAgentId
Returns:

getToken

public String getToken()
Description copied from interface: IAgentId
Must return token that is unique even across different JVMs.

Specified by:
getToken in interface IAgentId
Specified by:
getToken in interface cz.cuni.amis.utils.token.IToken
Returns:
token

getIds

public long[] getIds()
Specified by:
getIds in interface cz.cuni.amis.utils.token.IToken


Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.