Brooklyn

brooklyn.enricher.basic
[Java] Class AddingEnricher

java.lang.Object
  brooklyn.policy.basic.AbstractEntityAdjunct
      brooklyn.enricher.basic.AbstractEnricher
          brooklyn.enricher.basic.AddingEnricher
All Implemented Interfaces:
SensorEventListener

public class AddingEnricher
extends AbstractEnricher

enricher which adds multiple sensors on an entity to produce a new sensor


Field Summary
 
Fields inherited from class AbstractEntityAdjunct
_subscriptionTracker, adjunctType, configsInternal, entity, execution, id, leftoverProperties, name
 
Constructor Summary
AddingEnricher(Sensor[] sources, Sensor target)

 
Method Summary
static java.lang.Object cast(java.lang.Number value, java.lang.Class type)

void onEvent(SensorEvent event)

protected java.lang.Number recompute()

void setEntity(EntityLocal entity)

 
Methods inherited from class AbstractEnricher
getEnricherType
 
Methods inherited from class AbstractEntityAdjunct
check, configure, configure, destroy, doReconfigureConfig, getAdjunctType, getAllConfig, getAllSubscriptions, getConfig, getConfigMap, getId, getManagementContext, getName, getSubscriptionTracker, init, isDestroyed, isLegacyConstruction, isRunning, setConfig, setEntity, setId, setManagementContext, setName, subscribe, subscribeToChildren, subscribeToMembers, toString, unsubscribe, unsubscribe
 

Constructor Detail

AddingEnricher

public AddingEnricher(Sensor[] sources, Sensor target)


 
Method Detail

cast

@SuppressWarnings("unchecked")
public static java.lang.Object cast(java.lang.Number value, java.lang.Class type)


onEvent

@SuppressWarnings({ "rawtypes", "unchecked" })
@Override
public void onEvent(SensorEvent event)


recompute

protected java.lang.Number recompute()


setEntity

public void setEntity(EntityLocal entity)


 

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