public void setAcl ( final String path , final List < ACL > acl ) throws ZkException { if ( path == null ) { throw new NullPointerException ( "Missing value for path" ) ; } if ( acl == null || acl . size ( ) == 0 ) { throw new NullPointerException ( "Missing value for ACL" ) ; } if ( ! exists ( path ) ) { throw new RuntimeException ( "trying to set acls on non existing node " + path ) ; } retryUntilConnected ( new Callable < Void > ( ) { @ Override public Void call ( ) throws Exception { Stat stat = new Stat ( ) ; _connection . readData ( path , stat , false ) ; _connection . setAcl ( path , acl , stat . getAversion ( ) ) ; return null ; } } ) ; }
Sets the acl on path