ajanta.logger
Class MigrationSuccessEvent

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

public class MigrationSuccessEvent
extends AgentServerEvent

Migration Success Event is an Event generated when an agent migrates successfully from 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
MigrationSuccessEvent(long time, ajanta.naming.URN agServerURN, ajanta.naming.URN agentURN, ajanta.naming.URN destURN)
          Constructor for the MigrationSuccessEvent
 
Method Summary
 ajanta.naming.URN getAgentURN()
          Returns the URN of the agent which migrated successfully
 ajanta.naming.URN getDestinationURN()
          Returns the URN of 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

MigrationSuccessEvent

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

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 URN of 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 which migrated successfully