public DistributedDataManagerImpl(ZkConnection conn,String basePath,long maxNodes){
  _zkClient=conn.curator();
  if (StringUtils.isEmpty(basePath) || !basePath.startsWith("/") || (basePath.length() < 2)|| basePath.endsWith("/")) {
    throw new IllegalArgumentException("basePath must be at least 2 characters long and start with (but not end with) /");
  }
  _basePath=basePath;
  _maxNodes=maxNodes;
  _log.info("{}: Manager constructed with node limit of {}",_basePath,_maxNodes);
  ensureCacheStarted();
}

public DistributedDataManagerImpl ( ZkConnection conn , String basePath , long maxNodes ) { _zkClient = conn . curator ( ) ; if ( StringUtils . isEmpty ( basePath ) || ! basePath . startsWith ( "/" ) || ( basePath . length ( ) < 2 ) || basePath . endsWith ( "/" ) ) { throw new IllegalArgumentException ( "basePath must be at least 2 characters long and start with (but not end with) /" ) ; } _basePath = basePath ; _maxNodes = maxNodes ; _log . info ( "{}: Manager constructed with node limit of {}" , _basePath , _maxNodes ) ; ensureCacheStarted ( ) ; }
construct a data manager for the specified path , using the specified maxnodes limit
