sod.server
Class Monitor
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--sod.server.Monitor
- All Implemented Interfaces:
- Registry, java.rmi.Remote, java.io.Serializable
- public class Monitor
- extends java.rmi.server.UnicastRemoteObject
- implements Registry
GUI that monitors the scheduling system.
- See Also:
- Serialized Form
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Monitor
public Monitor()
throws java.rmi.RemoteException
getMenuBar
public MyMenuBar getMenuBar()
killProcessors
public void killProcessors()
unregister
public void unregister(java.lang.String hostName)
- Unregister a host from the Scheduler.
unregister
public void unregister(Processor processor)
- Unregister a processor from the Scheduler.
register
public void register(java.lang.String hostName)
throws java.rmi.RemoteException
- Register a host from the Scheduler.
- Specified by:
register
in interface Registry
- Parameters:
hostName
- The hostname where this processor is located.
getPanel
public javax.swing.JPanel getPanel()
getProcesses
public java.util.List getProcesses()
getHosts
public java.lang.String[] getHosts()
getMainPanel
public MainPanel getMainPanel()
getProcPanel
public ProcPanel getProcPanel(int pid)
- Returns the panel of a process.
- Parameters:
pid
- The process ID.- Returns:
- ProcPanel This process's panel.
execute
public void execute(java.io.File file,
java.lang.Class classRef)
- Execute a class.
- Parameters:
file
- Class to be loaded.
migrateProcess
public void migrateProcess(Process process,
java.lang.String hostName)
changePanel
public void changePanel(javax.swing.JPanel newPanel)
- Changes the visible panel.
- Parameters:
newPanel
- The new panel to be shown.
delPanel
public void delPanel(int pid)
main
public static void main(java.lang.String[] args)