Package com.vmware.bdd.spectypes.HadoopRole

Examples of com.vmware.bdd.spectypes.HadoopRole.RoleComparactor


         if (enumRoles.isEmpty()) {
            throw ClusterConfigException.NO_HADOOP_ROLE_SPECIFIED(nodeGroup.getName());
         }
         if (!enumRoles.contains(HadoopRole.CUSTOMIZED_ROLE)) {
            logger.info("Soring roles based on role dependency and relationship with HDFS");
            Collections.sort(roles, new RoleComparactor());
            nodeGroup.setRoles(roles);
         }
      }
   }
View Full Code Here


         return 1;
      }
   }

   private int findNodeGroupRoleMinIndex(List<String> ngRoles) {
      Collections.sort(ngRoles, new RoleComparactor());
      HadoopRole role = HadoopRole.fromString(ngRoles.get(0));
      return (null != role) ? role.ordinal() : -1;
   }
View Full Code Here

TOP

Related Classes of com.vmware.bdd.spectypes.HadoopRole.RoleComparactor

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.