|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface MethodServerMProxyMBean
Provides top-level overview of method servers associated with a server manager
Supported API: true
Extendable: true
| Field Summary | |
|---|---|
static String |
METHOD_SERVER_ADDED_NOTIF
Type of notification produced when method server has been added to server table Supported API: true |
static String |
METHOD_SERVER_JMX_CONN_FAILED_NOTIF
Type of notification produced when JMX connection to method server has failed Supported API: true |
static String |
METHOD_SERVER_REMOVED_NOTIF
Type of notification produced when method server has been removed from server table Supported API: true |
| Method Summary | |
|---|---|
void |
disconnectAllMethodServersMBeanProxies()
Disconnect proxies for all method servers' MBeans Supported API: true |
void |
emailAllMBeansFromAllServerManagers(String addressesOrEmailList,
String subject)
Cause each server manager in the cluster to e-mail styled data for all its MBeans. |
void |
emailLogsDirsFromAllServerManagers(String addressesOrEmailList,
String subject,
boolean oneMessagePerFile,
int maxAgeInDays,
int minAgeInDays,
String matchingExpression)
For each LogsDirViewer MBean in each server manager, e-mail log files from its target log directory filtering by the specified file age Supported API: true |
Map<String,Object> |
getAttributesFromAllClusterMethodServers(ObjectName mbean,
String[] attributeNames)
Get attribute values from an MBean in all method servers in the cluster. |
Map<String,Object> |
getAttributesFromAllLocalMethodServers(ObjectName mbean,
String[] attributeNames)
Get attribute values from an MBean in all local method servers. |
Map<String,Object> |
getAttributesFromAllServerManagers(ObjectName mbean,
String[] attributeNames)
Get attribute values from an MBean in all server managers in the cluster. |
int |
getMethodServerCount()
Current number of method servers associated with this server manager Supported API: true |
String[] |
getMethodServerJmxServiceUrls()
URLs of method servers' JMX servers Supported API: true |
String[] |
getMethodServers()
Display names of method servers Supported API: true |
String[] |
getUnproxiedMethodServers()
Display names of method servers whose MBeans are not currently proxied Supported API: true |
Map<String,Object> |
invokeInAllClusterMethodServers(ObjectName mbean,
String operation,
Object[] params,
String[] signature)
Invoke an operation on an MBean in all method servers in the cluster. |
Map<String,Object> |
invokeInAllLocalMethodServers(ObjectName mbean,
String operation,
Object[] params,
String[] signature)
Invoke an operation on an MBean in all local method servers. |
Map<String,Object> |
invokeInAllServerManagers(ObjectName mbean,
String operation,
Object[] params,
String[] signature)
Invoke an operation on an MBean in all server managers in the cluster. |
Map<String,Object> |
invokeInfoOpInAllClusterMethodServers(ObjectName mbean,
String operation,
Object[] params,
String[] signature)
Invoke an operation with an INFO (read-only) impact on an MBean in all method servers in the cluster. |
Map<String,Object> |
invokeInfoOpInAllLocalMethodServers(ObjectName mbean,
String operation,
Object[] params,
String[] signature)
Invoke an operation with an INFO (read-only) impact on an MBean in all local method servers. |
Map<String,Object> |
invokeInfoOpInAllServerManagers(ObjectName mbean,
String operation,
Object[] params,
String[] signature)
Invoke an operation with an INFO (read-only) impact on an MBean in all server managers in the cluster. |
boolean |
isProxyingMethodServerMBeansByDefault()
Whether method servers' MBeans are proxied into server manager's MBeanServer by default Supported API: true |
void |
proxyAllMethodServersMBeans()
Proxy all method servers' MBeans Supported API: true |
String |
restartAllClusterMethodServers(boolean asyncRestart,
long timeout)
Restart all MethodServers in the cluster. |
String |
restartAllLocalMethodServers(boolean asyncRestart,
long timeout)
Restart all local MethodServers Supported API: true |
Map<String,Object> |
setAttributesInAllClusterMethodServers(ObjectName mbean,
AttributeList attributes)
Set attribute values on an MBean in all method servers in the cluster. |
Map<String,Object> |
setAttributesInAllLocalMethodServers(ObjectName mbean,
AttributeList attributes)
Set attributes on an MBean in all local method server. |
Map<String,Object> |
setAttributesInAllServerManagers(ObjectName mbean,
AttributeList attributes)
Set attributes on an MBean in all server managers in the cluster. |
void |
setLevelInAllClusterMethodServers(String loggerName,
String level)
Set log level for a given logger in all method servers in the cluster. |
void |
setLevelInAllLocalMethodServers(String loggerName,
String level)
Set log level for a given logger in all method servers. |
void |
setLevelInAllServerManagers(String loggerName,
String level)
Set log level for a given logger in all server managers in the cluster. |
void |
setPropertyInAllClusterMethodServers(String propertyName,
String newValue)
Sets the value of a specified property in all method servers in the cluster. |
void |
setPropertyInAllLocalMethodServers(String propertyName,
String newValue)
Sets the value of a specified property in all local method servers. |
void |
setPropertyInAllServerManagers(String propertyName,
String newValue)
Sets the value of a specified property in all server managers in the cluster. |
void |
setProxyingMethodServerMBeansByDefault(boolean proxying)
Whether method servers' MBeans are proxied into server manager's MBeanServer by default Supported API: true |
void |
startServer(String serviceName)
Start server for a given service name Supported API: true |
| Methods inherited from interface wt.jmx.core.mbeans.SelfEmailingMBean |
|---|
emailThisMBean |
| Field Detail |
|---|
static final String METHOD_SERVER_ADDED_NOTIF
static final String METHOD_SERVER_REMOVED_NOTIF
static final String METHOD_SERVER_JMX_CONN_FAILED_NOTIF
| Method Detail |
|---|
boolean isProxyingMethodServerMBeansByDefault()
void setProxyingMethodServerMBeansByDefault(boolean proxying)
int getMethodServerCount()
String[] getMethodServers()
String[] getMethodServerJmxServiceUrls()
String[] getUnproxiedMethodServers()
void proxyAllMethodServersMBeans()
throws IOException
IOExceptionvoid disconnectAllMethodServersMBeanProxies()
void emailAllMBeansFromAllServerManagers(String addressesOrEmailList,
String subject)
throws Exception
addressesOrEmailList - Comma-delimited list of e-mail addresses or name of e-mail list to send e-mail tosubject - Subject to give e-mail
Exception
void emailLogsDirsFromAllServerManagers(String addressesOrEmailList,
String subject,
boolean oneMessagePerFile,
int maxAgeInDays,
int minAgeInDays,
String matchingExpression)
throws Exception
addressesOrEmailList - Comma-delimited list of e-mail addresses or name of e-mail list to send e-mail tosubject - Subject to give e-mailoneMessagePerFile - Whether to send a separate e-mail message for each filemaxAgeInDays - Maximum age in days (by modification date) of files to e-mailminAgeInDays - Minimum age in days (by modification date) of files to e-mail; ignored when less than or equal to zeromatchingExpression - Regular expression file names must match to be e-mailed; ignored if empty or null
Exception
void setLevelInAllLocalMethodServers(String loggerName,
String level)
throws Exception
loggerName - Name of loggerlevel - Level to assign logger; valid values are ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF (or blank/unspecified)
Exception
void setLevelInAllClusterMethodServers(String loggerName,
String level)
throws Exception
loggerName - Name of loggerlevel - Level to assign logger; valid values are ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF (or blank/unspecified)
Exception
void setLevelInAllServerManagers(String loggerName,
String level)
throws Exception
loggerName - Name of loggerlevel - Level to assign logger; valid values are ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF (or blank/unspecified)
Exception
void startServer(String serviceName)
throws Exception
serviceName - Name of service to start (e.g. "MethodServer" or "BackgroundMethodServer"); defaults to "MethodServer" if not specified
Exception
String restartAllLocalMethodServers(boolean asyncRestart,
long timeout)
throws Exception
asyncRestart - Whether or not to restart MethodServers asynchronously or wait for the entire action to complete before returning.timeout - The number of milliseconds to wait for a MethodServer to restart; values of 0 or less will imply an unlimited wait.
Exception - - Thrown if an error occurrs while restarting MethodServers.
String restartAllClusterMethodServers(boolean asyncRestart,
long timeout)
throws Exception
asyncRestart - Whether or not to restart MethodServers asynchronously or wait for the entire action to complete before returning.timeout - The number of milliseconds to wait for a MethodServer to restart; values of 0 or less will imply an unlimited wait.
Exception - - Thrown if an error occurrs while restarting MethodServers.
void setPropertyInAllLocalMethodServers(String propertyName,
String newValue)
throws Exception
propertyName - Name of property to retrievenewValue - New value to aassign to property
Exception
void setPropertyInAllClusterMethodServers(String propertyName,
String newValue)
throws Exception
propertyName - Name of property to retrievenewValue - New value to aassign to property
Exception
void setPropertyInAllServerManagers(String propertyName,
String newValue)
throws Exception
propertyName - Name of property to retrievenewValue - New value to aassign to property
Exception
Map<String,Object> getAttributesFromAllLocalMethodServers(ObjectName mbean,
String[] attributeNames)
mbean - ObjectName of target MBeanattributeNames - Names of attributes to fetch values for
Map<String,Object> getAttributesFromAllClusterMethodServers(ObjectName mbean,
String[] attributeNames)
throws InvocationTargetException,
RemoteException
mbean - ObjectName of target MBeanattributeNames - Names of attributes to fetch values for
InvocationTargetException
RemoteException
Map<String,Object> getAttributesFromAllServerManagers(ObjectName mbean,
String[] attributeNames)
throws InvocationTargetException,
RemoteException
mbean - ObjectName of target MBeanattributeNames - Names of attributes to fetch values for
InvocationTargetException
RemoteException
Map<String,Object> setAttributesInAllLocalMethodServers(ObjectName mbean,
AttributeList attributes)
mbean - ObjectName of target MBeanattributes - Attribute settings to apply
Map<String,Object> setAttributesInAllClusterMethodServers(ObjectName mbean,
AttributeList attributes)
throws InvocationTargetException,
RemoteException
mbean - ObjectName of target MBeanattributes - Attribute settings to apply
InvocationTargetException
RemoteException
Map<String,Object> setAttributesInAllServerManagers(ObjectName mbean,
AttributeList attributes)
throws InvocationTargetException,
RemoteException
mbean - ObjectName of target MBeanattributes - Attribute settings to apply
InvocationTargetException
RemoteException
Map<String,Object> invokeInAllLocalMethodServers(ObjectName mbean,
String operation,
Object[] params,
String[] signature)
mbean - ObjectName of target MBeanoperation - Name of target operationparams - Arguments of target operationsignature - Signature of target operation
Map<String,Object> invokeInfoOpInAllLocalMethodServers(ObjectName mbean,
String operation,
Object[] params,
String[] signature)
mbean - ObjectName of target MBeanoperation - Name of target operationparams - Arguments of target operationsignature - Signature of target operation
Map<String,Object> invokeInAllClusterMethodServers(ObjectName mbean,
String operation,
Object[] params,
String[] signature)
throws InvocationTargetException,
RemoteException
mbean - ObjectName of target MBeanoperation - Name of target operationparams - Arguments of target operationsignature - Signature of target operation
InvocationTargetException
RemoteException
Map<String,Object> invokeInfoOpInAllClusterMethodServers(ObjectName mbean,
String operation,
Object[] params,
String[] signature)
throws InvocationTargetException,
RemoteException
mbean - ObjectName of target MBeanoperation - Name of target operationparams - Arguments of target operationsignature - Signature of target operation
InvocationTargetException
RemoteException
Map<String,Object> invokeInAllServerManagers(ObjectName mbean,
String operation,
Object[] params,
String[] signature)
throws InvocationTargetException,
RemoteException
mbean - ObjectName of target MBeanoperation - Name of target operationparams - Arguments of target operationsignature - Signature of target operation
InvocationTargetException
RemoteException
Map<String,Object> invokeInfoOpInAllServerManagers(ObjectName mbean,
String operation,
Object[] params,
String[] signature)
throws InvocationTargetException,
RemoteException
mbean - ObjectName of target MBeanoperation - Name of target operationparams - Arguments of target operationsignature - Signature of target operation
InvocationTargetException
RemoteException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||