ajanta.logger
Class MigrationFailureEvent

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

public class MigrationFailureEvent
extends AgentServerEvent

Migration Failure Event is an Event generated when an agent migration fails 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
MigrationFailureEvent(long time, ajanta.naming.URN agServerURN, ajanta.naming.URN agentURN, ajanta.naming.URN destURN, java.lang.String exMessage)
          Constructor for the MigrationFailureEvent
 
Method Summary
 ajanta.naming.URN getAgentURN()
          Returns the URN of the agent which caused failure
 ajanta.naming.URN getDestinationURN()
          Returns the URN of the destination agentServer
 java.lang.String getExceptionMessage()
          Returns the message from the exception which caused failure
 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

MigrationFailureEvent

public MigrationFailureEvent(long time,
                             ajanta.naming.URN agServerURN,
                             ajanta.naming.URN agentURN,
                             ajanta.naming.URN destURN,
                             java.lang.String exMessage)
Constructor for the MigrationFailureEvent

Parameters:
time - of event generation
agServerURN - URN of the agentServer
agentURN - URN of the agent
destURN - URN of the destination agentserver
exMessage - Message from the exception which caused failure
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 agentServer


getMessage

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


getExceptionMessage

public java.lang.String getExceptionMessage()
Returns the message from the exception which caused failure


getAgentURN

public ajanta.naming.URN getAgentURN()
Returns the URN of the agent which caused failure