jrunx.kernel
Class JRunServer

jrunx.kernel.ServiceAdapter
  |
  +--jrunx.kernel.ServicePartition
        |
        +--jrunx.kernel.ConfigurableServicePartition
              |
              +--jrunx.kernel.JRunServer
All Implemented Interfaces:
ConfigurableServicePartitionMBean, JRunServerMBean, javax.naming.Referenceable, java.io.Serializable, Service, ServiceMBean, ServicePartitionMBean

public class JRunServer
extends ConfigurableServicePartition
implements JRunServerMBean

The JRun Server service encapsulates the ClusterManager and NamingService, and maintains information such as directory roots and version information.
The ClusterManager is a configurable service in jrun.xml. The NamingService is not configurable in jrun.xml due to the J2EE requirement for a jndi.properties file.

Author:
Karl Moss, PS Neville
See Also:
Serialized Form

Fields inherited from class jrunx.kernel.ServicePartition
sortedServices
 
Fields inherited from class jrunx.kernel.ServiceAdapter
DEFAULT_DEACTIVATED, DEFAULT_DOMAIN, DOMAIN_NAME_SEPARATOR, DOMAIN_NAME_SUFFIX, domainName, jndiBindable, LOGGER_CACHE_TIME, SCHEDULER_SERVICE, SECURITY_MANAGER, server, status, TRANSACTION_MANAGER
 
Fields inherited from interface jrunx.kernel.JRunServerMBean
OBJECT_NAME
 
Fields inherited from interface jrunx.kernel.Service
INITIALIZED, STARTED, STARTING, STOPPED, STOPPING, UNINITIALIZED
 
Constructor Summary
JRunServer()
           
 
Method Summary
static int getMajorVersion()
           
 java.lang.String getProductBuildNumber()
          Gets the internal build number of the version currently running
 java.lang.String getProductName()
          Gets the JRun product name
 java.lang.String getProductVendorName()
          Gets the vendor who developed JRun
 java.lang.String getProductVendorUrl()
          Gets the URL of the vendor who developed JRun
 java.lang.String getProductVersion()
          Gets the version of JRun currently running, such as 4.0
 java.lang.String getRootDirectory()
          Gets the root directory of JRun
 java.lang.String getServerRootDirectory()
          Gets the root directory of the JRun server
 void init()
          Not every service needs to init, implement it out of convenience.
 void restartServer()
           
 void stopServer()
           
 
Methods inherited from class jrunx.kernel.ConfigurableServicePartition
destroy, destroyServices, initServices, loadAndInit, loadChildren, setChildElements, start, startServices, stop, stopServices
 
Methods inherited from class jrunx.kernel.ServicePartition
addService, addService, getServices, invokeChain, iterator, removeService, removeService
 
Methods inherited from class jrunx.kernel.ServiceAdapter
bind, findObjectInstance, findObjectInstance, findObjectInstance, getBindToJNDI, getDeactivated, getDomainName, getDomainSearchPath, getJRunService, getLogger, getName, getParentService, getReference, getResourceManager, getServerName, getServerProperties, getStatus, invokeMethod, isInPartition, isPartition, lookup, postDeregister, postRegister, preDeregister, preRegister, requestServer, scheduleRunnable, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, toString, unbind, unscheduleRunnable, updateStatus
 
Methods inherited from interface jrunx.kernel.ConfigurableServicePartitionMBean
setChildElements
 
Methods inherited from interface jrunx.kernel.ServicePartitionMBean
addService, addService, iterator, removeService, removeService
 
Methods inherited from interface jrunx.kernel.ServiceMBean
bind, getBindToJNDI, getDeactivated, getDomainName, getJRunService, getLogger, getName, getParentService, getServerName, requestServer, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, unbind
 
Methods inherited from interface jrunx.kernel.Service
destroy, getStatus, start, stop, updateStatus
 

Constructor Detail

JRunServer

public JRunServer()
Method Detail

stopServer

public void stopServer()
                throws java.lang.Exception
Specified by:
stopServer in interface JRunServerMBean

restartServer

public void restartServer()
                   throws java.lang.Exception
Specified by:
restartServer in interface JRunServerMBean

getServerRootDirectory

public java.lang.String getServerRootDirectory()
Description copied from interface: JRunServerMBean
Gets the root directory of the JRun server
Specified by:
getServerRootDirectory in interface JRunServerMBean
Following copied from interface: jrunx.kernel.JRunServerMBean
Returns:
The root directory

getRootDirectory

public java.lang.String getRootDirectory()
Description copied from interface: JRunServerMBean
Gets the root directory of JRun
Specified by:
getRootDirectory in interface JRunServerMBean
Following copied from interface: jrunx.kernel.JRunServerMBean
Returns:
The root directory

getProductVersion

public java.lang.String getProductVersion()
Description copied from interface: JRunServerMBean
Gets the version of JRun currently running, such as 4.0
Specified by:
getProductVersion in interface JRunServerMBean
Following copied from interface: jrunx.kernel.JRunServerMBean
Returns:
The version

getProductBuildNumber

public java.lang.String getProductBuildNumber()
Description copied from interface: JRunServerMBean
Gets the internal build number of the version currently running
Specified by:
getProductBuildNumber in interface JRunServerMBean
Following copied from interface: jrunx.kernel.JRunServerMBean
Returns:
The internal build number

getProductVendorName

public java.lang.String getProductVendorName()
Description copied from interface: JRunServerMBean
Gets the vendor who developed JRun
Specified by:
getProductVendorName in interface JRunServerMBean
Following copied from interface: jrunx.kernel.JRunServerMBean
Returns:
The vendor

getProductVendorUrl

public java.lang.String getProductVendorUrl()
Description copied from interface: JRunServerMBean
Gets the URL of the vendor who developed JRun
Specified by:
getProductVendorUrl in interface JRunServerMBean
Following copied from interface: jrunx.kernel.JRunServerMBean
Returns:
The vendor URL

getProductName

public java.lang.String getProductName()
Description copied from interface: JRunServerMBean
Gets the JRun product name
Specified by:
getProductName in interface JRunServerMBean
Following copied from interface: jrunx.kernel.JRunServerMBean
Returns:
The product name

getMajorVersion

public static int getMajorVersion()

init

public void init()
          throws java.lang.Exception
Description copied from class: ServiceAdapter
Not every service needs to init, implement it out of convenience.
Specified by:
init in interface Service
Overrides:
init in class ConfigurableServicePartition


Copyright � 2002 Macromedia Corporation. All Rights Reserved.