org.ourgrid.mygrid.ui.gui
Class GUIListenerImpl

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by org.ourgrid.common.rmi.OurgridUnicastRemoteObject
                  extended by org.ourgrid.mygrid.ui.gui.GUIListenerImpl
All Implemented Interfaces:
java.io.Serializable, java.rmi.Remote, GridManagerListenerRemote, JobManagerListenerRemote, MyGridDownListener

public class GUIListenerImpl
extends OurgridUnicastRemoteObject
implements JobManagerListenerRemote, GridManagerListenerRemote

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
GUIListenerImpl()
           
 
Method Summary
 void allocate(GumID gumID, ReplicaEntry replica)
           
 void deleteGum(GumID gumID)
           
 void gumIsReady(GumID gumID)
           
 void hereIsGum(GumSpec spec, int jobID, ObjectID peerBrokerAccessID)
           
 void jobCanceled(int jobId)
           
 void jobCreated(JobEntry jobEntry)
           
 void myGridDown()
           
 void peerAlive(PeerSpec peerSpec)
           
 void peerIsDead(PeerSpec peerSpec)
           
 void removeJob(int jobId)
           
 void replicaStateChanged(ReplicaEntry replicaEntry, ExecutionStatus jobState, ExecutionStatus taskState, int numberOfTaskFails)
           
 void setFacade(EBGuiFacade guiFacade)
           
 void setPeers(java.util.Collection<PeerSpec> peerSpecs)
           
 
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
 

Constructor Detail

GUIListenerImpl

public GUIListenerImpl()
                throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException
Method Detail

setFacade

public void setFacade(EBGuiFacade guiFacade)

jobCreated

public void jobCreated(JobEntry jobEntry)
                throws java.rmi.RemoteException
Specified by:
jobCreated in interface JobManagerListenerRemote
Throws:
java.rmi.RemoteException

replicaStateChanged

public void replicaStateChanged(ReplicaEntry replicaEntry,
                                ExecutionStatus jobState,
                                ExecutionStatus taskState,
                                int numberOfTaskFails)
                         throws java.rmi.RemoteException
Specified by:
replicaStateChanged in interface JobManagerListenerRemote
Throws:
java.rmi.RemoteException

removeJob

public void removeJob(int jobId)
               throws java.rmi.RemoteException
Specified by:
removeJob in interface JobManagerListenerRemote
Throws:
java.rmi.RemoteException

hereIsGum

public void hereIsGum(GumSpec spec,
                      int jobID,
                      ObjectID peerBrokerAccessID)
               throws java.rmi.RemoteException
Specified by:
hereIsGum in interface GridManagerListenerRemote
Throws:
java.rmi.RemoteException

setPeers

public void setPeers(java.util.Collection<PeerSpec> peerSpecs)
              throws java.rmi.RemoteException
Specified by:
setPeers in interface GridManagerListenerRemote
Throws:
java.rmi.RemoteException

deleteGum

public void deleteGum(GumID gumID)
               throws java.rmi.RemoteException
Specified by:
deleteGum in interface GridManagerListenerRemote
Throws:
java.rmi.RemoteException

allocate

public void allocate(GumID gumID,
                     ReplicaEntry replica)
              throws java.rmi.RemoteException
Specified by:
allocate in interface GridManagerListenerRemote
Throws:
java.rmi.RemoteException

gumIsReady

public void gumIsReady(GumID gumID)
                throws java.rmi.RemoteException
Specified by:
gumIsReady in interface GridManagerListenerRemote
Throws:
java.rmi.RemoteException

peerAlive

public void peerAlive(PeerSpec peerSpec)
               throws java.rmi.RemoteException
Specified by:
peerAlive in interface GridManagerListenerRemote
Throws:
java.rmi.RemoteException

peerIsDead

public void peerIsDead(PeerSpec peerSpec)
                throws java.rmi.RemoteException
Specified by:
peerIsDead in interface GridManagerListenerRemote
Throws:
java.rmi.RemoteException

myGridDown

public void myGridDown()
Specified by:
myGridDown in interface MyGridDownListener

jobCanceled

public void jobCanceled(int jobId)
                 throws java.rmi.RemoteException
Specified by:
jobCanceled in interface JobManagerListenerRemote
Throws:
java.rmi.RemoteException