public void setKey(String key) { if (isAlive()) { throw new IllegalStateException("ShutdownMonitor already started"); } this.key = key; }
public void setKey(String key) { if (isAlive()) { throw new IllegalStateException("ShutdownMonitor already started"); } this.key = key; }
public void setExitVm(boolean exitVm) { if (isAlive()) { throw new IllegalStateException("ShutdownMonitor already started"); } this.exitVm = exitVm; }
public void setExitVm(boolean exitVm) { if (isAlive()) { throw new IllegalStateException("ShutdownMonitor already started"); } this.exitVm = exitVm; }
public void setExitVm(boolean exitVm) { if (isAlive()) { throw new IllegalStateException("ShutdownMonitor already started"); } this.exitVm = exitVm; }
public void setKey(String key) { if (isAlive()) { throw new IllegalStateException("ShutdownMonitor already started"); } this.key = key; }
public void setPort(int port) { if (isAlive()) { throw new IllegalStateException("ShutdownMonitor already started"); } this.port = port; }
public void setPort(int port) { if (isAlive()) { throw new IllegalStateException("ShutdownMonitor already started"); } this.port = port; }
public void setPort(int port) { if (isAlive()) { throw new IllegalStateException("ShutdownMonitor already started"); } this.port = port; }
@Override public String toString() { return String.format("%s[port=%d,alive=%b]", this.getClass().getName(), getPort(), isAlive()); }
@Override public String toString() { return String.format("%s[port=%d,alive=%b]", this.getClass().getName(), getPort(), isAlive()); }
public void start() { if (isAlive()) { System.err.printf("ShutdownMonitor already started"); return; // cannot start it again } startListenSocket(); if (serverSocket == null) { return; } super.start(); }
public void start() { if (isAlive()) { System.err.printf("ShutdownMonitor already started"); return; // cannot start it again } startListenSocket(); if (serverSocket == null) { return; } super.start(); }
public void start() { if (isAlive()) { System.err.printf("ShutdownMonitor already started"); return; // cannot start it again } startListenSocket(); if (serverSocket == null) { return; } super.start(); }