*/
public OrchestratorAbbreviatedStateDuccEvent getAbbreviatedState() {
String methodName = "getAbbreviatedState";
logger.trace(methodName, null, messages.fetch("enter"));
OrchestratorAbbreviatedStateDuccEvent orchestratorAbbreviatedStateDuccEvent = new OrchestratorAbbreviatedStateDuccEvent();
try {
long t0 = System.currentTimeMillis();
DuccWorkMap workMapCopy = workMap.deepCopy();
long t1 = System.currentTimeMillis();
long elapsed = t1 - t0;
if(elapsed > Constants.SYNC_LIMIT) {
logger.debug(methodName, null, "elapsed msecs: "+elapsed);
}
int activeJobs = workMapCopy.getJobCount();
int activeReservations = workMapCopy.getReservationCount();
int activeServices = workMapCopy.getServiceCount();
logger.debug(methodName, null, messages.fetch("publishing state")+" "+
messages.fetchLabel("active job count")+activeJobs
+" "+
messages.fetchLabel("active reservation count")+activeReservations
+" "+
messages.fetchLabel("active service count")+activeServices
);
int jobDriverNodeCount = hostManager.nodes();
workMapCopy.setJobDriverNodeCount(jobDriverNodeCount);
long t2 = System.currentTimeMillis();
orchestratorAbbreviatedStateDuccEvent.setWorkMap(workMapCopy);
long t3 = System.currentTimeMillis();
long elapsed2 = t3 - t2;
if(elapsed > Constants.SYNC_LIMIT) {
logger.debug(methodName, null, "elapsed msecs: "+elapsed2);
}