org.ourgrid.peer.ui
Class PeerUIManager

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.peer.ui.PeerUIManager
All Implemented Interfaces:
java.io.Serializable, java.rmi.Remote, UIManager

public class PeerUIManager
extends OurgridUnicastRemoteObject
implements UIManager

See Also:
Serialized Form

Nested Class Summary
static class PeerUIManager.Notifiables
           
 
Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Method Summary
 void failureDetectorAdvice(java.lang.String monitorableAddress, GenericState newState)
           
 java.util.Collection<StatusEntry> getGums(AllocationStatus allocationStatus, RequestSpec.RequestSource source)
           
static UIManager getInstance()
           
 ObserverDispatcher getObserverDispatcher()
           
 java.util.Map<ObjectID,java.lang.Double> getPeerBalances()
           
 boolean isPeerRunning()
           
 void noMoreListeners()
           
 void registerNewMonitorable(PeerUIManager.Notifiables notifiableType, ObjectID objectID)
           
 void registerNewMonitorable(PeerUIManager.Notifiables notifiableType, java.lang.String monitorableAddress)
           
 void setLocalGums(java.util.Collection<GumSpec> guMSpecs)
           
 void setLocalGums(java.lang.String descriptionFilePath)
           
 void startGUIService()
           
 void startPeerService()
          Starts Peer Service
 void stopPeerService()
          Stops Peer Service
 void unregisterNewMonitorable(PeerUIManager.Notifiables notifiableType, ObjectID objectID)
           
 void unregisterNewMonitorable(PeerUIManager.Notifiables notifiableType, java.lang.String monitorableAddress)
           
 
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
 

Method Detail

getInstance

public static UIManager getInstance()
                             throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

startPeerService

public void startPeerService()
                      throws java.rmi.RemoteException,
                             java.net.MalformedURLException,
                             java.lang.NumberFormatException,
                             ConfigException
Description copied from interface: UIManager
Starts Peer Service

Specified by:
startPeerService in interface UIManager
Throws:
java.rmi.RemoteException
java.net.MalformedURLException
java.lang.NumberFormatException
ConfigException
See Also:
UIManager.startPeerService()

stopPeerService

public void stopPeerService()
                     throws PeerUIException
Description copied from interface: UIManager
Stops Peer Service

Specified by:
stopPeerService in interface UIManager
Throws:
PeerUIException
See Also:
UIManager.stopPeerService()

startGUIService

public void startGUIService()
                     throws java.rmi.RemoteException
Specified by:
startGUIService in interface UIManager
Throws:
java.rmi.RemoteException
See Also:
UIManager.startGUIService()

setLocalGums

public void setLocalGums(java.util.Collection<GumSpec> guMSpecs)
                  throws PeerUIException
Specified by:
setLocalGums in interface UIManager
Throws:
PeerUIException
See Also:
UIManager.setLocalGums(Collection)

setLocalGums

public void setLocalGums(java.lang.String descriptionFilePath)
                  throws PeerUIException,
                         CompilerException,
                         java.rmi.RemoteException
Specified by:
setLocalGums in interface UIManager
Throws:
java.rmi.RemoteException
PeerUIException
CompilerException
See Also:
UIManager.setLocalGums(java.lang.String)

getObserverDispatcher

public ObserverDispatcher getObserverDispatcher()
Specified by:
getObserverDispatcher in interface UIManager
See Also:
UIManager.getObserverDispatcher()

noMoreListeners

public void noMoreListeners()
Specified by:
noMoreListeners in interface UIManager
See Also:
UIManager.noMoreListeners()

isPeerRunning

public boolean isPeerRunning()
Specified by:
isPeerRunning in interface UIManager
See Also:
UIManager.isPeerRunning()

getGums

public java.util.Collection<StatusEntry> getGums(AllocationStatus allocationStatus,
                                                 RequestSpec.RequestSource source)
                                          throws java.rmi.RemoteException
Specified by:
getGums in interface UIManager
Throws:
java.rmi.RemoteException

getPeerBalances

public java.util.Map<ObjectID,java.lang.Double> getPeerBalances()
                                                         throws java.rmi.RemoteException
Specified by:
getPeerBalances in interface UIManager
Throws:
java.rmi.RemoteException

registerNewMonitorable

public void registerNewMonitorable(PeerUIManager.Notifiables notifiableType,
                                   ObjectID objectID)
                            throws java.rmi.RemoteException
Specified by:
registerNewMonitorable in interface UIManager
Throws:
java.rmi.RemoteException
See Also:
UIManager.registerNewMonitorable(org.ourgrid.peer.ui.PeerUIManager.Notifiables, ObjectID)

unregisterNewMonitorable

public void unregisterNewMonitorable(PeerUIManager.Notifiables notifiableType,
                                     ObjectID objectID)
Specified by:
unregisterNewMonitorable in interface UIManager
See Also:
UIManager.unregisterNewMonitorable(org.ourgrid.peer.ui.PeerUIManager.Notifiables, org.ourgrid.common.id.ObjectID)

registerNewMonitorable

public void registerNewMonitorable(PeerUIManager.Notifiables notifiableType,
                                   java.lang.String monitorableAddress)
                            throws java.rmi.RemoteException
Specified by:
registerNewMonitorable in interface UIManager
Throws:
java.rmi.RemoteException
See Also:
UIManager.registerNewMonitorable(org.ourgrid.peer.ui.PeerUIManager.Notifiables, String)

unregisterNewMonitorable

public void unregisterNewMonitorable(PeerUIManager.Notifiables notifiableType,
                                     java.lang.String monitorableAddress)
                              throws java.rmi.RemoteException
Specified by:
unregisterNewMonitorable in interface UIManager
Throws:
java.rmi.RemoteException
See Also:
UIManager.unregisterNewMonitorable(org.ourgrid.peer.ui.PeerUIManager.Notifiables, String)

failureDetectorAdvice

public void failureDetectorAdvice(java.lang.String monitorableAddress,
                                  GenericState newState)
                           throws java.rmi.RemoteException
Specified by:
failureDetectorAdvice in interface UIManager
Throws:
java.rmi.RemoteException