Brooklyn

brooklyn.entity
[Java] Interface EntityType


public interface EntityType
extends java.io.Serializable

Gives type information for an Entity. It is an immutable snapshot. It reflects a given entity at the time the snapshot was created: if sensors were added or removed on-the-fly then those changes will be included in subsequent snapshots. Therefore instances of a given class of entity could have different EntityTypes.


Method Summary
ConfigKey getConfigKey(java.lang.String name)

The ConfigKey with the given name, or null if not found.

java.util.Set getConfigKeys()

ConfigKeys available on this entity.

java.util.Set getEffectors()

Effectors available on this entity.

java.lang.String getName()

The type name of this entity (normally the fully qualified class name).

Sensor getSensor(java.lang.String name)

The Sensor with the given name, or null if not found.

java.util.Set getSensors()

Sensors available on this entity.

boolean hasSensor(java.lang.String name)

@return True if has the sensor with the given name; false otherwise.

 
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()
 

Method Detail

getConfigKey

public ConfigKey getConfigKey(java.lang.String name)
The ConfigKey with the given name, or null if not found.


getConfigKeys

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


getEffectors

public java.util.Set getEffectors()
Effectors available on this entity.


getName

public java.lang.String getName()
The type name of this entity (normally the fully qualified class name).


getSensor

public Sensor getSensor(java.lang.String name)
The Sensor with the given name, or null if not found.


getSensors

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


hasSensor

public boolean hasSensor(java.lang.String name)
Returns:
True if has the sensor with the given name; false otherwise.


 

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