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.ServiceAdapter |
DEFAULT_DEACTIVATED, DEFAULT_DOMAIN, DOMAIN_NAME_SEPARATOR, DOMAIN_NAME_SUFFIX, domainName, jndiBindable, LOGGER_CACHE_TIME, SCHEDULER_SERVICE, SECURITY_MANAGER, server, status, TRANSACTION_MANAGER |
| 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.ServiceMBean |
bind, getBindToJNDI, getDeactivated, getDomainName, getJRunService, getLogger, getName, getParentService, getServerName, requestServer, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, unbind |
JRunServer
public JRunServer()
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.