/** * Set the desired instance count for a role * * @param role role * @param count number of instances of a role desired */ public void setDesiredInstanceCount(String role, int count) { setRoleOpt(role, RoleKeys.ROLE_INSTANCES, count); }
/** * Set the actual instance count * * @param role role * @param val value */ public void setActualInstanceCount(String role, int val) { setRoleOpt(role, RoleKeys.ROLE_ACTUAL_INSTANCES, val); }
/** * Set an integer role option, creating the role if necessary * * @param role role name * @param option option name * @param val integer value */ public void setRoleOpt(String role, String option, int val) { setRoleOpt(role, option, Integer.toString(val)); }