All Packages Class Hierarchy This Package Previous Next Index
Class ajanta.server.AgentThread
java.lang.Object
|
+----java.lang.Thread
|
+----ajanta.server.AgentThread
- public class AgentThread
- extends Thread
AgentThread is the initial thread created to execute an incoming agent
When an agent arrives, a new thread group is created for it, with an
identifier that is unique on that server. A single thread is created
in this group, and is assigned the task of executing the method specified
by the agent as part of its migration request. It loads the StartUp class
explicitly using our classloader and create an instance of StartUP class.
Invoke the "start" method of this instance which will continue
the process of deserializing the agent and invoking its action.
-
AgentThread(ThreadGroup, AgentServer, DDEntry)
-
-
getAgentEnv()
- return reference to this thread agent environment ...agent server host field
-
run()
- The body of the agent thread
AgentThread
public AgentThread(ThreadGroup tg,
AgentServer as,
DDEntry dde)
- Parameters:
- tg - ThreadGroup of the agent
- as - reference to the host agent server
- dde - DDEntry corresponding to this agent
getAgentEnv
public AgentEnv getAgentEnv()
- return reference to this thread agent environment ...agent server host field
run
public void run()
- The body of the agent thread
- Overrides:
- run in class Thread
All Packages Class Hierarchy This Package Previous Next Index