Package com.attivio.curatorshim
Class CuratorFrameworkShim
- java.lang.Object
-
- com.attivio.curatorshim.CuratorFrameworkShim
-
public class CuratorFrameworkShim extends java.lang.Object
The shim implementation ofCuratorFramework
. Wraps an existing implementation and then re-wraps the builders and such that are returned by it. Currently has incomplete coverage of wrapped items. Code which must have runtime compatibility with either 4.0.0 or 2.x versions Curator should use this shim.
-
-
Constructor Summary
Constructors Constructor Description CuratorFrameworkShim(org.apache.curator.framework.CuratorFramework curator)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExistsBuilder
checkExists()
CreateBuilderShim
create()
void
createContainers(java.lang.String path)
void
createSafely(java.lang.String path)
static CuratorFrameworkShim
getAieRootCurator()
org.apache.curator.framework.api.GetDataBuilder
getData()
static CuratorFrameworkShim
getProjectCurator()
org.apache.curator.framework.api.SetDataBuilder
setData()
-
-
-
Method Detail
-
getAieRootCurator
public static CuratorFrameworkShim getAieRootCurator()
-
getProjectCurator
public static CuratorFrameworkShim getProjectCurator()
-
create
public CreateBuilderShim create()
-
createContainers
public void createContainers(java.lang.String path) throws java.lang.Exception
- Throws:
java.lang.Exception
-
checkExists
public ExistsBuilder checkExists()
-
getData
public org.apache.curator.framework.api.GetDataBuilder getData()
-
setData
public org.apache.curator.framework.api.SetDataBuilder setData()
-
createSafely
public void createSafely(java.lang.String path) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-