Esempio n. 1
0
 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();
   }
 }
Esempio n. 2
0
 public void run() {
   Test jsh = new Test();
   jsh.signalCallback();
 }