org.rhq.enterprise.server.core
Class CoreServer

java.lang.Object
  extended by org.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended by org.jboss.system.ServiceMBeanSupport
          extended by org.rhq.enterprise.server.core.CoreServer
All Implemented Interfaces:
MBeanRegistration, NotificationBroadcaster, NotificationEmitter, org.jboss.system.Service, org.jboss.system.ServiceMBean, CoreServerMBean

public class CoreServer
extends org.jboss.system.ServiceMBeanSupport
implements CoreServerMBean


Field Summary
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.rhq.enterprise.server.core.CoreServerMBean
OBJECT_NAME
 
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
 
Constructor Summary
CoreServer()
           
 
Method Summary
protected  void createService()
           
 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.
 String getName()
           
 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 class org.jboss.system.ServiceMBeanSupport
create, destroy, destroyService, getDeploymentInfo, getLog, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, startService, stop, stopService
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.system.ServiceMBean
getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Constructor Detail

CoreServer

public CoreServer()
Method Detail

createService

protected void createService()
                      throws Exception
Overrides:
createService in class org.jboss.system.ServiceMBeanSupport
Throws:
Exception

getName

public String getName()
Specified by:
getName in interface org.jboss.system.ServiceMBean
Overrides:
getName in class org.jboss.system.ServiceMBeanSupport

getVersion

public String getVersion()
Description copied from interface: CoreServerMBean
Returns the version of the core RHQ server.

Specified by:
getVersion in interface CoreServerMBean
Returns:
the version of the server

getBuildNumber

public String getBuildNumber()
Description copied from interface: CoreServerMBean
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.

Specified by:
getBuildNumber in interface CoreServerMBean
Returns:
the build number

getBootTime

public Date getBootTime()
Description copied from interface: CoreServerMBean
Returns the time when this server started.

Specified by:
getBootTime in interface CoreServerMBean
Returns:
the boot time of the server

getInstallDir

public File getInstallDir()
Description copied from interface: CoreServerMBean
Where the RHQ Server is installed.

Specified by:
getInstallDir in interface CoreServerMBean
Returns:
RHQ Server install directory

getJBossServerHomeDir

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

Specified by:
getJBossServerHomeDir in interface CoreServerMBean
Returns:
jboss server home directory

getJBossServerDataDir

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

Specified by:
getJBossServerDataDir in interface CoreServerMBean
Returns:
jboss server home directory

getJBossServerTempDir

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

Specified by:
getJBossServerTempDir in interface CoreServerMBean
Returns:
jboss server home directory

getProductInfo

public org.rhq.core.domain.common.ProductInfo getProductInfo()
Description copied from interface: CoreServerMBean
Product information - the product name, homepage URL, docs URL, etc.

Specified by:
getProductInfo in interface CoreServerMBean
Returns:
product information - the product name, homepage URL, docs URL, etc.


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