类 NotificationListenerRegistrar
java.lang.Object
cn.taketoday.jmx.support.NotificationListenerHolder
cn.taketoday.jmx.access.NotificationListenerRegistrar
- 所有已实现的接口:
DisposableBean,InitializingBean
public class NotificationListenerRegistrar
extends NotificationListenerHolder
implements InitializingBean, DisposableBean
Registrar object that associates a specific
NotificationListener
with one or more MBeans in an MBeanServer
(typically via a MBeanServerConnection).-
字段概要
字段从类继承的字段 cn.taketoday.jmx.support.NotificationListenerHolder
mappedObjectNames -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidvoiddestroy()Unregisters the specifiedNotificationListener.Allow Map access to the environment to be set for the connector, with the option to add or override specific entries.voidprepare()Registers the specifiedNotificationListener.voidsetAgentId(String agentId) Set the agent id of theMBeanServerto locate.voidsetEnvironment(Map<String, ?> environment) Specify the environment for the JMX connector.voidsetServer(MBeanServerConnection server) Set theMBeanServerConnectionused to connect to the MBean which all invocations are routed to.voidsetServiceUrl(String url) Set the service URL of the remoteMBeanServer.从类继承的方法 cn.taketoday.jmx.support.NotificationListenerHolder
equals, getHandback, getNotificationFilter, getNotificationListener, getResolvedObjectNames, hashCode, setHandback, setMappedObjectName, setMappedObjectNames, setNotificationFilter, setNotificationListener
-
字段详细资料
-
logger
protected final cn.taketoday.logging.Logger loggerLogger available to subclasses.
-
-
构造器详细资料
-
NotificationListenerRegistrar
public NotificationListenerRegistrar()
-
-
方法详细资料
-
setServer
Set theMBeanServerConnectionused to connect to the MBean which all invocations are routed to. -
setEnvironment
Specify the environment for the JMX connector. -
getEnvironment
Allow Map access to the environment to be set for the connector, with the option to add or override specific entries.Useful for specifying entries directly, for example via "environment[myKey]". This is particularly useful for adding or overriding entries in child bean definitions.
-
setServiceUrl
Set the service URL of the remoteMBeanServer. -
setAgentId
Set the agent id of theMBeanServerto locate.Default is none. If specified, this will result in an attempt being made to locate the attendant MBeanServer, unless the
"serviceUrl"property has been set. -
afterPropertiesSet
public void afterPropertiesSet()- 指定者:
afterPropertiesSet在接口中InitializingBean
-
prepare
public void prepare()Registers the specifiedNotificationListener.Ensures that an
MBeanServerConnectionis configured and attempts to detect a local connection if one is not supplied. -
destroy
public void destroy()Unregisters the specifiedNotificationListener.- 指定者:
destroy在接口中DisposableBean
-