HPCC-12311 Change code based on review

The code changes are made to meet the review comments
except for the comment about new class CJobQueueConst.

Signed-off-by: wangkx <kevin.wang@lexisnexis.com>