Examples of terminate()


Examples of eu.mosaic_cloud.interoperability.implementations.zeromq.ZeroMqChannel.terminate()

    final KvClient client_2 = new KvClient ();
    Assert.assertEquals (Boolean.TRUE, Threading.awaitOrCatch (client_2.initialize (clientChannel, serverIdentity), KvTest.defaultPollTimeout));
    Assert.assertEquals ("1", Threading.awaitOrCatch (client_2.get ("a"), KvTest.defaultPollTimeout));
    Assert.assertEquals ("2", Threading.awaitOrCatch (client_2.get ("b"), KvTest.defaultPollTimeout));
    Assert.assertTrue (serverChannel.terminate (KvTest.defaultPollTimeout));
    Assert.assertTrue (clientChannel.terminate (KvTest.defaultPollTimeout));
    Assert.assertTrue (threading.destroy (KvTest.defaultPollTimeout));
    Assert.assertNull (exceptionsQueue.queue.poll ());
  }
 
  public static final long defaultPollTimeout = 1000;
View Full Code Here

Examples of eu.mosaic_cloud.interoperability.implementations.zeromq.ZeroMqChannelSocket.terminate()

      packet1.payload.flip ();
      Assert.assertEquals (packet1.header, packet3.header);
      Assert.assertEquals (packet1.payload, packet3.payload);
    }
    Assert.assertTrue (server.terminate (ZeroMqChannelTest.defaultPollTimeout));
    Assert.assertTrue (client.terminate (ZeroMqChannelTest.defaultPollTimeout));
    Assert.assertTrue (threading.destroy (ZeroMqChannelTest.defaultPollTimeout));
    Assert.assertNull (exceptionsQueue.queue.poll ());
  }
 
  public static final long defaultPollTimeout = 1000;
View Full Code Here

Examples of groovyx.gpars.dataflow.operator.DataflowProcessor.terminate()

        // would wait for another input and hang
        //  stream4.getVal();

        processor1.terminate();
        processor2.terminate();
    }

    /**
     * Waits for value to appear in stream.
     *
 
View Full Code Here

Examples of net.jini.discovery.DiscoveryManagement.terminate()

                    e.printStackTrace();
                }
                try {
                    logger.log(Level.FINE,
                             "tearDown - terminating discovery manager "+i);
                    discMgr.terminate();
                } catch(Exception e) {
                    e.printStackTrace();
                }
            }//end loop
        } catch(Exception e) {
View Full Code Here

Examples of net.jini.discovery.LookupDiscovery.terminate()

      si = null;
      System.out.println("TransactionManager found");
    } else {
      System.out.println("Can't find TransactionManager");
    }
    discovery.terminate();
    serviceDiscoveryManager.terminate();
  }

  public void startAdapter()
    throws RemoteException, TransactionException,
View Full Code Here

Examples of net.jini.discovery.LookupDiscovery.terminate()

      };
    }
    finally {
      // make sure to close the lookup threads
      if (lookupDiscovery != null)
        lookupDiscovery.terminate();
    }

    return proxy;
  }
View Full Code Here

Examples of net.jini.discovery.LookupDiscoveryManager.terminate()

        System.out.print("...");
      } else {
        throw
          new RMServerException("TransactionManager not found");
      }
      discovery.terminate();
      serviceDiscoveryManager.terminate();
      System.out.println(" ready.");
    } catch(Exception e) {
      throw new RMServerException(e.getMessage());
    }
View Full Code Here

Examples of net.jini.discovery.LookupLocatorDiscovery.terminate()

        mainListener.setLookupsToDiscover(initLookupsToStart);
        lld.addDiscoveryListener(mainListener);
        waitForDiscovery(mainListener);

        /* Terminate the lookup locator discovery utility */
        lld.terminate();
        logger.log(Level.FINE, "terminated lookup locator discovery");

        /* Since the lookup locator discovery utility was terminated, the
         * listener should receive no more events when new lookups are
         * started that have locators the utility is configured to
View Full Code Here

Examples of net.jini.lookup.JoinManager.terminate()

                /* If N join mgrs (N large), show only some debug info */
                boolean show = ( ((i%mod == 0)||(i == n-1)) ? true : false);
                try {
                    if(show) logger.log(Level.FINE,
                                  "tearDown - terminating join manager "+i);
                    joinMgr.terminate();
                } catch(Exception e) {
                    e.printStackTrace();
                }
                try {
                    if(show) logger.log(Level.FINE,
View Full Code Here

Examples of net.jini.lookup.LookupCache.terminate()

                try {
                    Thread.sleep(JiniDriverImpl.WAIT_TIME_MS);
                } catch (InterruptedException ex) {
                }

                lookupCache.terminate();

                Debug.printDebugInfo(10,
                    "LookupCache " + lookupCache + " terminated");
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.