Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
Reviewed
Description
getLeafQueue(String name, boolean create, boolean recomputeSteadyShares) and
getLeafQueue(String name, boolean create, boolean recomputeSteadyShares), setChildResourceLimits() can be declared as private.
ensureRootPrefix() should be static.
The static LOG field should be private.
The log in
if (!parent.getPolicy().isChildPolicyAllowed(childPolicy))
{ LOG.error("Can't create queue '" + queueName + "'."); return null; }can be improved by the specific reason, ie. the child scheduling policy is not allowed by that of its parent.