|
spring-context | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.jmx.support.NotificationListenerHolder
org.springframework.jmx.access.NotificationListenerRegistrar
public class NotificationListenerRegistrar
Registrar object that associates a specific NotificationListener
with one or more MBeans in an MBeanServer
(typically via a MBeanServerConnection
).
setServer(javax.management.MBeanServerConnection)
,
NotificationListenerHolder.setMappedObjectNames(java.lang.Object[])
,
NotificationListenerHolder.setNotificationListener(javax.management.NotificationListener)
Field Summary | |
---|---|
protected org.apache.commons.logging.Log |
logger
Logger available to subclasses |
Fields inherited from class org.springframework.jmx.support.NotificationListenerHolder |
---|
mappedObjectNames |
Constructor Summary | |
---|---|
NotificationListenerRegistrar()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
void |
destroy()
Unregisters the specified NotificationListener . |
java.util.Map<java.lang.String,?> |
getEnvironment()
Allow Map access to the environment to be set for the connector, with the option to add or override specific entries. |
void |
prepare()
Registers the specified NotificationListener . |
void |
setAgentId(java.lang.String agentId)
Set the agent id of the MBeanServer to locate. |
void |
setEnvironment(java.util.Map<java.lang.String,?> environment)
Specify the environment for the JMX connector. |
void |
setServer(javax.management.MBeanServerConnection server)
Set the MBeanServerConnection used to connect to the
MBean which all invocations are routed to. |
void |
setServiceUrl(java.lang.String url)
Set the service URL of the remote MBeanServer . |
Methods inherited from class org.springframework.jmx.support.NotificationListenerHolder |
---|
equals, getHandback, getNotificationFilter, getNotificationListener, getResolvedObjectNames, hashCode, setHandback, setMappedObjectName, setMappedObjectNames, setNotificationFilter, setNotificationListener |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final org.apache.commons.logging.Log logger
Constructor Detail |
---|
public NotificationListenerRegistrar()
Method Detail |
---|
public void setServer(javax.management.MBeanServerConnection server)
MBeanServerConnection
used to connect to the
MBean which all invocations are routed to.
public void setEnvironment(java.util.Map<java.lang.String,?> environment)
JMXConnectorFactory.connect(javax.management.remote.JMXServiceURL, java.util.Map)
public java.util.Map<java.lang.String,?> getEnvironment()
Useful for specifying entries directly, for example via "environment[myKey]". This is particularly useful for adding or overriding entries in child bean definitions.
public void setServiceUrl(java.lang.String url) throws java.net.MalformedURLException
MBeanServer
.
java.net.MalformedURLException
public void setAgentId(java.lang.String agentId)
MBeanServer
to 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.
Specifying the empty String indicates the platform MBeanServer.
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
public void prepare()
NotificationListener
.
Ensures that an MBeanServerConnection
is configured and attempts
to detect a local connection if one is not supplied.
public void destroy()
NotificationListener
.
destroy
in interface org.springframework.beans.factory.DisposableBean
|
spring-context | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |