Package wt.manager.jmx
Interface MethodServerDataMBean
- All Superinterfaces:
SelfEmailingMBean
Provide basic top-level data on a single method server and proxying thereof
Supported API: true
Extendable: true
Supported API: true
Extendable: true
-
Method Summary
Modifier and TypeMethodDescriptionvoidStop proxying method server's MBeans into server manager MBeanServer
Supported API: truevoidemailActiveMethodContexts(String addressesOrEmailList, String subject, boolean compress) E-mail styled data for all method contexts currently being processed
Supported API: truevoidemailMethodServerMBeans(String addressesOrEmailList, String subject, boolean compress) E-mail styled data for all method server MBeans.getAttributesFromMethodServer(ObjectName mbean, String[] attributeNames) Get attribute values from an MBean in the method server.Display name of method server
Supported API: trueintgetJvmId()JVM id of method server
Supported API: truegetName()Name of method server service
Supported API: trueURL of method server's JMX server
Supported API: trueTime method server started
Supported API: trueinvokeInfoOperationInMethodServer(ObjectName mbean, String operation, Object[] params, String[] signature) Invoke an operation with an INFO (read-only) impact on an MBean in the method server.invokeOperationInMethodServer(ObjectName mbean, String operation, Object[] params, String[] signature) Invoke an operation on an MBean in the method server.booleanWhether a JMX connection was established from the server manager to method server and this connection subsequently failed
Supported API: truebooleanWhether method server's MBeans are proxied into server manager MBeanServer
Supported API: truevoidProxy method server's MBeans into server manager MBeanServer
Supported API: truevoidStop the method server and immediately start a new one
Supported API: truesetAttributesInMethodServer(ObjectName mbean, AttributeList attributes) Set attributes on an MBean in the method server.voidSet log level for a given logger.voidsetProperty(String propertyName, String newValue) Sets the value of a specified property.voidStop the method server
Supported API: trueMethods inherited from interface wt.jmx.core.mbeans.SelfEmailingMBean
emailThisMBean
-
Method Details
-
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
Proxy method server's MBeans into server manager MBeanServer
Supported API: true- Throws:
IOException
-
disconnectProxy
Stop proxying method server's MBeans into server manager MBeanServer
Supported API: true -
stopMethodServer
Stop the method server
Supported API: true- Throws:
RemoteException
-
restartMethodServer
Stop the method server and immediately start a new one
Supported API: true- Throws:
Exception
-
setLevel
Set log level for a given logger.
Supported API: true- Parameters:
loggerName- Name of loggerlevel- Level to assign logger; valid values are ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF (or blank/unspecified)- Throws:
Exception
-
setProperty
Sets the value of a specified property.
Supported API: true- Parameters:
propertyName- name of property to retrievenewValue- new value to assign to property- Throws:
Exception
-
emailMethodServerMBeans
@MBeanOperationImpact(0) void emailMethodServerMBeans(String addressesOrEmailList, String subject, boolean compress) throws Exception E-mail styled data for all method server MBeans.
Supported API: true- Parameters:
addressesOrEmailList- Comma-delimited list of e-mail addresses or name of e-mail list to send e-mail tosubject- Subject to give e-mailcompress- Whether e-mail contents should be compressed- Throws:
Exception
-
emailActiveMethodContexts
@MBeanOperationImpact(0) void emailActiveMethodContexts(String addressesOrEmailList, String subject, boolean compress) throws Exception E-mail styled data for all method contexts currently being processed
Supported API: true- Parameters:
addressesOrEmailList- Comma-delimited list of e-mail addresses or name of e-mail list to send e-mail tosubject- Subject to give e-mailcompress- Whether e-mail contents should be compressed- Throws:
Exception
-
getAttributesFromMethodServer
@MBeanOperationImpact(0) 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 MBeanattributeNames- Names of attributes to fetch values for- Throws:
Exception
-
setAttributesInMethodServer
@MBeanOperationImpact(1) 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 MBeanattributes- Attribute settings to apply- Throws:
Exception
-
invokeOperationInMethodServer
@MBeanOperationImpact(1) 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 MBeanoperation- Name of target operationparams- Arguments of target operationsignature- Signature of target operation- Throws:
Exception
-
invokeInfoOperationInMethodServer
@MBeanOperationImpact(0) 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 MBeanoperation- Name of target operationparams- Arguments of target operationsignature- Signature of target operation- Throws:
Exception
-