log.addLogProperties(props);
log.logStart();
}
public static void workStatus(ReleaseSafeSync sync, Controller controller, WorkStatusType type, String object) {
Log log = new Log(LOG_NAME, Log.Type.STATUS);
String actionType = getWorkStatusString(type);
log.setAction(actionType);
log.setRole("AgentJ Worker Status");
LogProperties props = new LogProperties("Work Status");
props.put("Ns2 Node", controller.getLocalHost());
props.put("Thread Count", String.valueOf(controller.getThreadMonitor().getThreadCount()));
props.put("Worker Queue is ", String.valueOf(sync.getWorkersWaiting()) );
if (object!=null)
props.put("Target Object", object);
log.addLogProperties(props);
log.logStart();
}