Java Code Examples for org.apache.curator.utils.ZKPaths#getContainerCreateMode()

The following examples show how to use org.apache.curator.utils.ZKPaths#getContainerCreateMode() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TestFramework.java    From xian with Apache License 2.0 5 votes vote down vote up
private boolean checkForContainers()
{
    if ( ZKPaths.getContainerCreateMode() == CreateMode.PERSISTENT )
    {
        System.out.println("Not using CreateMode.CONTAINER enabled version of ZooKeeper");
        return false;
    }
    return true;
}
 
Example 2
Source File: TestFramework.java    From curator with Apache License 2.0 5 votes vote down vote up
private boolean checkForContainers()
{
    if ( ZKPaths.getContainerCreateMode() == CreateMode.PERSISTENT )
    {
        System.out.println("Not using CreateMode.CONTAINER enabled version of ZooKeeper");
        return false;
    }
    return true;
}
 
Example 3
Source File: TestFramework.java    From curator with Apache License 2.0 5 votes vote down vote up
private boolean checkForContainers()
{
    if ( ZKPaths.getContainerCreateMode() == CreateMode.PERSISTENT )
    {
        System.out.println("Not using CreateMode.CONTAINER enabled version of ZooKeeper");
        return false;
    }
    return true;
}