|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbrooklyn.management.internal.SubscriptionTracker
public class SubscriptionTracker
Tracks subscriptions associated that are registered with particular entities. Gives utilities for unsubscribing from all subscriptions on a given entity, etc.
Field Summary | |
---|---|
protected SubscriptionContext |
subscription
|
Constructor Summary | |
SubscriptionTracker(SubscriptionContext subscriptionContext)
|
Method Summary | |
---|---|
java.util.Collection
|
getAllSubscriptions()
@return an ordered list of all subscription handles |
SubscriptionHandle
|
subscribe(Entity producer, Sensor sensor, SensorEventListener listener)
@see SubscriptionContext#subscribe(Entity, Sensor, SensorEventListener) |
SubscriptionHandle
|
subscribeToChildren(Entity parent, Sensor sensor, SensorEventListener listener)
@see SubscriptionContext#subscribeToChildren(Entity, Sensor, SensorEventListener) |
SubscriptionHandle
|
subscribeToMembers(Group parent, Sensor sensor, SensorEventListener listener)
@see SubscriptionContext#subscribeToMembers(Entity, Sensor, SensorEventListener) |
boolean
|
unsubscribe(Entity producer)
Unsubscribes the given producer. |
boolean
|
unsubscribe(Entity producer, SubscriptionHandle handle)
Unsubscribes the given producer. |
void
|
unsubscribeAll()
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Field Detail |
---|
protected SubscriptionContext subscription
Constructor Detail |
---|
public SubscriptionTracker(SubscriptionContext subscriptionContext)
Method Detail |
---|
public java.util.Collection getAllSubscriptions()
public SubscriptionHandle subscribe(Entity producer, Sensor sensor, SensorEventListener listener)
public SubscriptionHandle subscribeToChildren(Entity parent, Sensor sensor, SensorEventListener listener)
public SubscriptionHandle subscribeToMembers(Group parent, Sensor sensor, SensorEventListener listener)
public boolean unsubscribe(Entity producer)
public boolean unsubscribe(Entity producer, SubscriptionHandle handle)
public void unsubscribeAll()
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.