public class ClusterLayoutTracker extends Object
ClusterLayout
.Constructor and Description |
---|
ClusterLayoutTracker(ClusterLayout startingLayout)
Create a layout change tracker given some starting layout.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addChangeIfValid(ClusterLayoutChange change)
Adds a change to the layout if the change can be applied to the current layout, returning whether or not
the change was added.
|
Queue<ClusterLayoutChange> |
getChanges()
Get the changes that were applied to the starting cluster layout.
|
ClusterLayout |
getCurrentLayout()
Get the current layout of the cluster.
|
void |
removeLastChange()
Remove the last change performed on the cluster layout.
|
public ClusterLayoutTracker(ClusterLayout startingLayout)
startingLayout
- starting layout of the cluster.public boolean addChangeIfValid(ClusterLayoutChange change)
change
- Change to add, assuming it can be applied to the current layout.public void removeLastChange()
public ClusterLayout getCurrentLayout()
public Queue<ClusterLayoutChange> getChanges()
Copyright © 2013-2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.