org.objectweb.joram.mom.proxies
Class UserAgent
- AgentMBean, BagSerializer, ProxyAgentItf, Serializable
Class of a user proxy agent.
agentFinalize , agentInitialize , delete , delete , deploy , deploy , getId , getLogTopic , getName , isDeployed , isFixed , needToBeCommited , react , save , sendTo , sendTo , sendTo , setNoSave , toString |
UserAgent
public UserAgent()
Creates a new user proxy.
AdminTopicImpl
, ConnectionManager
UserAgent
public UserAgent(int stamp)
Creates a new user proxy.
AdminTopicImpl
, ConnectionManager
agentInitialize
public void agentInitialize(boolean firstTime)
throws Exception
(Re)initializes the agent when (re)loading.
- agentInitialize in interface Agent
react
public void react(AgentId from,
Notification not)
throws Exception
Overrides the
Agent
class
react
method for
providing the JMS client proxy with its specific behaviour.
A JMS proxy specifically reacts to the following notifications:
- react in interface Agent
readBag
public void readBag(ObjectInputStream in)
throws IOException,
ClassNotFoundException
- readBag in interface BagSerializer
sendNot
public void sendNot(AgentId to,
Notification not)
Sends a notification to the specified agent.
- sendNot in interface ProxyAgentItf
to
- the identifier of the recipient agentnot
- the notification to send
sendToClient
public void sendToClient(int key,
AbstractJmsReply reply)
Sends a reply to the client connected through
the specified connection.
- sendToClient in interface ProxyAgentItf
key
- the key of the connection the client
is connected through.reply
- the reply to send to the client.
writeBag
public void writeBag(ObjectOutputStream out)
throws IOException
- writeBag in interface BagSerializer
Copyright B) 2004 Scalagent - All rights reserved