Implement wait for termianation
Dieser Commit ist enthalten in:
Ursprung
bd7e4a5e53
Commit
e120bb1ce1
@ -130,6 +130,16 @@ public class Subserver implements Runnable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void waitForTermination(){
|
||||||
|
try {
|
||||||
|
if(!process.waitFor(5, TimeUnit.MINUTES))
|
||||||
|
process.destroy();
|
||||||
|
}catch(InterruptedException e){
|
||||||
|
logger.log(Level.SEVERE, "Subserver stop interrupted!", e);
|
||||||
|
Thread.currentThread().interrupt();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static void shutdown(){
|
static void shutdown(){
|
||||||
while (!serverList.isEmpty()) {
|
while (!serverList.isEmpty()) {
|
||||||
Subserver server = serverList.get(0);
|
Subserver server = serverList.get(0);
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren