ajanta.logger
Class AgentServerEvent
java.lang.Object
|
+--ajanta.logger.Event
|
+--ajanta.logger.AgentServerEvent
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- AgentExceptionEvent, AgentExecutionEvent, AgentTerminationEvent, ATPRequestEvent, ATPRequestFailEvent, MigrationFailureEvent, MigrationRequestEvent, MigrationSuccessEvent
- public class AgentServerEvent
- extends Event
Agent Server Event is a base class for all AgentServer events.
It is extended from the generic Event class
- See Also:
- Serialized Form
Field Summary |
protected ajanta.naming.URN |
agentServerURN
The URN of the agentserver where the event has taken place |
Constructor Summary |
AgentServerEvent(long time,
ajanta.naming.URN agServerURN)
Constructor for the AgentServerEvent |
Method Summary |
static java.lang.String |
getFormattedTime(long millis)
A static member returns a formatted time string given the time as a long number |
java.lang.String |
toString()
returns the string representation of the event class |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
agentServerURN
protected ajanta.naming.URN agentServerURN
- The URN of the agentserver where the event has taken place
AgentServerEvent
public AgentServerEvent(long time,
ajanta.naming.URN agServerURN)
- Constructor for the AgentServerEvent
- Parameters:
time
- of event generationagServerURN
- URN of the agentServer
toString
public java.lang.String toString()
- returns the string representation of the event class
- Overrides:
toString
in class Event
getFormattedTime
public static java.lang.String getFormattedTime(long millis)
- A static member returns a formatted time string given the time as a long number