Examples of stop()


Examples of org.apache.flink.client.minicluster.NepheleMiniCluster.stop()

      Assert.fail("Error during the packaged program execution: " + t.getMessage());
    }
    finally {
      if (testMiniCluster != null) {
        try {
          testMiniCluster.stop();
        } catch (Throwable t) {}
      }
    }
  }
}
View Full Code Here

Examples of org.apache.flume.Channel.stop()

    Assert.assertEquals(new Integer(10), s1.getWritten());
    Assert.assertEquals(new Integer(55), s2.getWritten());
    Assert.assertEquals(new Integer(100), s3.getWritten());

    runner.stop();
    ch.stop();
  }

}
View Full Code Here

Examples of org.apache.flume.Sink.stop()

    source.start();

    Thread.sleep(5000);
    source.stop();
    sinkRunner.stop();
    sink.stop();
  }

  @Test
  public void testCarrotDateFormatBug() throws Exception {
    SimpleDateFormat formatterFrom = new SimpleDateFormat("EEE MMM dd HH:mm:ss Z yyyy");
View Full Code Here

Examples of org.apache.flume.SinkRunner.stop()

    source.setChannelProcessor(chp);
    source.start();

    Thread.sleep(5000);
    source.stop();
    sinkRunner.stop();
    sink.stop();
  }

  @Test
  public void testCarrotDateFormatBug() throws Exception {
View Full Code Here

Examples of org.apache.flume.Source.stop()

          e);
      Thread.currentThread().interrupt();
    }

    Source source = getSource();
    source.stop();
    ChannelProcessor cp = source.getChannelProcessor();
    cp.close();

    lifecycleState = LifecycleState.STOP;
  }
View Full Code Here

Examples of org.apache.flume.channel.MemoryChannel.stop()

    // store event to HDFS
    sink.process();

    // shut down flume
    sink.stop();
    channel.stop();

    // verify that it's in HDFS and that its content is what we say it should be
    FileStatus[] statuses = fs.listStatus(outputDirPath);
    Assert.assertNotNull("No files found written to HDFS", statuses);
    Assert.assertEquals("Only one file expected", 1, statuses.length);
View Full Code Here

Examples of org.apache.flume.channel.file.FileChannel.stop()

    while(channel.take() != null) {
      i++;
    }
    tx.commit();
    tx.close();
    channel.stop();
    Assert.assertEquals(25 - corrupted, i);
    files = dataDir.listFiles(new FilenameFilter() {
      @Override
      public boolean accept(File dir, String name) {
        if(name.contains(".bak")) {
View Full Code Here

Examples of org.apache.flume.instrumentation.MonitorService.stop()

    Assert.assertNotNull(memBean);
    JMXTestUtils.checkChannelCounterParams(memBean);
    Map<String, String> pmemBean = mbeans.get("CHANNEL.pmemChannel");
    Assert.assertNotNull(pmemBean);
    JMXTestUtils.checkChannelCounterParams(pmemBean);
    srv.stop();
    System.out.println(String.valueOf(port) + "test success!");
  }

  @Test
  public void testTrace() throws Exception {
View Full Code Here

Examples of org.apache.flume.sink.LoggerSink.stop()

    source.start();

    Thread.sleep(5000);
    source.stop();
    sinkRunner.stop();
    sink.stop();
  }

  @Test
  public void testCarrotDateFormatBug() throws Exception {
    SimpleDateFormat formatterFrom = new SimpleDateFormat("EEE MMM dd HH:mm:ss Z yyyy");
View Full Code Here

Examples of org.apache.flume.sink.hbase.HBaseSink.stop()

    channel.put(e);
    tx.commit();
    tx.close();

    sink.process();
    sink.stop();
    HTable table = new HTable(testUtility.getConfiguration(), tableName);
    byte[][] results = getResults(table, 1);
    byte[] out = results[0];
    Assert.assertArrayEquals(e.getBody(), out);
    out = results[1];
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.