brooklyn.entity
Interface EntityType

All Superinterfaces:
Serializable

public interface EntityType
extends 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
 brooklyn.config.ConfigKey<?> getConfigKey(String name)
          The ConfigKey with the given name, or null if not found.
 Set<brooklyn.config.ConfigKey<?>> getConfigKeys()
          ConfigKeys available on this entity.
 Effector<?> getEffector(String name, Class<?>... parameterTypes)
           
 Set<Effector<?>> getEffectors()
          Effectors available on this entity.
 String getName()
          The type name of this entity (normally the fully qualified class name).
 Sensor<?> getSensor(String name)
          The Sensor with the given name, or null if not found.
 Set<Sensor<?>> getSensors()
          Sensors available on this entity.
 String getSimpleName()
          The simple type name of this entity (normally the unqualified class name).
 boolean hasSensor(String name)
           
 

Method Detail

getName

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


getSimpleName

String getSimpleName()
The simple type name of this entity (normally the unqualified class name).


getConfigKeys

Set<brooklyn.config.ConfigKey<?>> getConfigKeys()
ConfigKeys available on this entity.


getSensors

Set<Sensor<?>> getSensors()
Sensors available on this entity.


getEffectors

Set<Effector<?>> getEffectors()
Effectors available on this entity.


getEffector

Effector<?> getEffector(String name,
                        Class<?>... parameterTypes)
Returns:
the matching effector on this entity
Throws:
NoSuchElementException - If there is no exact match for this signature

getConfigKey

brooklyn.config.ConfigKey<?> getConfigKey(String name)
The ConfigKey with the given name, or null if not found.


getSensor

Sensor<?> getSensor(String name)
The Sensor with the given name, or null if not found.


hasSensor

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


Copyright © 2013. All Rights Reserved.