Brooklyn

brooklyn.entity.basic
[Java] Class EntityDynamicType

java.lang.Object
  brooklyn.entity.basic.EntityDynamicType

public class EntityDynamicType

Field Summary
protected static Logger LOG

 
Constructor Summary
EntityDynamicType(AbstractEntity entity)

 
Method Summary
void addSensor(Sensor newSensor)

Adds the given Sensor to this entity.

void addSensorIfAbsent(Sensor newSensor)

void addSensors(java.lang.Iterable newSensors)

Adds the given Sensors to this entity.

ConfigKey getConfigKey(java.lang.String keyName)

ConfigKeys available on this entity.

java.util.Map getConfigKeys()

ConfigKeys available on this entity.

Effector getEffector(java.lang.String name)

@return the effector with the given name, or null if not found

java.util.Map getEffectors()

Effectors available on this entity.

Sensor getSensor(java.lang.String sensorName)

Convenience for finding named sensor.

java.util.Map getSensors()

Sensors available on this entity.

EntityType getSnapshot()

Sensor removeSensor(java.lang.String sensorName)

Removes the named Sensor from this entity.

boolean removeSensor(Sensor sensor)

Removes the named Sensor from this entity.

 
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

LOG

protected static final Logger LOG


 
Constructor Detail

EntityDynamicType

public EntityDynamicType(AbstractEntity entity)


 
Method Detail

addSensor

public void addSensor(Sensor newSensor)
Adds the given Sensor to this entity.


addSensorIfAbsent

public void addSensorIfAbsent(Sensor newSensor)


addSensors

public void addSensors(java.lang.Iterable newSensors)
Adds the given Sensors to this entity.


getConfigKey

public ConfigKey getConfigKey(java.lang.String keyName)
ConfigKeys available on this entity.


getConfigKeys

public java.util.Map getConfigKeys()
ConfigKeys available on this entity.


getEffector

public Effector getEffector(java.lang.String name)
Returns:
the effector with the given name, or null if not found


getEffectors

public java.util.Map getEffectors()
Effectors available on this entity. NB no work has been done supporting changing this after initialization, but the idea of these so-called "dynamic effectors" has been discussed and it might be supported in future...


getSensor

public Sensor getSensor(java.lang.String sensorName)
Convenience for finding named sensor.


getSensors

public java.util.Map getSensors()
Sensors available on this entity.


getSnapshot

public EntityType getSnapshot()


removeSensor

public Sensor removeSensor(java.lang.String sensorName)
Removes the named Sensor from this entity.


removeSensor

public boolean removeSensor(Sensor sensor)
Removes the named Sensor from this entity.


 

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