public class ResinAdmin extends AbstractManagedObject implements ResinMXBean
Constructor and Description |
---|
ResinAdmin(Resin resin)
Creates the admin object and registers with JMX.
|
Modifier and Type | Method and Description |
---|---|
ClusterMXBean[] |
getClusters()
Returns the Clusters known to Resin.
|
java.lang.String |
getConfigDirectory()
Returns the directory that contains resin.xml
|
java.lang.String |
getConfigFile()
Returns the config file, the value of "-conf foo.conf"
|
ConfigMXBean[] |
getConfigs() |
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() |
addObjectNameProperties, getObjectName, getType, registerSelf, unregisterSelf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getObjectName, getType
public ResinAdmin(Resin resin)
public java.lang.String getName()
AbstractManagedObject
getName
in interface ManagedObjectMXBean
getName
in class AbstractManagedObject
public ClusterMXBean[] getClusters()
getClusters
in interface ResinMXBean
public ThreadPoolMXBean getThreadPoolAdmin()
public ConfigMXBean[] getConfigs()
getConfigs
in interface ResinMXBean
public java.lang.String getConfigFile()
ResinMXBean
getConfigFile
in interface ResinMXBean
public java.lang.String getConfigDirectory()
ResinMXBean
getConfigDirectory
in interface ResinMXBean
public java.lang.String getResinHome()
ResinMXBean
getResinHome
in interface ResinMXBean
public java.lang.String getRootDirectory()
ResinMXBean
getRootDirectory
in interface ResinMXBean
public java.lang.String getLogDirectory()
ResinMXBean
getLogDirectory
in interface ResinMXBean
public java.lang.String getDataDirectory()
ResinMXBean
getDataDirectory
in interface ResinMXBean
public ServerMXBean getServer()
ResinMXBean
getServer
in interface ResinMXBean
public java.lang.String getVersion()
ResinMXBean
getVersion
in interface ResinMXBean
public boolean isProfessional()
ResinMXBean
isProfessional
in interface ResinMXBean
public java.lang.String getLocalHost()
ResinMXBean
getLocalHost
in interface ResinMXBean
public java.lang.String getUserName()
ResinMXBean
getUserName
in interface ResinMXBean
public boolean isRestart()
ResinMXBean
isRestart
in interface ResinMXBean
public java.lang.String getWatchdogStartMessage()
ResinMXBean
getWatchdogStartMessage
in interface ResinMXBean
public java.lang.String toString()
toString
in class AbstractManagedObject