public class ZKRollbackSet extends Object
| Modifier | Constructor and Description |
|---|---|
|
ZKRollbackSet() |
|
ZKRollbackSet(File policyConfigFile) |
protected |
ZKRollbackSet(List<ZKRollbackElement> elements) |
| Modifier and Type | Method and Description |
|---|---|
void |
enforceRollback(ZKClient zk)
Rollback to pre enforce state.
|
void |
exportToYAML()
Export RollbackSet to YAML file.
|
List<ZKRollbackElement> |
getElements() |
void |
setElements(List<ZKRollbackElement> elements) |
void |
setOutputFile(File rollbackStateFile) |
public ZKRollbackSet(File policyConfigFile) throws com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, IOException
com.fasterxml.jackson.core.JsonParseExceptioncom.fasterxml.jackson.databind.JsonMappingExceptionIOExceptionpublic ZKRollbackSet()
protected ZKRollbackSet(List<ZKRollbackElement> elements)
public void setOutputFile(File rollbackStateFile)
public void exportToYAML()
public void enforceRollback(ZKClient zk) throws org.apache.zookeeper.KeeperException, InterruptedException
zk - ZooKeeper client for setACLorg.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic List<ZKRollbackElement> getElements()
public void setElements(List<ZKRollbackElement> elements)
Copyright © 2020. All rights reserved.