Brooklyn

brooklyn.entity.rebind.dto
[Java] Class MementosGenerators

java.lang.Object
  brooklyn.entity.rebind.dto.MementosGenerators

public class MementosGenerators

Method Summary
static BrooklynMemento newBrooklynMemento(ManagementContext managementContext)

Walks the contents of a ManagementContext, to create a corresponding memento.

static EntityMemento newEntityMemento(Entity entity)

Inspects an entity to create a corresponding memento.

static Builder newEntityMementoBuilder(Entity entity)

static LocationMemento newLocationMemento(Location location)

Given a location, extracts its state for serialization.

static Builder newLocationMementoBuilder(Location location)

static PolicyMemento newPolicyMemento(Policy policy)

Given a policy, extracts its state for serialization.

static Builder newPolicyMementoBuilder(Policy policy)

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

Method Detail

newBrooklynMemento

public static BrooklynMemento newBrooklynMemento(ManagementContext managementContext)
Walks the contents of a ManagementContext, to create a corresponding memento.


newEntityMemento

public static EntityMemento newEntityMemento(Entity entity)
Inspects an entity to create a corresponding memento.


newEntityMementoBuilder

public static Builder newEntityMementoBuilder(Entity entity)


newLocationMemento

public static LocationMemento newLocationMemento(Location location)
Given a location, extracts its state for serialization. For bits of state that are references to other locations, these are treated in a special way: the location reference is replaced by the location id. TODO When we have a cleaner separation of constructor/config for entities and locations, then we will remove this code!


newLocationMementoBuilder

public static Builder newLocationMementoBuilder(Location location)


newPolicyMemento

public static PolicyMemento newPolicyMemento(Policy policy)
Given a policy, extracts its state for serialization.


newPolicyMementoBuilder

public static Builder newPolicyMementoBuilder(Policy policy)


 

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