|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.dyade.aaa.agent.Agent
org.objectweb.joram.mom.proxies.UserAgent
Class of a user proxy agent.
| Field Summary |
| Fields inherited from class fr.dyade.aaa.agent.Agent |
fixed, logmon, name |
| Constructor Summary | |
UserAgent()
Creates a new user proxy. |
|
UserAgent(int stamp)
Creates a new user proxy. |
|
| Method Summary | |
void |
agentInitialize(boolean firstTime)
(Re)initializes the agent when (re)loading. |
AgentId |
getAgentId()
Returns the agent identifier of this agent. |
void |
react(AgentId from,
Notification not)
Overrides the Agent class react method for
providing the JMS client proxy with its specific behaviour. |
void |
readBag(java.io.ObjectInputStream in)
The readBag method is responsible for reading from the stream and restoring the agent's transient state. |
void |
sendNot(AgentId to,
Notification not)
Sends a notification to the specified agent. |
void |
sendToClient(int key,
AbstractJmsReply reply)
Sends a reply to the client connected through the specified connection. |
void |
writeBag(java.io.ObjectOutputStream out)
The writeBag method is responsible for writing the extra data of this particular agent so that the corresponding readBag method can restore it. |
| Methods inherited from class fr.dyade.aaa.agent.Agent |
agentFinalize, delete, delete, deploy, deploy, getId, getLogTopic, getName, isDeployed, isFixed, needToBeCommited, save, sendTo, sendTo, sendTo, setNoSave, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public UserAgent()
AdminTopicImpl,
ConnectionManagerpublic UserAgent(int stamp)
AdminTopicImpl,
ConnectionManager| Method Detail |
public void agentInitialize(boolean firstTime)
throws java.lang.Exception
agentInitialize in class AgentfirstTime - true when first called by the factory
java.lang.Exception - unspecialized exception
public void react(AgentId from,
Notification not)
throws java.lang.Exception
Agent class react method for
providing the JMS client proxy with its specific behaviour.
A JMS proxy specifically reacts to the following notifications:
OpenConnectionNot
react in class Agentfrom - agent sending notificationnot - notification to react to
java.lang.Exception - unspecialized exceptionpublic AgentId getAgentId()
getAgentId in interface ProxyAgentItf
public void sendNot(AgentId to,
Notification not)
sendNot in interface ProxyAgentItfto - the identifier of the recipient agentnot - the notification to send
public void sendToClient(int key,
AbstractJmsReply reply)
sendToClient in interface ProxyAgentItfkey - the key of the connection the client
is connected through.reply - the reply to send to the client.
public void readBag(java.io.ObjectInputStream in)
throws java.io.IOException,
java.lang.ClassNotFoundException
BagSerializer
readBag in interface BagSerializerjava.io.IOException
java.lang.ClassNotFoundException
public void writeBag(java.io.ObjectOutputStream out)
throws java.io.IOException
BagSerializer
writeBag in interface BagSerializerjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||