charly.client.monitor
Class ChMonitor

java.lang.Object
  extended bycharly.client.monitor.ChMonitor

public class ChMonitor
extends java.lang.Object

This class serves as a monitor of the tasks waiting and running on the server. By calling the abortTask-methods blocking tasks can be aborted. A monitor communicates with an ChRsrcManager object.

See Also:
ChGUIMonitor, ChSimpleMonitor

Field Summary
protected  ChConnect conn
           
protected  ChRsrcManager rsrcMgr
           
 
Constructor Summary
ChMonitor(ChConnect conn)
           
 
Method Summary
 void abortTask(ChTaskInfo task)
          aborts given task on the server.
 void abortTask(java.lang.String taskID)
          aborts given task on the server.
 java.util.Set getTasks()
          returns tasks waiting to be started or already started on the server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

conn

protected ChConnect conn

rsrcMgr

protected ChRsrcManager rsrcMgr
Constructor Detail

ChMonitor

public ChMonitor(ChConnect conn)
          throws java.rmi.RemoteException,
                 java.net.MalformedURLException,
                 java.rmi.NotBoundException
Method Detail

getTasks

public java.util.Set getTasks()
                       throws java.rmi.RemoteException
returns tasks waiting to be started or already started on the server.

Returns:
Set of ChTaskInfo
Throws:
java.rmi.RemoteException

abortTask

public void abortTask(java.lang.String taskID)
               throws java.rmi.RemoteException
aborts given task on the server.

Throws:
java.rmi.RemoteException

abortTask

public void abortTask(ChTaskInfo task)
               throws java.rmi.RemoteException
aborts given task on the server.

Throws:
java.rmi.RemoteException