wt.manager.jmx
Interface MethodServerDataMBean

All Superinterfaces:
SelfEmailingMBean

public interface MethodServerDataMBean
extends SelfEmailingMBean

Provide basic top-level data on a single method server and proxying thereof

Supported API: true

Extendable: true


Method Summary
 void disconnectProxy()
          Stop proxying method server's MBeans into server manager MBeanServer

Supported API: true
 AttributeList getAttributesFromMethodServer(ObjectName mbean, String[] attributeNames)
          Get attribute values from an MBean in the method server.
 String getDisplayName()
          Display name of method server

Supported API: true
 int getJvmId()
          JVM id of method server

Supported API: true
 String getName()
          Name of method server service

Supported API: true
 String getRemoteJmxUrl()
          URL of method server's JMX server

Supported API: true
 Date getStartDate()
          Time method server started

Supported API: true
 Object invokeInfoOperationInMethodServer(ObjectName mbean, String operation, Object[] params, String[] signature)
          Invoke an operation with an INFO (read-only) impact on an MBean in the method server.
 Object invokeOperationInMethodServer(ObjectName mbean, String operation, Object[] params, String[] signature)
          Invoke an operation on an MBean in the method server.
 boolean isJmxConnectionFailed()
          Whether a JMX connection was established from the server manager to method server and this connection subsequently failed

Supported API: true
 boolean isMBeansProxied()
          Whether method server's MBeans are proxied into server manager MBeanServer

Supported API: true
 void proxyMBeans()
          Proxy method server's MBeans into server manager MBeanServer

Supported API: true
 void restartMethodServer()
          Stop the method server and immediately start a new one

Supported API: true
 AttributeList setAttributesInMethodServer(ObjectName mbean, AttributeList attributes)
          Set attributes on an MBean in the method server.
 void setLevel(String loggerName, String level)
          Set log level for a given logger.
 void setProperty(String propertyName, String newValue)
          Sets the value of a specified property.
 void stopMethodServer()
          Stop the method server

Supported API: true
 
Methods inherited from interface wt.jmx.core.mbeans.SelfEmailingMBean
emailThisMBean
 

Method Detail

getName

String getName()
Name of method server service

Supported API: true


getStartDate

Date getStartDate()
Time method server started

Supported API: true


getJvmId

int getJvmId()
JVM id of method server

Supported API: true


getRemoteJmxUrl

String getRemoteJmxUrl()
URL of method server's JMX server

Supported API: true


getDisplayName

String getDisplayName()
Display name of method server

Supported API: true


isJmxConnectionFailed

boolean isJmxConnectionFailed()
Whether a JMX connection was established from the server manager to method server and this connection subsequently failed

Supported API: true


isMBeansProxied

boolean isMBeansProxied()
Whether method server's MBeans are proxied into server manager MBeanServer

Supported API: true


proxyMBeans

void proxyMBeans()
                 throws IOException
Proxy method server's MBeans into server manager MBeanServer

Supported API: true

Throws:
IOException

disconnectProxy

void disconnectProxy()
Stop proxying method server's MBeans into server manager MBeanServer

Supported API: true


stopMethodServer

void stopMethodServer()
                      throws RemoteException
Stop the method server

Supported API: true

Throws:
RemoteException

restartMethodServer

void restartMethodServer()
                         throws Exception
Stop the method server and immediately start a new one

Supported API: true

Throws:
Exception

setLevel

void setLevel(String loggerName,
              String level)
              throws Exception
Set log level for a given logger.

Supported API: true

Parameters:
loggerName - Name of logger
level - Level to assign logger; valid values are ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF (or blank/unspecified)
Throws:
Exception

setProperty

void setProperty(String propertyName,
                 String newValue)
                 throws Exception
Sets the value of a specified property.

Supported API: true

Parameters:
propertyName - name of property to retrieve
newValue - new value to aassign to property
Throws:
Exception

getAttributesFromMethodServer

AttributeList getAttributesFromMethodServer(ObjectName mbean,
                                            String[] attributeNames)
                                            throws Exception
Get attribute values from an MBean in the method server.

Supported API: true

Parameters:
mbean - ObjectName of target MBean
attributeNames - Names of attributes to fetch values for
Throws:
Exception

setAttributesInMethodServer

AttributeList setAttributesInMethodServer(ObjectName mbean,
                                          AttributeList attributes)
                                          throws Exception
Set attributes on an MBean in the method server.

Supported API: true

Parameters:
mbean - ObjectName of target MBean
attributes - Attribute settings to apply
Throws:
Exception

invokeOperationInMethodServer

Object invokeOperationInMethodServer(ObjectName mbean,
                                     String operation,
                                     Object[] params,
                                     String[] signature)
                                     throws Exception
Invoke an operation on an MBean in the method server.

Supported API: true

Parameters:
mbean - ObjectName of target MBean
operation - Name of target operation
params - Arguments of target operation
signature - Signature of target operation
Throws:
Exception

invokeInfoOperationInMethodServer

Object invokeInfoOperationInMethodServer(ObjectName mbean,
                                         String operation,
                                         Object[] params,
                                         String[] signature)
                                         throws Exception
Invoke an operation with an INFO (read-only) impact on an MBean in the method server. This operation will raise an exception if the target operation has a non-INFO impact.

Supported API: true

Parameters:
mbean - ObjectName of target MBean
operation - Name of target operation
params - Arguments of target operation
signature - Signature of target operation
Throws:
Exception