This class holds some state that relates to the Agent and in addition some methods may be called on the agent. destroy(), invokeMethod() and refresh() are actually called by a proxy class AgentProxy. AgentProxy is actually an interface that is implemented by Console (as that's where all the JMS stuff is), we use this approach to avoid introducing a circular dependency between Agent and Console.
The Console application maintains a list of all known remote Agents. Each Agent is represented by an instance of the Agent class:
The following diagram illustrates the interactions between the Console, AgentProxy and the client side Agent representation.
@author Fraser Adams
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|