Brooklyn

brooklyn.entity.trait
[Java] Interface Resizable


public interface Resizable

Defines an entity group that can be re-sized dynamically.

By invoking the resize(Integer) effector, the number of child nodes can be reduced (by shutting down some of them) or increased (by provisioning new entities.)


Field Summary
Effector RESIZE

 
Method Summary
java.lang.Integer getCurrentSize()

@return the current size of the group.

java.lang.Integer resize(java.lang.Integer desiredSize)

Grow or shrink this entity to the desired size.

 

Field Detail

RESIZE

public Effector RESIZE


 
Method Detail

getCurrentSize

public java.lang.Integer getCurrentSize()
Returns:
the current size of the group.


resize

@Description("Changes the size of the entity (e.g. the number of nodes in a cluster)")
public java.lang.Integer resize(@NamedParameter("desiredSize") @Description("The new size of the cluster") java.lang.Integer desiredSize)
Grow or shrink this entity to the desired size.
Parameters:
desiredSize - the new size of the entity group.
Returns:
the new size of the group.


 

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