Brooklyn

brooklyn.location.basic
[Java] Class DefinedLocationByIdResolver

java.lang.Object
  brooklyn.location.basic.DefinedLocationByIdResolver
All Implemented Interfaces:
RegistryLocationResolver

public class DefinedLocationByIdResolver

looks up based on ID in DefinedLocations map


Field Summary
static java.lang.String ID

static Logger log

 
Method Summary
boolean accepts(java.lang.String spec, LocationRegistry registry)

accepts anything starting id:xxx or just xxx where xxx is a defined location ID

java.lang.String getPrefix()

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

Location newLocationFromString(java.util.Map locationFlags, java.lang.String spec, LocationRegistry registry)

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

Field Detail

ID

public static final java.lang.String ID


log

public static final Logger log


 
Method Detail

accepts

@Override
public boolean accepts(java.lang.String spec, LocationRegistry registry)
accepts anything starting id:xxx or just xxx where xxx is a defined location ID


getPrefix

@Override
public java.lang.String getPrefix()


newLocationFromString

@SuppressWarnings("rawtypes")
@Override
public Location newLocationFromString(java.util.Map properties, java.lang.String spec)


newLocationFromString

@SuppressWarnings({ "rawtypes", "unchecked" })
public Location newLocationFromString(java.util.Map locationFlags, java.lang.String spec, LocationRegistry registry)


 

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