logger.info(methodName,null,"Agent Sending <<STOP>> to Endpoint:"+((ManagedProcess) managedProcess).getSocketEndpoint());
// socket transport
super.
agent.
getEventDispatcherForRemoteProcess().
dispatch( new ProcessStopDuccEvent(new HashMap<DuccId, IDuccProcess>()),
((ManagedProcess) managedProcess).getSocketEndpoint(), msgHeader );
} else {
// jms transport
super.
agent.
getEventDispatcherForRemoteProcess().
dispatch(new ProcessStopDuccEvent(new HashMap<DuccId, IDuccProcess>()),msgHeader );
}
} catch( Exception ex) {
logger.error(methodName, ((ManagedProcess)super.managedProcess).getDuccId(), ex, new Object[]{});
} finally {
logger.info(methodName,((ManagedProcess)super.managedProcess).getDuccId(),"------------ Agent Dispatched STOP Request to Process with PID:"+((ManagedProcess) managedProcess).getDuccProcess().getPID()+" Process State: "+((ManagedProcess) managedProcess).getDuccProcess().getProcessState()+" Waiting for Process to Stop. Timout Value:"+maxTimeToWaitForProcessToStop+" millis");