To finish the trio -- Stop-node-agent also ignores the timeout:
public void stopNodeAgentForcibly(int timeout) throws AgentException
{
try {
*boolean stopped = false;/*/stopInstanceWithinTime(timeout);
* if (!stopped)* {
/ System.out.println("Killing Forcibly...");/
killRelatedProcesses();
}
} catch (Exception e) {
throw new AgentException(e);
}
}
Jane Young wrote:
> Hi Byron,
>
> Thanks for this information.
> Do you know if "eeInstancesManager.stopInstanceWithinTime(timeout);"
> is working?
>
> Jane
>
>
> BN wrote:
>
>> ProcessInstanceInternal is the eventual place where NA stops an
>> instance.
>> As you can see in the code below -- it doesn't use a timeout but
>> instead immediately kills it
>>
>> -- isTimeBound is true for force-kill, false for normal stop-instance
>>
>>
>> if (isTimeBound) {
>> *boolean stopped = false*;
>> //eeInstancesManager.stopInstanceWithinTime(timeout);
>> * if (!stopped)*
>> eeInstancesManager.killRelatedProcesses();
>> } else {
>> eeInstancesManager.stopInstance();
>> }
>>
>
>
>