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
-
DiagnosticsServerImpl()
- This starts up the server
-
addDiagnosticsListener(DiagnosticsListener)
- This method adds a listener to the diagnostics events
-
addModuleListener(String, String, ModuleListener)
- This method adds a listener for a specific event on a specific listener.
-
eventHappenedFrom(DiagnosticModule)
- This method is called by the DiagnosticsModules when an event occurs.
-
getModuleList()
- This method returns the list of Modules (a vector of strings) registered with the
diagnostics server.
-
getModuleUI(String)
- This method returns the UI for the given module name.
-
isAlive()
- ping routine for the name service (required by Nameable interface)
-
main(String[])
- This main bootstraps the Diagnostics Server.
-
registerModule(DiagnosticModule, String)
- This method register the specified module with the server.
-
removeDiagnosticsListener(DiagnosticsListener)
- This method removes a listener to the diagnostics events
-
removeModuleListener(String, String, ModuleListener)
- This method removes a listener for a specific event on a specific listener.
DiagnosticsServerImpl
public DiagnosticsServerImpl() throws RemoteException
- This starts up the server
- Throws: RemoteException
- if anything fails in the communication
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
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
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
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
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
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
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
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.
isAlive
public boolean isAlive()
- ping routine for the name service (required by Nameable interface)
main
public static void main(String args[])
- This main bootstraps the Diagnostics Server.
All Packages Class Hierarchy This Package Previous Next Index