ajanta.agent
Class NotificationRecord

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

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

This class records the status of the agent at each server. If the status of an agent is not ok then it contains the exception that the agent encountered and could not handle it.

See Also:
Serialized Form

Field Summary
 java.lang.Exception ex
          Exception encountered by the agent
 java.lang.String message
          Message indicating any possible reason for exception or any other pertinent information if successful.
 ajanta.naming.URN setAtServer
          URN of the server where exception was encountered
 java.util.Date setAtTime
          Time when this record was created
 ajanta.naming.URN setBy
          URN of the creator of the NotificationRecord
 boolean status
          true means OK else there was some exception
 
Constructor Summary
NotificationRecord(boolean stat, java.lang.Exception ex, ajanta.naming.URN whoSetThis, java.lang.String message)
           
 
Method Summary
 void print()
          Print notification record inforamtions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

status

public boolean status
true means OK else there was some exception


ex

public java.lang.Exception ex
Exception encountered by the agent


setBy

public ajanta.naming.URN setBy
URN of the creator of the NotificationRecord


setAtServer

public ajanta.naming.URN setAtServer
URN of the server where exception was encountered


setAtTime

public java.util.Date setAtTime
Time when this record was created


message

public java.lang.String message
Message indicating any possible reason for exception or any other pertinent information if successful.

Constructor Detail

NotificationRecord

public NotificationRecord(boolean stat,
                          java.lang.Exception ex,
                          ajanta.naming.URN whoSetThis,
                          java.lang.String message)
Parameters:
stat - true for successful false otherwise
ex - Exception object encountered by the agent
whoSetThis - URN of the creator of the NotificationRecord
message - Message indicating any possible reason for exception or any other pertinent information if successful.
Method Detail

print

public void print()
Print notification record inforamtions