jdk/test/java/rmi/activation/Activatable/inactiveGroup/InactiveGroup.java
changeset 22085 752c27397429
parent 14778 5947768d173d
child 23010 6dadb192ad81
equal deleted inserted replaced
22084:fd3c6345eaef 22085:752c27397429
   143             /*
   143             /*
   144              * Ping the unicast object a few times to make sure that the
   144              * Ping the unicast object a few times to make sure that the
   145              * activation group's process hasn't gone away.
   145              * activation group's process hasn't gone away.
   146              */
   146              */
   147             System.err.println("Ping unicast object for existence");
   147             System.err.println("Ping unicast object for existence");
   148             for (int i = 0; i < 10; i++) {
   148             // set timeout 5 seconds
       
   149             final long stopTime = System.currentTimeMillis() + 5000;
       
   150             while (System.currentTimeMillis() < stopTime) {
   149                 unicastObj.ping();
   151                 unicastObj.ping();
   150                 Thread.sleep(500);
   152                 Thread.sleep(500);
   151             }
   153             }
   152 
   154 
   153             /*
   155             /*