/** * Find a node for use * @param role role * @return the instance, or null for none */ @VisibleForTesting public synchronized List<NodeInstance> findNodeForNewAAInstance(RoleStatus role) { // all nodes that are live and can host the role; no attempt to exclude ones // considered failing return nodemap.findAllNodesForRole(role.getKey(), role.getLabelExpression()); }
/** * Find a node for use * @param role role * @return the instance, or null for none */ @VisibleForTesting public synchronized List<NodeInstance> findNodeForNewAAInstance(RoleStatus role) { // all nodes that are live and can host the role; no attempt to exclude ones // considered failing return nodemap.findAllNodesForRole(role.getKey(), role.getLabelExpression()); }