Brooklyn

brooklyn.location.basic
[Java] Interface LocationInternal

brooklyn.location.Location
  brooklyn.entity.rebind.Rebindable
      brooklyn.location.basic.LocationInternal
          brooklyn.entity.trait.Identifiable
All Superinterfaces:
Location, Rebindable, Identifiable

public interface LocationInternal
extends Location

Information about locations private to Brooklyn.


Method Summary
void addExtension(java.lang.Class extensionType, java.lang.Object extension)

Registers the given extension for the given type.

java.util.Map toMetadataRecord()

Get a record of the metadata of this location.

 
Methods inherited from interface Location
containsLocation, findLocationProperty, getAllConfig, getAllConfig, getChildLocations, getChildren, getConfig, getDisplayName, getExtension, getId, getLocationProperty, getName, getParent, getParentLocation, getRebindSupport, hasConfig, hasConfig, hasExtension, hasLocationProperty, setParent, setParentLocation, toVerboseString
 
Methods inherited from interface Rebindable
getRebindSupport
 
Methods inherited from interface Identifiable
getId
 

Method Detail

addExtension

public void addExtension(java.lang.Class extensionType, java.lang.Object extension)
Registers the given extension for the given type. If an extension already existed for this type, then this will override it.
throws:
NullPointerException if extensionType or extension are null
throws:
IllegalArgumentException if extension does not implement extensionType


toMetadataRecord

public java.util.Map toMetadataRecord()
Get a record of the metadata of this location.

Metadata records are used to record an audit trail of events relating to location usage (for billing purposes, for example). Implementations (and subclasses) should override this method to return information useful for this purpose.

Returns:


 

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