com.caucho.server.resin
Class ResinAdmin

java.lang.Object
  extended by com.caucho.management.server.AbstractManagedObject
      extended by com.caucho.server.resin.ResinAdmin
All Implemented Interfaces:
ManagedObjectMXBean, ResinMXBean

public class ResinAdmin
extends AbstractManagedObject
implements ResinMXBean


Constructor Summary
ResinAdmin(Resin resin)
          Creates the admin object and registers with JMX.
 
Method Summary
 ClusterMXBean[] getClusters()
          Returns the Clusters known to Resin.
 java.lang.String getConfigFile()
          Returns the config file, the value of "-conf foo.conf"
 java.lang.String getDataDirectory()
          Returns the resin-data directory
 java.lang.String getLocalHost()
          Returns the ip address or host name of the machine that is running this ResinServer.
 java.lang.String getLogDirectory()
          Returns the log directory, the value of "-log-directory"
 java.lang.String getName()
          The JMX name property of the mbean.
 java.lang.String getResinHome()
          The Resin home directory used when starting this instance of Resin.
 java.lang.String getRootDirectory()
          The root directory used when starting this instance of Resin.
 ServerMXBean getServer()
          Returns the server MBean's ObjectName for this instance.
 ThreadPoolMXBean getThreadPoolAdmin()
           
 java.lang.String getUserName()
          Returns the user name of the process that is running this ResinServer.
 java.lang.String getVersion()
          Returns the version.
 java.lang.String getWatchdogStartMessage()
          Returns the restart message.
 boolean isProfessional()
          Returns true for the professional version.
 boolean isRestart()
          Returns true if this was a restarted instance.
 java.lang.String toString()
           
 
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.ManagedObjectMXBean
getObjectName, getType
 

Constructor Detail

ResinAdmin

public ResinAdmin(Resin resin)
Creates the admin object and registers with JMX.

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
Specified by:
getName in class AbstractManagedObject

getClusters

public ClusterMXBean[] getClusters()
Returns the Clusters known to Resin.

Specified by:
getClusters in interface ResinMXBean

getThreadPoolAdmin

public ThreadPoolMXBean getThreadPoolAdmin()

getConfigFile

public java.lang.String getConfigFile()
Description copied from interface: ResinMXBean
Returns the config file, the value of "-conf foo.conf"

Specified by:
getConfigFile in interface ResinMXBean

getResinHome

public java.lang.String getResinHome()
Description copied from interface: ResinMXBean
The Resin home directory used when starting this instance of Resin. This is the location of the Resin program files.

Specified by:
getResinHome in interface ResinMXBean

getRootDirectory

public java.lang.String getRootDirectory()
Description copied from interface: ResinMXBean
The root directory used when starting this instance of Resin. This is the root directory of the web server files.

Specified by:
getRootDirectory in interface ResinMXBean

getLogDirectory

public java.lang.String getLogDirectory()
Description copied from interface: ResinMXBean
Returns the log directory, the value of "-log-directory"

Specified by:
getLogDirectory in interface ResinMXBean

getDataDirectory

public java.lang.String getDataDirectory()
Description copied from interface: ResinMXBean
Returns the resin-data directory

Specified by:
getDataDirectory in interface ResinMXBean

getServer

public ServerMXBean getServer()
Description copied from interface: ResinMXBean
Returns the server MBean's ObjectName for this instance.

Specified by:
getServer in interface ResinMXBean

getVersion

public java.lang.String getVersion()
Description copied from interface: ResinMXBean
Returns the version.

Specified by:
getVersion in interface ResinMXBean

isProfessional

public boolean isProfessional()
Description copied from interface: ResinMXBean
Returns true for the professional version.

Specified by:
isProfessional in interface ResinMXBean

getLocalHost

public java.lang.String getLocalHost()
Description copied from interface: ResinMXBean
Returns the ip address or host name of the machine that is running this ResinServer.

Specified by:
getLocalHost in interface ResinMXBean

getUserName

public java.lang.String getUserName()
Description copied from interface: ResinMXBean
Returns the user name of the process that is running this ResinServer.

Specified by:
getUserName in interface ResinMXBean

isRestart

public boolean isRestart()
Description copied from interface: ResinMXBean
Returns true if this was a restarted instance.

Specified by:
isRestart in interface ResinMXBean

getWatchdogStartMessage

public java.lang.String getWatchdogStartMessage()
Description copied from interface: ResinMXBean
Returns the restart message.

Specified by:
getWatchdogStartMessage in interface ResinMXBean

toString

public java.lang.String toString()
Overrides:
toString in class AbstractManagedObject