charly.demo
Class ChGUIMonitor

java.lang.Object
  extended bycharly.demo.ChGUIMonitor

public class ChGUIMonitor
extends java.lang.Object

Monitors the tasks running or waiting on the server

See Also:
main(String[])

Nested Class Summary
(package private) static class ChGUIMonitor.ChNoTaskSelectedException
           
(package private)  class ChGUIMonitor.ChTaskRsrcsListModel
          one model for all sets of resources.
(package private)  class ChGUIMonitor.ChTasksListModel
           
 
Field Summary
(package private)  ChConnect conn
           
(package private)  javax.swing.JFrame frame
           
(package private)  ChMonitor monitor
           
(package private)  ChGUIMonitor.ChTaskRsrcsListModel rsrcsListModel
           
(package private)  javax.swing.JList rsrcsListView
           
(package private)  javax.swing.JLabel taskIDView
           
(package private)  ChGUIMonitor.ChTasksListModel tasksListModel
           
(package private)  javax.swing.JList tasksListView
           
static java.lang.String title
           
 
Constructor Summary
ChGUIMonitor(java.lang.String serverUrl)
           
 
Method Summary
(package private)  int getSelectedTaskIndex()
           
(package private)  ChTaskInfo getSelectedTaskInfo()
           
 void init()
           
static void main(java.lang.String[] args)
          Usage: java charly.demo.ChGUIMonitor [IPaddress of the server] Example: java charly.demo.ChGUIMonitor 143.143.158.9
static void message(java.lang.String msg)
           
 void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

frame

javax.swing.JFrame frame

tasksListView

javax.swing.JList tasksListView

tasksListModel

ChGUIMonitor.ChTasksListModel tasksListModel

taskIDView

javax.swing.JLabel taskIDView

rsrcsListView

javax.swing.JList rsrcsListView

rsrcsListModel

ChGUIMonitor.ChTaskRsrcsListModel rsrcsListModel

conn

ChConnect conn

monitor

ChMonitor monitor

title

public static final java.lang.String title
See Also:
Constant Field Values
Constructor Detail

ChGUIMonitor

public ChGUIMonitor(java.lang.String serverUrl)
             throws java.rmi.RemoteException,
                    java.net.MalformedURLException,
                    java.rmi.NotBoundException
Method Detail

main

public static void main(java.lang.String[] args)
Usage: java charly.demo.ChGUIMonitor [IPaddress of the server] Example: java charly.demo.ChGUIMonitor 143.143.158.9


init

public void init()

start

public void start()

message

public static void message(java.lang.String msg)

getSelectedTaskInfo

ChTaskInfo getSelectedTaskInfo()
                         throws ChGUIMonitor.ChNoTaskSelectedException
Throws:
ChGUIMonitor.ChNoTaskSelectedException

getSelectedTaskIndex

int getSelectedTaskIndex()
                   throws ChGUIMonitor.ChNoTaskSelectedException
Throws:
ChGUIMonitor.ChNoTaskSelectedException