Package com.linkedin.d2.discovery.event.PropertyEventThread

Examples of com.linkedin.d2.discovery.event.PropertyEventThread.PropertyEventShutdownCallback


  {
    PropertyStore<String> store = getStore();

    final CountDownLatch latch = new CountDownLatch(1);

    store.shutdown(new PropertyEventShutdownCallback()
    {
      @Override
      public void done()
      {
        latch.countDown();
View Full Code Here


  @Override
  public void shutdown(final Callback<None> callback)
  {
    info(_log, "shutting down dynamic client");

    _balancer.shutdown(new PropertyEventShutdownCallback()
    {
      @Override
      public void done()
      {
        info(_log, "dynamic client shutdown complete");
View Full Code Here

        assertTrue(expectedUris.contains(client.getUri()));
        assertEquals(client.getUri().getScheme(), "http");
      }

      final CountDownLatch latch = new CountDownLatch(1);
      PropertyEventShutdownCallback callback = new PropertyEventShutdownCallback()
      {
        @Override
        public void done()
        {
          latch.countDown();
View Full Code Here

        }
        catch(ServiceUnavailableException e) {}
      }

      final CountDownLatch latch = new CountDownLatch(1);
      PropertyEventShutdownCallback callback = new PropertyEventShutdownCallback()
      {
        @Override
        public void done()
        {
          latch.countDown();
View Full Code Here

    }

    try
    {
      final CountDownLatch latch = new CountDownLatch(1);
      PropertyEventShutdownCallback callback = new PropertyEventShutdownCallback()
      {
        @Override
        public void done()
        {
          latch.countDown();
View Full Code Here

    }

    try
    {
      final CountDownLatch latch = new CountDownLatch(1);
      PropertyEventShutdownCallback callback = new PropertyEventShutdownCallback()
      {
        @Override
        public void done()
        {
          latch.countDown();
View Full Code Here

    }

    try
    {
      final CountDownLatch latch = new CountDownLatch(1);
      PropertyEventShutdownCallback callback = new PropertyEventShutdownCallback()
      {
        @Override
        public void done()
        {
          latch.countDown();
View Full Code Here

    if (_zkfsLoadBalancer != null)
    {
      try
      {
        final CountDownLatch latch = new CountDownLatch(1);
        _zkfsLoadBalancer.shutdown(new PropertyEventShutdownCallback()
        {
          @Override
          public void done()
          {
            latch.countDown();
View Full Code Here

  private void shutdownPropertyStore(PropertyStore<?> store, long timeout, TimeUnit unit) throws Exception
  {
    final CountDownLatch registryLatch = new CountDownLatch(1);

    store.shutdown(new PropertyEventShutdownCallback()
    {
      @Override
      public void done()
      {
        registryLatch.countDown();
View Full Code Here

            // TODO HIGH
            //setEnabled(false);

            // this will block until zk comes back, at which point, shutdown will complete
            store.shutdown(new PropertyEventShutdownCallback()
            {
              @Override
              public void done()
              {
                info(_log, "shutdown complete");
View Full Code Here

TOP

Related Classes of com.linkedin.d2.discovery.event.PropertyEventThread.PropertyEventShutdownCallback

Copyright © 2018 www.massapicom. 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.