All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class edu.cmu.owl.ds.diagnostics.DiagnosticsServerImpl

edu.cmu.owl.ds.diagnostics.DiagnosticsServerImpl

public class DiagnosticsServerImpl
implements DiagnosticsServer
This interface defines the DiagnosticsServer. This server will most probably only be called by the DianosticsBean.

Version:
1.0
See Also:
DiagnosticsBean

Constructor Index

 o DiagnosticsServerImpl()
This starts up the server

Method Index

 o addDiagnosticsListener(DiagnosticsListener)
This method adds a listener to the diagnostics events
 o addModuleListener(String, String, ModuleListener)
This method adds a listener for a specific event on a specific listener.
 o eventHappenedFrom(DiagnosticModule)
This method is called by the DiagnosticsModules when an event occurs.
 o getModuleList()
This method returns the list of Modules (a vector of strings) registered with the diagnostics server.
 o getModuleUI(String)
This method returns the UI for the given module name.
 o isAlive()
ping routine for the name service (required by Nameable interface)
 o main(String[])
This main bootstraps the Diagnostics Server.
 o registerModule(DiagnosticModule, String)
This method register the specified module with the server.
 o removeDiagnosticsListener(DiagnosticsListener)
This method removes a listener to the diagnostics events
 o removeModuleListener(String, String, ModuleListener)
This method removes a listener for a specific event on a specific listener.

Constructors

 o DiagnosticsServerImpl
 public DiagnosticsServerImpl() throws RemoteException
This starts up the server

Throws: RemoteException
if anything fails in the communication

Methods

 o addDiagnosticsListener
 public void addDiagnosticsListener(DiagnosticsListener listener) throws RemoteException
This method adds a listener to the diagnostics events

Parameters:
listener - the listener implementation
Throws: RemoteException
if anything fails in the communication
See Also:
DiagnosticsEvent, DiagnosticsListener
 o removeDiagnosticsListener
 public void removeDiagnosticsListener(DiagnosticsListener listener) throws RemoteException
This method removes a listener to the diagnostics events

Parameters:
listener - the listener implementation
Throws: RemoteException
if anything fails in the communication
See Also:
DiagnosticsEvent, DiagnosticsListener
 o addModuleListener
 public void addModuleListener(String module,
                               String event,
                               ModuleListener listener) throws RemoteException, NoSuchModuleException, NoSuchEventException, WrongListenerTypeException
This method adds a listener for a specific event on a specific listener. Essentially, this method forwards the call to the appropriate Module.

Parameters:
listener - the listener implementation
Throws: RemoteException
if anything fails in the communication
Throws: NoSuchModuleException
if there is no such module registered
Throws: NoSuchEventException
if there is no such event at that module
See Also:
DiagnosticModule, ModuleListener
 o removeModuleListener
 public void removeModuleListener(String module,
                                  String event,
                                  ModuleListener listener) throws RemoteException, NoSuchModuleException, NoSuchEventException
This method removes a listener for a specific event on a specific listener. Essentially, this method forwards the call to the appropriate Module.

Parameters:
listener - the listener implementation
Throws: RemoteException
if anything fails in the communication
Throws: NoSuchModuleException
if there is no such module registered
Throws: NoSuchEventException
if there is no such event at that module
See Also:
DiagnosticModule, ModuleListener
 o getModuleList
 public Vector getModuleList() throws RemoteException
This method returns the list of Modules (a vector of strings) registered with the diagnostics server.

Returns:
the list of modules registered with the DiagnosticsServer
Throws: RemoteException
if anything fails in the communication
 o getModuleUI
 public DiagnosticModuleUI getModuleUI(String module) throws RemoteException, NoSuchModuleException
This method returns the UI for the given module name.

Parameters:
module - the module name
Returns:
the UI for that module
Throws: RemoteException
if anything fails in the communication
Throws: NoSuchModuleException
if there is no such module registered
 o registerModule
 public void registerModule(DiagnosticModule module,
                            String name) throws NameConflictException
This method register the specified module with the server. Every DiagnosticModule should register himself with this server.

Parameters:
module - the specified module
name - the name with which to associate the module
 o eventHappenedFrom
 public synchronized void eventHappenedFrom(DiagnosticModule module)
This method is called by the DiagnosticsModules when an event occurs. This is the general notification to the server that just informs the world that the source (the module) has something to say.

 o isAlive
 public boolean isAlive()
ping routine for the name service (required by Nameable interface)

 o main
 public static void main(String args[])
This main bootstraps the Diagnostics Server.


All Packages  Class Hierarchy  This Package  Previous  Next  Index