BEA Systems, Inc.

WebLogic Server 8.1 API Reference

weblogic.management.runtime
Interface ServerRuntimeMBean


public interface ServerRuntimeMBean
extends weblogic.management.runtime.RuntimeMBean, weblogic.health.HealthFeedback, ServerStates

Description of the Interface

Author:
Copyright © 2002 BEA Systems, Inc. All Rights Reserved.

Fields inherited from class weblogic.management.runtime.ServerStates
ACTIVATE_LATER, FAILED, FAILED_MIGRATABLE, FAILED_NOT_RESTARTABLE, FAILED_RESTARTING, RESUMING, RUNNING, SERVERSTATES, SHUTDOWN, SHUTDOWN_IN_PROCESS, SHUTDOWN_PENDING, SHUTTING_DOWN, SRVR_ACTIVATE_LATER, SRVR_FAILED, SRVR_FAILED_MIGRATABLE, SRVR_FAILED_NOT_RESTARTABLE, SRVR_FAILED_RESTARTING, SRVR_RESUMING, SRVR_RUNNING, SRVR_SHUTDOWN, SRVR_SHUTDOWN_IN_PROCESS, SRVR_SHUTDOWN_PENDING, SRVR_SHUTTING_DOWN, SRVR_STANDBY, SRVR_STARTING, SRVR_SUSPENDING, SRVR_UNKNOWN, STANDBY, STARTING, SUSPENDING, UNKNOWN
 
Method Summary
 long getActivationTime()
          Return the time when the server was started.
 int getAdministrationPort()
          Return the administration port on which this server is listening for
 java.lang.String getAdminServerHost()
          Return the address on which admin server is listening for connections.
 int getAdminServerListenPort()
          Return the port on which admin server is listening for connections.
 ClusterRuntimeMBean getClusterRuntime()
          Return an mbean which represents this server's view of its cluster, if any.
 java.lang.String getCurrentDirectory()
          Returns the absolute path of the Server's "user.dir" or in other words the directory from which the server was started.
 weblogic.health.HealthState getHealthState()
          For Server Health Monitoring.
 java.lang.String getJVMID()
          Return the JVMID of the server.
 java.lang.String getListenAddress()
          Return the address on which this server is listening for connections.
 int getListenPort()
          Return the port on which this server is listening for connections.
 int getOpenSocketsCurrentCount()
          Return the current number sockets registered for socket muxing on this server.
 int getRestartsTotalCount()
          Return the total number of restarts for this server since the cluster was last activated.
 ServerSecurityRuntimeMBean getServerSecurityRuntime()
          Return the ServerSecurityRuntimeMBean for this server.
 long getSocketsOpenedTotalCount()
          Return the total number of registrations for socket muxing on this sever.
 java.lang.String getSSLListenAddress()
          Return the address on which this server is listening for connections.
 int getSSLListenPort()
          Return the port on which this server is listening for SSL connections.
 java.lang.String getState()
          Returns current state of the server.
 java.lang.String getWeblogicVersion()
          Return the version of the server
 boolean isAdministrationPortEnabled()
          Return if the administrationPort is enabled on the server
 boolean isAdminServer()
          Checks if the server is an administrator server.
 boolean isAdminServerListenPortSecure()
          Return the secureType on which admin server is listening for connections.
 boolean isListenPortEnabled()
          Return if the default listenPort is enabled on the server
 boolean isSSLListenPortEnabled()
          Return if the default lSSListenPort is enabled on the server
 void setHealthState(int state, java.lang.String reason)
          For Server Health Monitoring.
 void start()
          Start suspended server.
 
Methods inherited from interface weblogic.management.WebLogicMBean
getMBeanInfo, getName, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setName, setParent
 
Methods inherited from interface javax.management.DynamicMBean
getAttribute, getAttributes, invoke, setAttribute, setAttributes
 
Methods inherited from interface javax.management.MBeanRegistration
postDeregister, postRegister, preRegister
 
Methods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListener
 

Method Detail

start

public void start()
Start suspended server. Allow new requests. This method will be deprecated in the next release.


getState

public java.lang.String getState()
Returns current state of the server.

Returns:
The state value

getActivationTime

public long getActivationTime()
Return the time when the server was started.

Returns:
The activationTime value

getListenAddress

public java.lang.String getListenAddress()
Return the address on which this server is listening for connections. For example this might return the string: santiago/172.17.9.220

Returns:
The listenAddress value

getListenPort

public int getListenPort()
Return the port on which this server is listening for connections.

Returns:
The listenPort value

getSSLListenPort

public int getSSLListenPort()
Return the port on which this server is listening for SSL connections.

Returns:
The sSLListenPort value

getAdministrationPort

public int getAdministrationPort()
Return the administration port on which this server is listening for

Returns:
The administrationPort value

getSSLListenAddress

public java.lang.String getSSLListenAddress()
Return the address on which this server is listening for connections. For example this might return the string: santiago/172.17.9.220

Returns:
The sSLListenAddress value

getJVMID

public java.lang.String getJVMID()
Return the JVMID of the server.

Returns:
The jVMID value

getOpenSocketsCurrentCount

public int getOpenSocketsCurrentCount()
Return the current number sockets registered for socket muxing on this server.

Returns:
The openSocketsCurrentCount value

getRestartsTotalCount

public int getRestartsTotalCount()
Return the total number of restarts for this server since the cluster was last activated.

Returns:
The restartsTotalCount value

getSocketsOpenedTotalCount

public long getSocketsOpenedTotalCount()
Return the total number of registrations for socket muxing on this sever.

Returns:
The socketsOpenedTotalCount value

getWeblogicVersion

public java.lang.String getWeblogicVersion()
Return the version of the server

Returns:
The weblogicVersion value

getServerSecurityRuntime

public ServerSecurityRuntimeMBean getServerSecurityRuntime()
Return the ServerSecurityRuntimeMBean for this server.

Returns:
The serverSecurityRuntime value

getClusterRuntime

public ClusterRuntimeMBean getClusterRuntime()
Return an mbean which represents this server's view of its cluster, if any.

Returns:
The clusterRuntime value

getAdminServerHost

public java.lang.String getAdminServerHost()
Return the address on which admin server is listening for connections. For example this might return the string: santiago

Returns:
The adminServerHost value

getAdminServerListenPort

public int getAdminServerListenPort()
Return the port on which admin server is listening for connections.

Returns:
The adminServerListenPort value

isAdminServerListenPortSecure

public boolean isAdminServerListenPortSecure()
Return the secureType on which admin server is listening for connections.

Returns:
The adminServerListenPortSecure value

isListenPortEnabled

public boolean isListenPortEnabled()
Return if the default listenPort is enabled on the server

Returns:
The listenPortEnabled value

isSSLListenPortEnabled

public boolean isSSLListenPortEnabled()
Return if the default lSSListenPort is enabled on the server

Returns:
The sSLListenPortEnabled value

isAdministrationPortEnabled

public boolean isAdministrationPortEnabled()
Return if the administrationPort is enabled on the server

Returns:
The administrationPortEnabled value

getHealthState

public weblogic.health.HealthState getHealthState()
For Server Health Monitoring.
Specified by:
getHealthState in interface weblogic.health.HealthFeedback

Returns:
The healthState value

setHealthState

public void setHealthState(int state,
                           java.lang.String reason)
For Server Health Monitoring.

Parameters:
state - The new healthState value
reason - The new healthState value

isAdminServer

public boolean isAdminServer()
Checks if the server is an administrator server.

Returns:
The adminServer value

getCurrentDirectory

public java.lang.String getCurrentDirectory()
Returns the absolute path of the Server's "user.dir" or in other words the directory from which the server was started. This may be used in conjuction with other relative paths on The configuration ServerMBean to computate full paths.

Returns:
The currentDirectory value

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs81b