org.ourgrid.gridmachine.useragent.ui
Class UserAgentUIManager

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

public class UserAgentUIManager
extends OurgridUnicastRemoteObject
implements UIManager

Main class to UserAgent initialization. Any UI call is made at this class so the interface logic is done only at this point.

See Also:
Serialized Form

Field Summary
static java.lang.String START
          Start argument.
static java.lang.String STATUS
          Status argument.
static java.lang.String STOP
          Stop argument.
static java.lang.String[] VALID_ARGS
          Array with valid arguments.
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Method Summary
static UIManager getInstance()
           
 boolean isUserAgentUp()
          Verify if UserAgent is running.
 void startUserAgentService()
          Starts UserAgent Service
 GumStatus statusUserAgentService()
          Gets the UserAgent status.
 void stopUserAgentService()
          Stops UserAgent 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
 

Field Detail

START

public static final java.lang.String START
Start argument.

See Also:
Constant Field Values

STOP

public static final java.lang.String STOP
Stop argument.

See Also:
Constant Field Values

STATUS

public static final java.lang.String STATUS
Status argument.

See Also:
Constant Field Values

VALID_ARGS

public static final java.lang.String[] VALID_ARGS
Array with valid arguments.

Method Detail

getInstance

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

isUserAgentUp

public boolean isUserAgentUp()
Verify if UserAgent is running.


startUserAgentService

public void startUserAgentService()
                           throws java.rmi.RemoteException,
                                  java.net.MalformedURLException,
                                  java.lang.InterruptedException,
                                  UserAgentUIException,
                                  ConfigException
Description copied from interface: UIManager
Starts UserAgent Service

Specified by:
startUserAgentService in interface UIManager
Throws:
ConfigException
java.rmi.RemoteException - Thrown if occurs any RMI problem.
java.net.MalformedURLException - Thrown if the bind address is malformed.
java.lang.InterruptedException - Thrown if the hold thread dies.
UserAgentUIException - Thrown if the Gum is already started.
See Also:
UIManager.startUserAgentService()

stopUserAgentService

public void stopUserAgentService()
                          throws java.rmi.RemoteException,
                                 UserAgentUIException,
                                 java.net.MalformedURLException,
                                 java.rmi.NotBoundException
Description copied from interface: UIManager
Stops UserAgent Service

Specified by:
stopUserAgentService in interface UIManager
Throws:
java.rmi.RemoteException - Thrown if occurs any RMI problem
UserAgentUIException - Thrown if the Gum is already stopped.
java.net.MalformedURLException - Thrown if the Gum address is malformed.
java.rmi.NotBoundException - Thrown if the Gum is not bounded at a registry.
See Also:
UIManager.stopUserAgentService()

statusUserAgentService

public GumStatus statusUserAgentService()
                                 throws java.rmi.RemoteException
Description copied from interface: UIManager
Gets the UserAgent status.

Specified by:
statusUserAgentService in interface UIManager
Returns:
This Gum status.
Throws:
java.rmi.RemoteException - Thrown if occurs any RMI problem
See Also:
UIManager.statusUserAgentService()