org.ourgrid.corepeer.ui
Class CorePeerUIManager

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

public class CorePeerUIManager
extends OurgridUnicastRemoteObject
implements UIManager

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Method Summary
static UIManager getInstance()
           
 boolean isCorePeerRunning()
          Checks if the corepeer service is running
 void startCorePeerService()
          Starts CorePeer Service
 java.util.Collection<ObjectID> statusCorePeerService()
          Gets the CorePeer status.
 void stopCorePeerService()
          Stops CorePeer Service
 
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

startCorePeerService

public void startCorePeerService()
                          throws java.rmi.AccessException,
                                 java.rmi.RemoteException
Description copied from interface: UIManager
Starts CorePeer Service

Specified by:
startCorePeerService in interface UIManager
Throws:
java.rmi.RemoteException - if a communication problem occurs
java.rmi.AccessException

stopCorePeerService

public void stopCorePeerService()
                         throws CorePeerUIException,
                                java.rmi.AccessException,
                                java.rmi.RemoteException,
                                java.rmi.NotBoundException
Description copied from interface: UIManager
Stops CorePeer Service

Specified by:
stopCorePeerService in interface UIManager
Throws:
CorePeerUIException
java.rmi.RemoteException - if a communication problem occurs
java.rmi.AccessException
java.rmi.NotBoundException

isCorePeerRunning

public boolean isCorePeerRunning()
                          throws java.rmi.RemoteException
Description copied from interface: UIManager
Checks if the corepeer service is running

Specified by:
isCorePeerRunning in interface UIManager
Returns:
true if the corepeer is online
Throws:
java.rmi.RemoteException - if a communication problem occurs

statusCorePeerService

public java.util.Collection<ObjectID> statusCorePeerService()
                                                     throws java.rmi.AccessException,
                                                            java.rmi.RemoteException,
                                                            java.rmi.NotBoundException
Description copied from interface: UIManager
Gets the CorePeer status.

Specified by:
statusCorePeerService in interface UIManager
Returns:
This CorePeer status.
Throws:
java.rmi.RemoteException - if a communication problem occurs
java.rmi.AccessException
java.rmi.NotBoundException