| 
 | Brooklyn | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD | |||||||
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 | |
|---|---|
| MethodEffector | 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 | 
|---|
public MethodEffector RESIZE
| Method Detail | 
|---|
public java.lang.Integer getCurrentSize()
@Effector(description="Changes the size of the entity (e.g. the number of nodes in a cluster)") public java.lang.Integer resize(@EffectorParam(name="desiredSize", description="The new size of the cluster") java.lang.Integer desiredSize)
desiredSize -  the new size of the entity group.
Brooklyn Multi-Cloud Application Management Platform 
 brooklyncentral.github.com. Apache License. © 2012.