Brooklyn

brooklyn.event.adapter
[Groovy] Class JmxNotificationAdapter

java.lang.Object
  brooklyn.event.adapter.AbstractSensorAdapter
      brooklyn.event.adapter.JmxNotificationAdapter

class JmxNotificationAdapter
extends AbstractSensorAdapter

Adapter that subscribes to a JMX notification.

See Also:
JmxSensorAdapter


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

adapter

final JmxSensorAdapter adapter


notificationType

final java.lang.String notificationType


objectName

final javax.management.ObjectName objectName


pusher

final NotificationPushHelper pusher


 
Constructor Detail

JmxNotificationAdapter

JmxNotificationAdapter(java.util.Map flags = [:], JmxSensorAdapter adapter, javax.management.ObjectName objectName, java.lang.String notificationType)


 
Method Detail

activateAdapter

@Override
protected void activateAdapter()


subscribe

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)


subscribe

void subscribe(javax.management.NotificationListener listener)
optional postProcessing will take the notification


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.