Examples of shutdown()


Examples of org.apache.hadoop.metrics2.impl.MetricsSystemImpl.shutdown()

    mm1.testMetric1.incr();
    mm1.testMetric2.incr(2);

    ms.publishMetricsNow(); // publish the metrics
    ms.stop();
    ms.shutdown();

    InputStream is = null;
    ByteArrayOutputStream baos = null;
    String outFileContent = null;
    try {
View Full Code Here

Examples of org.apache.hadoop.raid.ParallelStreamReader.shutdown()

              }
              readNum += result.readBufs[0].length;
            }
          } finally {
            if (null != reader) {
              reader.shutdown();
            }
            reporter.progress();
          }
        }
      } finally {
View Full Code Here

Examples of org.apache.hadoop.util.AsyncDiskService.shutdown()

      e = ex;
    }
    assertNotNull("Executing a task on a non-existing volume should throw an "
        + "Exception.", e);
   
    service.shutdown();
    if (!service.awaitTermination(5000)) {
      fail("AsyncDiskService didn't shutdown in 5 seconds.");
    }
   
    assertEquals(total, count);
View Full Code Here

Examples of org.apache.hedwig.server.netty.PubSubServer.shutdown()

        } catch (Exception e) {
            e.printStackTrace();
        }
        Assert.assertNotNull("failed to instantiate hedwig pub sub server", hedwigServer);

        hedwigServer.shutdown();
        serverFactory.shutdown();

        zks.shutdown();

        zkTmpDir.delete();
View Full Code Here

Examples of org.apache.helix.ipc.netty.NettyHelixIPCService.shutdown()

      Assert.assertEquals(count.get(), 2 * numMessages);
    }

    // Shutdown
    firstIPC.shutdown();
    secondIPC.shutdown();
  }

  @Test
  public void testMessageManager() throws Exception {
    final int numMessages = 1000;
View Full Code Here

Examples of org.apache.helix.messaging.handling.HelixTaskExecutor.shutDown()

      for(ExecutorService svc : executor._threadpoolMap.values())
      {
        Assert.assertFalse(svc.isShutdown());
      }
      Assert.assertTrue(factory._processedMsgIds.size() > 0);
      executor.shutDown();
      for(ExecutorService svc : executor._threadpoolMap.values())
      {
        Assert.assertTrue(svc.isShutdown());
      }
      System.out.println("END TestCMTaskExecutor.testShutdown()");
View Full Code Here

Examples of org.apache.hivemind.Registry.shutdown()

        ObjectName objectName = objectNameBuilder.createObjectName(logger.getName(), "logger");

        ObjectInstance instance = mbeanServer.getObjectInstance(objectName);
        assertNotNull(instance);

        registry.shutdown();
    }
}
View Full Code Here

Examples of org.apache.hivemind.ShutdownCoordinator.shutdown()

        ShutdownCoordinator coordinatorService =
            (ShutdownCoordinator) getService("hivemind.ShutdownCoordinator",
                ShutdownCoordinator.class);

        coordinatorService.shutdown();

        _shutdown = true;

        // Shutdown infrastructure items, such as proxies.
View Full Code Here

Examples of org.apache.hivemind.annotations.TypedRegistry.shutdown()

        System.out.println("Subtract: " + calculator.subtract(arg0, arg1));
        System.out.println("Multiply: " + calculator.multiply(arg0, arg1));
        System.out.println("Divide:   " + calculator.divide(arg0, arg1));


        registry.shutdown();
    }
}
View Full Code Here

Examples of org.apache.hivemind.impl.ShutdownCoordinatorImpl.shutdown()

        Fixture f = new Fixture();

        c.addRegistryShutdownListener(f);

        c.shutdown();

        assertEquals(true, f.isShutdown());

        // For good riddens; test no failure if already down.
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.