All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface kraft.monitor.display.MonitorServer

public interface MonitorServer
extends Remote
Defines the methods that the Monitor can provide to agents wishing to be monitored. These methods are remotely accessible, and recognise any agent and any message object. (Via the use of the Monitorable and Message interfaces)

Author:
Ted Francis
See Also:
Monitorable, Message

Method Index

 o deRegister(String)
Inform the Monitor that the Monitorable object with name 'n' does not wish to be monitored further
 o informOfFailure(String, String, Message)
Inform the monitor of a message that has been sent and has not been delivered successfully.
 o informOfMessage(String, String, Message)
Inform the monitor of a message being passed between two agents with the names given.
 o informOfStatus(String, String)
The agent called 'name' wishes to register its current status with the 'comment' string.
 o register(Monitorable)
Inform the Monitor that the given Monitorable wishes to have its activity monitored.

Methods

 o deRegister
 public abstract void deRegister(String n) throws RemoteException
Inform the Monitor that the Monitorable object with name 'n' does not wish to be monitored further

 o register
 public abstract void register(Monitorable a) throws RemoteException
Inform the Monitor that the given Monitorable wishes to have its activity monitored.

 o informOfMessage
 public abstract void informOfMessage(String from,
                                      String to,
                                      Message m) throws RemoteException
Inform the monitor of a message being passed between two agents with the names given.

 o informOfFailure
 public abstract void informOfFailure(String from,
                                      String to,
                                      Message m) throws RemoteException
Inform the monitor of a message that has been sent and has not been delivered successfully. The Monitor should already have been informed of this Message by a call to informOfMessage.

 o informOfStatus
 public abstract void informOfStatus(String name,
                                     String comment) throws RemoteException
The agent called 'name' wishes to register its current status with the 'comment' string.


All Packages  Class Hierarchy  This Package  Previous  Next  Index