ajanta.logger
Class MigrationRequestEvent

java.lang.Object
  |
  +--ajanta.logger.Event
        |
        +--ajanta.logger.AgentServerEvent
              |
              +--ajanta.logger.MigrationRequestEvent
All Implemented Interfaces:
java.io.Serializable

public class MigrationRequestEvent
extends AgentServerEvent

Migration Request Event is an Event generated when an agent migration request is received at a Agentserver. It is extended from the AgentServerEvent class

See Also:
Serialized Form

Field Summary
 
Fields inherited from class ajanta.logger.AgentServerEvent
agentServerURN
 
Constructor Summary
MigrationRequestEvent(long time, ajanta.naming.URN agServerURN, ajanta.naming.URN agentURN, ajanta.naming.URN destURN)
          Constructor for the MigrationRequestEvent class
 
Method Summary
 ajanta.naming.URN getAgentURN()
          Returns the URN of the agent requesting migration
 ajanta.naming.URN getDestinationURN()
          Returns the destination agent server
 java.lang.String getMessage()
          Returns the type of event
 java.lang.String toString()
          Returns the string representation of the event
 
Methods inherited from class ajanta.logger.AgentServerEvent
getFormattedTime
 
Methods inherited from class ajanta.logger.Event
getEventLocation, getName, getTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MigrationRequestEvent

public MigrationRequestEvent(long time,
                             ajanta.naming.URN agServerURN,
                             ajanta.naming.URN agentURN,
                             ajanta.naming.URN destURN)
Constructor for the MigrationRequestEvent class

Parameters:
time - of event generation
agServerURN - URN of the agentServer
agentURN - URN of the agent
destURN - URN of the destination agentserver
Method Detail

toString

public java.lang.String toString()
Returns the string representation of the event

Overrides:
toString in class AgentServerEvent

getDestinationURN

public ajanta.naming.URN getDestinationURN()
Returns the destination agent server


getMessage

public java.lang.String getMessage()
Returns the type of event


getAgentURN

public ajanta.naming.URN getAgentURN()
Returns the URN of the agent requesting migration