public class EnsureContainers
extends java.lang.Object
EnsurePath but creates containers.| Constructor | Description |
|---|---|
EnsureContainers(CuratorFramework client,
java.lang.String path) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
ensure() |
The first time this method is called, all nodes in the
path will be created as containers if needed
|
void |
reset() |
Reset so that the next call to
ensure() will attempt to create containers |
public EnsureContainers(CuratorFramework client, java.lang.String path)
client - the clientpath - path to ensure is containerspublic void ensure()
throws java.lang.Exception
java.lang.Exception - errorspublic void reset()
ensure() will attempt to create containersCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.