org.androidpn.server.container
Class AdminConsole

java.lang.Object
  extended by org.androidpn.server.container.AdminConsole

public class AdminConsole
extends java.lang.Object

This class starts a instance on the configured port and loads the admin console web application.

Author:
Sehwan Noh (devnoh@gmail.com)

Constructor Summary
AdminConsole(java.lang.String homeDir)
          Constuctor that create a Jetty module.
 
Method Summary
 java.lang.String getAdminHost()
          Returns the host name of the admin console.
 int getAdminPort()
          Returns the port of the admin console.
 org.mortbay.jetty.handler.ContextHandlerCollection getContexts()
          Returns the collection of Jetty contexts used in the admin console.
 boolean isHttpStarted()
          Returns the start stutus of the admin console.
 void restart()
          Restarts the Jetty server instance.
 void shutdown()
          Shuts down the Jetty server instance.
 void startup()
          Starts the Jetty server instance.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdminConsole

public AdminConsole(java.lang.String homeDir)
Constuctor that create a Jetty module.

Parameters:
homeDir - the application home directory
Method Detail

startup

public void startup()
Starts the Jetty server instance.


shutdown

public void shutdown()
Shuts down the Jetty server instance.


restart

public void restart()
Restarts the Jetty server instance.


getContexts

public org.mortbay.jetty.handler.ContextHandlerCollection getContexts()
Returns the collection of Jetty contexts used in the admin console.

Returns:
the Jetty context handlers

getAdminHost

public java.lang.String getAdminHost()
Returns the host name of the admin console.

Returns:
the host name of the admin console.

getAdminPort

public int getAdminPort()
Returns the port of the admin console.

Returns:
the port of the admin console.

isHttpStarted

public boolean isHttpStarted()
Returns the start stutus of the admin console.

Returns:
true if the admin console has been started, false otherwise.