if (duccEvent.getProcessJmxUrl() != null
&& processEntry.getValue().getProcessJmxUrl() == null) {
processEntry.getValue().setProcessJmxUrl(duccEvent.getProcessJmxUrl());
}
ITimeWindow tw = processEntry.getValue().getTimeWindowInit();
if (tw.getEnd() == null ) {
if ( !duccEvent.getState().equals(ProcessState.Initializing)) {
// Mark the time the process ended initialization. It also
// covers a case when the process terminates while initializing
tw.setEnd(TimeStamp.getCurrentMillis());
if ( duccEvent.getState().equals(ProcessState.Running)) {
ITimeWindow twr = new TimeWindow();
String millis;
millis = TimeStamp.getCurrentMillis();
// Mark the time the process started running
processEntry.getValue().setTimeWindowRun(twr);
twr.setStart(millis);
}
}
}
ManagedProcess deployedProcess = null;
synchronized (monitor) {