brooklyn.entity.drivers
Interface EntityDriver


public interface EntityDriver

The EntityDriver provides an abstraction between the Entity and the environment (the Location it is running in, so that an entity is not tightly coupled to a specific Location. E.g. you could have a TomcatEntity that uses a TomcatDriver (an interface) and you could have different driver implementations like the TomcatSshDriver/TomcatWindowsDriver and if in the future support for Puppet needs to be added, a TomcatPuppetDriver could be added.

See Also:
DriverDependentEntity, EntityDriverManager

Method Summary
 EntityLocal getEntity()
          The entity instance that this is a driver for.
 Location getLocation()
          The location the entity is running in.
 

Method Detail

getEntity

@Beta
EntityLocal getEntity()
The entity instance that this is a driver for. FIXME The signature of this will change to return Entity instead of EntityLocal. This is a temporary workaround for groovy not supporting covariant return types, see http://jira.codehaus.org/browse/GROOVY-5418. It is fixed in groovy 2.0.4 so we will need to upgrade from 1.8.6 first.


getLocation

Location getLocation()
The location the entity is running in.



Copyright © 2013. All Rights Reserved.