|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectbrooklyn.event.adapter.AbstractSensorAdapter
brooklyn.event.adapter.JmxNotificationAdapter
class JmxNotificationAdapter extends AbstractSensorAdapter
Adapter that subscribes to a JMX notification.
Nested Class Summary | |
---|---|
static class |
JmxNotificationAdapter.NotificationPushHelper
|
Property Summary | |
---|---|
JmxSensorAdapter |
adapter
|
java.lang.String |
notificationType
|
javax.management.ObjectName |
objectName
|
NotificationPushHelper |
pusher
|
Constructor Summary | |
JmxNotificationAdapter(java.util.Map flags = [:], JmxSensorAdapter adapter, javax.management.ObjectName objectName, java.lang.String notificationType)
|
Method Summary | |
---|---|
protected void
|
activateAdapter()
|
void
|
subscribe(Sensor s, groovy.lang.Closure postProcessing = {it})
optional postProcessing will take the notification.userData (its native type; casting to sensor's type is done on the return value of the closure) |
void
|
subscribe(javax.management.NotificationListener listener)
optional postProcessing will take the notification |
Methods inherited from class AbstractSensorAdapter | |
---|---|
activateAdapter, addActivationLifecycleListeners, deactivateAdapter, isConnected, register |
Property Detail |
---|
final JmxSensorAdapter adapter
final java.lang.String notificationType
final javax.management.ObjectName objectName
final NotificationPushHelper pusher
Constructor Detail |
---|
JmxNotificationAdapter(java.util.Map flags = [:], JmxSensorAdapter adapter, javax.management.ObjectName objectName, java.lang.String notificationType)
Method Detail |
---|
@Override protected void activateAdapter()
void subscribe(Sensor s, groovy.lang.Closure postProcessing = {it})
void subscribe(javax.management.NotificationListener listener)
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.