Package eu.mosaic_cloud.tools.threading.implementations.basic

Examples of eu.mosaic_cloud.tools.threading.implementations.basic.BasicThreadingContext.destroy()


    }
    pipe.sink ().close ();
    Assert.assertTrue (channel.destroy (BasicChannelTest.defaultPollTimeout));
    Assert.assertTrue (channelCallbacksIsolate.destroy ().await (BasicChannelTest.defaultPollTimeout));
    Assert.assertTrue (reactor.destroy (BasicChannelTest.defaultPollTimeout));
    Assert.assertTrue (threading.destroy (BasicChannelTest.defaultPollTimeout));
    Assert.assertNull (exceptionsQueue.queue.poll ());
  }
 
  public static final long defaultPollTimeout = 1000;
  public static final int defaultTries = 16;
View Full Code Here


    Assert.assertTrue (component.await (BasicComponentTest.defaultPollTimeout * 10));
    Assert.assertTrue (component.destroy (BasicComponentTest.defaultPollTimeout));
    Assert.assertTrue (channel.destroy (BasicComponentTest.defaultPollTimeout));
    Assert.assertTrue (componentCallbacksIsolate.destroy ().await (BasicComponentTest.defaultPollTimeout));
    Assert.assertTrue (reactor.destroy (BasicComponentTest.defaultPollTimeout));
    Assert.assertTrue (threading.destroy (BasicComponentTest.defaultPollTimeout));
    Assert.assertNull (exceptionsQueue.queue.poll ());
  }
 
  public static final long defaultPollTimeout = 1000;
  public static final int defaultTries = 16;
View Full Code Here

    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;
  public static final String defaultServerEndpoint = "inproc://e3b24530-215f-4977-b24a-b04f1768ead6";
View Full Code Here

    Assert.assertTrue (serverChannel.destroy (AbacusTest.defaultPollTimeout));
    Assert.assertTrue (clientChannel.destroy (AbacusTest.defaultPollTimeout));
    Assert.assertTrue (serverComponentCallbacksIsolate.destroy ().await (AbacusTest.defaultPollTimeout));
    Assert.assertTrue (clientComponentCallbacksIsolate.destroy ().await (AbacusTest.defaultPollTimeout));
    Assert.assertTrue (reactor.destroy (AbacusTest.defaultPollTimeout));
    Assert.assertTrue (threading.destroy (AbacusTest.defaultPollTimeout));
    Assert.assertNull (exceptionsQueue.queue.poll ());
  }
 
  public static final long defaultPollTimeout = 1000;
  public static final int defaultTries = 16;
View Full Code Here

    final BaseExceptionTracer exceptions = AbortingExceptionTracer.defaultInstance;
    final ClassLoader classLoader = ClassLoader.getSystemClassLoader ();
    final BasicThreadingContext threading = BasicThreadingContext.create (BasicComponentHarnessMain.class, exceptions, exceptions.catcher, classLoader);
    threading.initialize ();
    BasicComponentLocalLauncher.launch (controllerBaseUrl, channelAddress, componentCallbacks, componentConfiguration, classLoader, threading, exceptions);
    threading.destroy ();
  }
 
  public static final void launch (final URL controllerBaseUrl, final InetSocketAddress channelAddress, final String componentCallbacks, final List<String> componentConfiguration, final ClassLoader classLoader, final ThreadingContext threading, final ExceptionTracer exceptions)
      throws Throwable
  {
View Full Code Here

    final BaseExceptionTracer exceptions = AbortingExceptionTracer.defaultInstance;
    final ClassLoader classLoader = ClassLoader.getSystemClassLoader ();
    final BasicThreadingContext threading = BasicThreadingContext.create (BasicComponentHarnessMain.class, exceptions, exceptions.catcher, classLoader);
    threading.initialize ();
    BasicComponentLauncherMain.main (arguments, classLoader, threading, exceptions);
    threading.destroy ();
  }
 
  public static final void main (final String[] arguments, final ClassLoader classLoader, final ThreadingContext threading, final ExceptionTracer exceptions)
      throws Throwable
  {
View Full Code Here

      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;
  public static final String defaultServerEndpoint = "inproc://fd2d7ca5-355b-4a6a-b12a-21b034b29fe3";
View Full Code Here

      for (final QueueingQueueCallbackHandler<Integer> handler : handlers)
        Assert.assertNull (handler.queue.poll ());
    }
    Assert.assertTrue (isolate.destroy ().await (BasicCallbackReactorTest.defaultPollTimeout));
    Assert.assertTrue (reactor.destroy (BasicCallbackReactorTest.defaultPollTimeout));
    Assert.assertTrue (threading.destroy (BasicCallbackReactorTest.defaultPollTimeout));
    Assert.assertNull (exceptionsQueue.queue.poll ());
  }
 
  public static final int defaultCallCount = 16;
  public static final long defaultPollTimeout = 1000;
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.