Brooklyn

brooklyn.entity.drivers
[Java] 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.

Authors:
Peter Veentjer.
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
public 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

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


 

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