private void startServer() { Runtime.getRuntime().addShutdownHook(new End()); while (true) { try { Thread.sleep(1000); } catch (InterruptedException e) { // TODO Auto-generated catch block mmmm e.printStackTrace(); } signalCallback(); } }
public void run() { Test jsh = new Test(); jsh.signalCallback(); }