com.caucho.server.webapp
Class WebAppAdmin

java.lang.Object
  extended by com.caucho.management.server.AbstractManagedObject
      extended by com.caucho.env.deploy.DeployControllerAdmin<WebAppController>
          extended by com.caucho.server.webapp.WebAppAdmin
All Implemented Interfaces:
LifecycleListener, DeployControllerMXBean, ManagedObjectMXBean, WebAppMXBean, java.io.Serializable, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter

public class WebAppAdmin
extends DeployControllerAdmin<WebAppController>
implements WebAppMXBean

The admin implementation for a web-app.

See Also:
Serialized Form

Constructor Summary
WebAppAdmin(WebAppController controller)
           
 
Method Summary
 long getClientDisconnectCountTotal()
          Returns the number of connections that have ended with a ClientDisconnectException for this web-app in it's lifetime.
 java.lang.String getContextPath()
          Returns the context path
 HostMXBean getHost()
          Returns the owning host
 java.util.Map<java.lang.String,java.lang.String> getManifestAttributes()
          Returns the manifest attributes
 int getRequestCount()
          Returns the current number of requests being serviced by the web-app.
 long getRequestCountTotal()
          Returns the total number of requests serviced by the web-app since it started.
 long getRequestReadBytesTotal()
          Returns the total number of bytes that requests serviced by this web-app have read.
 long getRequestTimeTotal()
          Returns the total duration in milliseconds that connections serviced by this web-app have taken.
 long getRequestWriteBytesTotal()
          Returns the total number of bytes that connections serviced by this web-app have written.
 SessionManagerMXBean getSessionManager()
          Returns the session manager
 long getStatus500CountTotal()
          Returns the number of 500 status requests
 java.util.Date getStatus500LastTime()
          Returns the time of the last 500 status requests
 java.lang.String getVersion()
          Returns the web-app version number
protected  WebApp getWebApp()
          Returns the active webApp.
 
Methods inherited from class com.caucho.env.deploy.DeployControllerAdmin
addNotificationListener, destroy, getController, getErrorMessage, getId, getName, getNotificationInfo, getRedeployCheckInterval, getRedeployMode, getRepositoryMetaData, getRootDirectory, getStartTime, getStartupMode, getState, lifecycleEvent, register, removeNotificationListener, removeNotificationListener, restart, start, stop, toString, 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, getRootDirectory, getStartTime, getStartupMode, getState, restart, start, stop, update
 
Methods inherited from interface com.caucho.management.server.ManagedObjectMXBean
getName, getObjectName, getType
 

Constructor Detail

WebAppAdmin

public WebAppAdmin(WebAppController controller)
Method Detail

getHost

public HostMXBean getHost()
Returns the owning host

Specified by:
getHost in interface WebAppMXBean

getSessionManager

public SessionManagerMXBean getSessionManager()
Description copied from interface: WebAppMXBean
Returns the session manager

Specified by:
getSessionManager in interface WebAppMXBean

getContextPath

public java.lang.String getContextPath()
Returns the context path

Specified by:
getContextPath in interface WebAppMXBean

getVersion

public java.lang.String getVersion()
Returns the web-app version number

Specified by:
getVersion in interface WebAppMXBean

getManifestAttributes

public java.util.Map<java.lang.String,java.lang.String> getManifestAttributes()
Returns the manifest attributes

Specified by:
getManifestAttributes in interface WebAppMXBean

getStatus500CountTotal

public long getStatus500CountTotal()
Description copied from interface: WebAppMXBean
Returns the number of 500 status requests

Specified by:
getStatus500CountTotal in interface WebAppMXBean

getStatus500LastTime

public java.util.Date getStatus500LastTime()
Description copied from interface: WebAppMXBean
Returns the time of the last 500 status requests

Specified by:
getStatus500LastTime in interface WebAppMXBean

getRequestCount

public int getRequestCount()
Description copied from interface: WebAppMXBean
Returns the current number of requests being serviced by the web-app.

Specified by:
getRequestCount in interface WebAppMXBean

getRequestCountTotal

public long getRequestCountTotal()
Description copied from interface: WebAppMXBean
Returns the total number of requests serviced by the web-app since it started.

Specified by:
getRequestCountTotal in interface WebAppMXBean

getRequestTimeTotal

public long getRequestTimeTotal()
Description copied from interface: WebAppMXBean
Returns the total duration in milliseconds that connections serviced by this web-app have taken.

Specified by:
getRequestTimeTotal in interface WebAppMXBean

getRequestReadBytesTotal

public long getRequestReadBytesTotal()
Description copied from interface: WebAppMXBean
Returns the total number of bytes that requests serviced by this web-app have read.

Specified by:
getRequestReadBytesTotal in interface WebAppMXBean

getRequestWriteBytesTotal

public long getRequestWriteBytesTotal()
Description copied from interface: WebAppMXBean
Returns the total number of bytes that connections serviced by this web-app have written.

Specified by:
getRequestWriteBytesTotal in interface WebAppMXBean

getClientDisconnectCountTotal

public long getClientDisconnectCountTotal()
Description copied from interface: WebAppMXBean
Returns the number of connections that have ended with a ClientDisconnectException for this web-app in it's lifetime.

Specified by:
getClientDisconnectCountTotal in interface WebAppMXBean

getWebApp

protected WebApp getWebApp()
Returns the active webApp.