Brooklyn

brooklyn.location
[Java] Interface LocationResolver


public interface LocationResolver

Provides a way of creating location instances of a particular type.


Method Summary
java.lang.String getPrefix()

the prefix that this resolver will attend to

Location newLocationFromString(java.util.Map properties, java.lang.String spec)

returns a Location instance, e.g. a JcloudsLocation instance configured to provision in AWS eu-west-1; the properties map may contain lots of info some of which may be relevant to this location (eg containing credentials for many clouds, and resolver picks out the ones applicable here) -- commonly it is a BrooklynProperties instance, read from .brooklyn/brooklyn.properties

 

Method Detail

getPrefix

public java.lang.String getPrefix()
the prefix that this resolver will attend to


newLocationFromString

public Location newLocationFromString(@SuppressWarnings("rawtypes") java.util.Map properties, java.lang.String spec)
returns a Location instance, e.g. a JcloudsLocation instance configured to provision in AWS eu-west-1; the properties map may contain lots of info some of which may be relevant to this location (eg containing credentials for many clouds, and resolver picks out the ones applicable here) -- commonly it is a BrooklynProperties instance, read from .brooklyn/brooklyn.properties

throws java.util.NoSuchElementException if not found


 

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