Package com.linkedin.helix.manager.file

Examples of com.linkedin.helix.manager.file.FileDataAccessor


  public static boolean verifyEmptyCurStateFile(String clusterName,
                                                String resourceName,
                                                Set<String> instanceNames,
                                                FilePropertyStore<ZNRecord> filePropertyStore)
  {
    DataAccessor accessor = new FileDataAccessor(filePropertyStore, clusterName);

    for (String instanceName : instanceNames)
    {
      String path =
          PropertyPathConfig.getPath(PropertyType.CURRENTSTATES,
                                     clusterName,
                                     instanceName);
      List<String> subPaths =
          accessor.getChildNames(PropertyType.CURRENTSTATES, instanceName);

      for (String previousSessionId : subPaths)
      {
        if (filePropertyStore.exists(path + "/" + previousSessionId + "/" + resourceName))
        {
          CurrentState previousCurrentState =
              accessor.getProperty(CurrentState.class,
                                   PropertyType.CURRENTSTATES,
                                   instanceName,
                                   previousSessionId,
                                   resourceName);
View Full Code Here

TOP

Related Classes of com.linkedin.helix.manager.file.FileDataAccessor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.