Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   *
   *  Copyright 2011 Netflix, Inc.
   *
   *     Licensed under the Apache License, Version 2.0 (the "License");
   *     you may not use this file except in compliance with the License.
   *     You may obtain a copy of the License at
   *
   *         http://www.apache.org/licenses/LICENSE-2.0
  *
  *     Unless required by applicable law or agreed to in writing, software
  *     distributed under the License is distributed on an "AS IS" BASIS,
  *     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  *     See the License for the specific language governing permissions and
  *     limitations under the License.
  *
  */
 package com.netflix.curator.framework;
 
Zookeeper framework-style client
 
 public interface CuratorFramework extends Closeable
 {
    
Start the client. Most mutator methods will not work until the client is started
 
     public void     start();

    
Stop the client
 
     public void     close();

    
Return true if the client is started, not closed, etc.

Returns:
true/false
 
     public boolean  isStarted();

    
Start a create builder

Returns:
builder object
 
     public CreateBuilder create();

    
Start a delete builder

Returns:
builder object
 
     public DeleteBuilder delete();

    
Start an exists builder

Returns:
builder object
 
     public ExistsBuilder checkExists();

    
Start a get data builder

Returns:
builder object
 
     public GetDataBuilder getData();

    
Start a set data builder

Returns:
builder object
 
     public SetDataBuilder setData();

    
Start a get children builder

Returns:
builder object
 
     public GetChildrenBuilder getChildren();

    
Start a get ACL builder

Returns:
builder object
 
     public GetACLBuilder getACL();

    
Start a set ACL builder

Returns:
builder object
    public SetACLBuilder setACL();

    
Start a transaction builder

Returns:
builder object
    public CuratorTransaction inTransaction();

        
Perform a sync on the given path - syncs are always in the background

Parameters:
path the path
backgroundContextObject optional context
    public void     sync(String pathObject backgroundContextObject);

    
Returns the listenable interface for the Connect State

Returns:
listenable
Returns the listenable interface for events

Returns:
listenable
    public Listenable<CuratorListener>         getCuratorListenable();

    
Returns the listenable interface for unhandled errors

Returns:
listenable
Returns a facade of the current instance that does _not_ automatically pre-pend the namespace to all paths

Returns:
facade
    public CuratorFramework nonNamespaceView();

    
Return the managed zookeeper client

Returns:
client
    public CuratorZookeeperClient getZookeeperClient();

    
Allocates an ensure path instance that is namespace aware

Parameters:
path path to ensure
Returns:
new EnsurePath instance
    public EnsurePath    newNamespaceAwareEnsurePath(String path);
New to GrepCode? Check out our FAQ X