Search in sources :

Example 11 with StreamWriter

use of co.cask.cdap.client.StreamWriter in project cdap-ingest by caskdata.

the class RestStreamClientTest method testCreateWriter.

@Test
public void testCreateWriter() throws IOException {
    StreamWriter streamWriter = streamClient.createWriter(TestUtils.SUCCESS_STREAM_NAME);
    assertNotNull(streamWriter);
    assertEquals(RestStreamWriter.class, streamWriter.getClass());
    RestStreamWriter restStreamWriter = (RestStreamWriter) streamWriter;
    assertEquals(TestUtils.SUCCESS_STREAM_NAME, restStreamWriter.getStreamName());
}
Also used : StreamWriter(co.cask.cdap.client.StreamWriter) Test(org.junit.Test)

Aggregations

StreamWriter (co.cask.cdap.client.StreamWriter)11 FileTailerQueue (co.cask.cdap.filetailer.queue.FileTailerQueue)6 FileTailerStateProcessor (co.cask.cdap.filetailer.state.FileTailerStateProcessor)6 FileTailerMetricsProcessor (co.cask.cdap.filetailer.metrics.FileTailerMetricsProcessor)5 Test (org.junit.Test)5 StreamClient (co.cask.cdap.client.StreamClient)3 PipeConfiguration (co.cask.cdap.filetailer.config.PipeConfiguration)3 FileTailerEvent (co.cask.cdap.filetailer.event.FileTailerEvent)3 FileTailerSink (co.cask.cdap.filetailer.sink.FileTailerSink)3 FileTailerState (co.cask.cdap.filetailer.state.FileTailerState)3 FileTailerStateProcessorImpl (co.cask.cdap.filetailer.state.FileTailerStateProcessorImpl)3 LogTailer (co.cask.cdap.filetailer.tailer.LogTailer)3 ServiceManager (com.google.common.util.concurrent.ServiceManager)2 Pipe (co.cask.cdap.filetailer.Pipe)1 PipeListener (co.cask.cdap.filetailer.PipeListener)1 ConfigurationLoadingException (co.cask.cdap.filetailer.config.exception.ConfigurationLoadingException)1 HttpFailureException (co.cask.common.http.exception.HttpFailureException)1 ListenableFuture (com.google.common.util.concurrent.ListenableFuture)1 IOException (java.io.IOException)1 Field (java.lang.reflect.Field)1