com.caucho.server.host
Class HostAdmin

java.lang.Object
  extended by com.caucho.management.server.AbstractManagedObject
      extended by com.caucho.env.deploy.DeployControllerAdmin<HostController>
          extended by com.caucho.server.host.HostAdmin
All Implemented Interfaces:
LifecycleListener, DeployControllerMXBean, HostMXBean, ManagedObjectMXBean, java.io.Serializable, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter

public class HostAdmin
extends DeployControllerAdmin<HostController>
implements HostMXBean

The admin implementation for a host.

See Also:
Serialized Form

Constructor Summary
HostAdmin(HostController controller)
          Creates the admin.
 
Method Summary
 void expandEarDeploy(java.lang.String name)
          Expand a .ear deployment.
 java.lang.String getDocumentDirectory()
          Returns the host's document directory.
protected  Host getHost()
          Returns the host.
 java.lang.String getHostName()
          Returns the host name.
 java.lang.String getName()
          The JMX name property of the mbean.
 java.lang.String getRootDirectory()
          Returns the host's document directory.
 java.lang.String getURL()
          Returns the URL
 java.lang.String getWarDirectory()
          Returns the host's war directory.
 java.lang.String getWarExpandDirectory()
          Returns the primary war expand directory.
 WebAppMXBean[] getWebApps()
          Returns the webapps.
 void startEarDeploy(java.lang.String name)
          Start a .ear deployment.
 java.lang.String toString()
          Returns a string view.
 void updateEarDeploy(java.lang.String name)
          Updates a .ear deployment.
 void updateWebAppDeploy(java.lang.String name)
          Updates a .war deployment.
 
Methods inherited from class com.caucho.env.deploy.DeployControllerAdmin
addNotificationListener, destroy, getController, getErrorMessage, getId, getNotificationInfo, getRedeployCheckInterval, getRedeployMode, getRepositoryMetaData, getStartTime, getStartupMode, getState, lifecycleEvent, register, removeNotificationListener, removeNotificationListener, restart, start, stop, unregister, update
 
Methods inherited from class com.caucho.management.server.AbstractManagedObject
addObjectNameProperties, getObjectName, getType, registerSelf, unregisterSelf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.caucho.management.server.DeployControllerMXBean
destroy, getErrorMessage, getId, getRedeployCheckInterval, getRedeployMode, getRepositoryMetaData, getStartTime, getStartupMode, getState, restart, start, stop, update
 
Methods inherited from interface com.caucho.management.server.ManagedObjectMXBean
getObjectName, getType
 

Constructor Detail

HostAdmin

public HostAdmin(HostController controller)
Creates the admin.

Method Detail

getName

public java.lang.String getName()
Description copied from class: AbstractManagedObject
The JMX name property of the mbean.

Specified by:
getName in interface ManagedObjectMXBean
Overrides:
getName in class DeployControllerAdmin<HostController>

getHostName

public java.lang.String getHostName()
Description copied from interface: HostMXBean
Returns the host name.

Specified by:
getHostName in interface HostMXBean

getURL

public java.lang.String getURL()
Description copied from interface: HostMXBean
Returns the URL

Specified by:
getURL in interface HostMXBean

getRootDirectory

public java.lang.String getRootDirectory()
Returns the host's document directory.

Specified by:
getRootDirectory in interface DeployControllerMXBean
Specified by:
getRootDirectory in interface HostMXBean
Overrides:
getRootDirectory in class DeployControllerAdmin<HostController>

getDocumentDirectory

public java.lang.String getDocumentDirectory()
Returns the host's document directory.


getWarDirectory

public java.lang.String getWarDirectory()
Returns the host's war directory.

Specified by:
getWarDirectory in interface HostMXBean

getWarExpandDirectory

public java.lang.String getWarExpandDirectory()
Description copied from interface: HostMXBean
Returns the primary war expand directory.

Specified by:
getWarExpandDirectory in interface HostMXBean

updateWebAppDeploy

public void updateWebAppDeploy(java.lang.String name)
                        throws DeployException
Updates a .war deployment.

Specified by:
updateWebAppDeploy in interface HostMXBean
Throws:
DeployException

updateEarDeploy

public void updateEarDeploy(java.lang.String name)
                     throws DeployException
Updates a .ear deployment.

Specified by:
updateEarDeploy in interface HostMXBean
Throws:
DeployException

expandEarDeploy

public void expandEarDeploy(java.lang.String name)
Expand a .ear deployment.

Specified by:
expandEarDeploy in interface HostMXBean

startEarDeploy

public void startEarDeploy(java.lang.String name)
Start a .ear deployment.

Specified by:
startEarDeploy in interface HostMXBean

getWebApps

public WebAppMXBean[] getWebApps()
Returns the webapps.

Specified by:
getWebApps in interface HostMXBean

getHost

protected Host getHost()
Returns the host.


toString

public java.lang.String toString()
Returns a string view.

Overrides:
toString in class DeployControllerAdmin<HostController>