org.rhq.enterprise.server.core
Interface CoreServerMBean

All Superinterfaces:
org.jboss.system.Service, org.jboss.system.ServiceMBean
All Known Implementing Classes:
CoreServer

public interface CoreServerMBean
extends org.jboss.system.ServiceMBean

An MBean that exposes various core server global attributes (version, uptime, etc.).


Field Summary
static ObjectName OBJECT_NAME
          The name of this MBean when deployed.
 
Fields inherited from interface org.jboss.system.ServiceMBean
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Method Summary
 Date getBootTime()
          Returns the time when this server started.
 String getBuildNumber()
          Returns the build number of the core RHQ Server.
 File getInstallDir()
          Where the RHQ Server is installed.
 File getJBossServerDataDir()
          Where the JBoss Server Data directory is.
 File getJBossServerHomeDir()
          Where the JBoss Server Home directory is.
 File getJBossServerTempDir()
          Where the JBoss Server Temp directory is.
 org.rhq.core.domain.common.ProductInfo getProductInfo()
          Product information - the product name, homepage URL, docs URL, etc.
 String getVersion()
          Returns the version of the core RHQ server.
 
Methods inherited from interface org.jboss.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Field Detail

OBJECT_NAME

static final ObjectName OBJECT_NAME
The name of this MBean when deployed.

Method Detail

getVersion

String getVersion()
Returns the version of the core RHQ server.

Returns:
the version of the server

getBuildNumber

String getBuildNumber()
Returns the build number of the core RHQ Server. Servers that returns the same version may return different build numbers, depending on the source code stream that built the server binaries.

Returns:
the build number

getBootTime

Date getBootTime()
Returns the time when this server started.

Returns:
the boot time of the server

getInstallDir

File getInstallDir()
Where the RHQ Server is installed.

Returns:
RHQ Server install directory

getJBossServerHomeDir

File getJBossServerHomeDir()
Where the JBoss Server Home directory is. Typically, this is something like: install-dir/jbossas/server/default

Returns:
jboss server home directory

getJBossServerDataDir

File getJBossServerDataDir()
Where the JBoss Server Data directory is. Typically, this is something like: install-dir/jbossas/server/default/data

Returns:
jboss server home directory

getJBossServerTempDir

File getJBossServerTempDir()
Where the JBoss Server Temp directory is. Typically, this is something like: install-dir/jbossas/server/default/tmp

Returns:
jboss server home directory

getProductInfo

org.rhq.core.domain.common.ProductInfo getProductInfo()
Product information - the product name, homepage URL, docs URL, etc.

Returns:
product information - the product name, homepage URL, docs URL, etc.


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.