430431432433434435436437438439440441
if (instance.pid == 0) { throw new IllegalStateException("Instance already stopped"); } cleanShutdown(instance); if (instance.pid > 0) { Process process = ProcessBuilderFactory.newInstance().newBuilder().attach(instance.pid); process.destroy(); } return null; } }); }
584585586587588589590591592593594
}); } private void checkPid(InstanceState instance) throws IOException { if (instance.pid != 0) { Process process = ProcessBuilderFactory.newInstance().newBuilder().attach(instance.pid); if (!process.isRunning()) { instance.pid = 0; } } }
483484485486487488489490491492493494
if (instance.pid == 0) { throw new IllegalStateException("Instance already stopped"); } cleanShutdown(instance); if (instance.pid > 0) { Process process = new ProcessBuilderFactoryImpl().newBuilder().attach(instance.pid); process.destroy(); } return null; } }); }
638639640641642643644645646647648
}); } private void checkPid(InstanceState instance) throws IOException { if (instance.pid != 0) { Process process = new ProcessBuilderFactoryImpl().newBuilder().attach(instance.pid); if (!process.isRunning()) { instance.pid = 0; } } }
474475476477478479480481482483484485
if (instance.pid == 0) { throw new IllegalStateException("Instance already stopped"); } cleanShutdown(instance); if (instance.pid > 0) { Process process = ProcessBuilderFactory.newInstance().newBuilder().attach(instance.pid); process.destroy(); } return null; } }, true); }
628629630631632633634635636637638
}, true); } private void checkPid(InstanceState instance) throws IOException { if (instance.pid != 0) { Process process = ProcessBuilderFactory.newInstance().newBuilder().attach(instance.pid); if (!process.isRunning()) { instance.pid = 0; } } }
466467468469470471472473474475476477
621622623624625626627628629630631