ajanta.agent
Class AgentStatus

java.lang.Object
  |
  +--ajanta.agent.AgentStatus
All Implemented Interfaces:
java.io.Serializable

public class AgentStatus
extends java.lang.Object
implements java.io.Serializable

Every agent contains an AgentStatus object representing the current as well as past status of the agent

See Also:
Serialized Form

Field Summary
 boolean recallCompleted
          boolean flag indicatingn whether the recall was completed or not.
 boolean recallPending
          boolean flag indicatingn whether there is a recall pending for the agent.
 ajanta.naming.URN returningTo
          URN of the object with whom agent has to colocate or server's URN where agent has to return.
 java.util.Vector returnNotification
          a vector of NotificationRecord objects deposited at various servers visited in the past.
 
Constructor Summary
AgentStatus()
           
 
Method Summary
 void addStatusRecord(java.lang.Object stat)
          Add a NotificationRecord object to returnNotification vector
 void print()
          Print status of the agent at all the servers visited by the agent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

returnNotification

public java.util.Vector returnNotification
a vector of NotificationRecord objects deposited at various servers visited in the past.


returningTo

public ajanta.naming.URN returningTo
URN of the object with whom agent has to colocate or server's URN where agent has to return.


recallPending

public boolean recallPending
boolean flag indicatingn whether there is a recall pending for the agent. recallPending flag is set to true by recall command.


recallCompleted

public boolean recallCompleted
boolean flag indicatingn whether the recall was completed or not. recallCompleted is set to true when a recall gets completed.

Constructor Detail

AgentStatus

public AgentStatus()
Method Detail

addStatusRecord

public void addStatusRecord(java.lang.Object stat)
Add a NotificationRecord object to returnNotification vector

Parameters:
stat - status of the agent at any server( notification object)

print

public void print()
Print status of the agent at all the servers visited by the agent