Examples of stop()


Examples of org.apache.tapestry5.test.Jetty7Runner.stop()

        return new Runnable()
        {
            public void run()
            {
                runner.stop();
            }
        };
    }
}
View Full Code Here

Examples of org.apache.tez.client.TezClient.stop()

    assertEquals(DAGStatus.State.SUCCEEDED, dagStatus.getState());
    assertNotNull(dagStatus.getDAGCounters());
    assertNotNull(dagStatus.getDAGCounters().getGroup(FileSystemCounter.class.getName()));
    assertNotNull(dagStatus.getDAGCounters().findCounter(TaskCounter.GC_TIME_MILLIS));
    ExampleDriver.printDAGStatus(dagClient, new String[] { "SleepVertex" }, true, true);
    tezSession.stop();
  }

  @Test(timeout = 100000)
  public void testMultipleDAGsWithDuplicateName() throws TezException, IOException,
      InterruptedException {
View Full Code Here

Examples of org.apache.tez.client.TezSession.stop()

          return false;
        }
        return true;
    } finally {
      fs.delete(stagingDir, true);
      tezSession.stop();
    }
  }

  public static void main(String[] args) throws Exception {
    if ((args.length%2) != 0) {
View Full Code Here

Examples of org.apache.tez.dag.app.rm.TestTaskSchedulerHelpers.TaskSchedulerWithDrainableAppCallback.stop()

    String appMsg = "success";
    AppFinalStatus finalStatus =
        new AppFinalStatus(FinalApplicationStatus.SUCCEEDED, appMsg, appUrl);
    when(mockApp.getFinalAppStatus()).thenReturn(finalStatus);
    scheduler.stop();
    drainableAppCallback.drain();
    verify(mockRMClient).
                  unregisterApplicationMaster(FinalApplicationStatus.SUCCEEDED,
                                              appMsg, appUrl);
    verify(mockRMClient).stop();
View Full Code Here

Examples of org.apache.thrift.server.TServer.stop()

    String traces[] = {"my test", "checkTrace", "client:checkTrace", "start"};
    assertTrue(tracer.traces.get(start.traceId()).size() == traces.length);
    for (int i = 0; i < traces.length; i++)
      assertEquals(traces[i], tracer.traces.get(start.traceId()).get(i).description);
   
    tserver.stop();
    t.join(100);
  }

  Callable<Object> callable;
View Full Code Here

Examples of org.apache.thrift.server.TSimpleServer.stop()

    try {
      server.serve();
    } finally {
      log.info("Closing down everything.");

      server.stop();
    }
  }

  private static enum Protocol {
    JSON(new TJSONProtocol.Factory()),
View Full Code Here

Examples of org.apache.thrift.server.TThreadPoolServer.stop()

    String traces[] = {"my test", "checkTrace", "client:checkTrace", "start"};
    assertTrue(tracer.traces.get(start.traceId()).size() == traces.length);
    for (int i = 0; i < traces.length; i++)
      assertEquals(traces[i], tracer.traces.get(start.traceId()).get(i).description);
   
    tserver.stop();
    t.join(100);
  }

  Callable<Object> callable;
View Full Code Here

Examples of org.apache.thrift7.server.THsHaServer.stop()

   
    Runtime.getRuntime().addShutdownHook(new Thread() {
      public void run() {
        service_handler.shutdown();
        scheduExec.shutdown();
        server.stop();
      }

    });
    LOG.info("Starting BlueWhale server...");
    server.serve();
View Full Code Here

Examples of org.apache.tomcat.util.qlog.LogDaemon.stop()

  // engineShutdown shouldn't be called on local modules anyway !

  LogDaemon logDaemon=(LogDaemon)cm.getNote("tc.LogDaemon");
  if( logDaemon!=null ) {
      try{
    logDaemon.stop();
      } catch( Exception ex ) {
    ex.printStackTrace();
      }
      //      cm.setNote( "tc.LogDaemon", null );
  }
View Full Code Here

Examples of org.apache.tomee.embedded.Container.stop()

            Runtime.getRuntime().addShutdownHook(new Thread() {
                @Override
                public void run() {
                    try {
                        container.undeploy(warFile.getAbsolutePath());
                        container.stop();
                    } catch (Exception e) {
                        getLog().error("can't stop TomEE", e);
                    } finally {
                        latch.countDown();
                    }
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.