public class ZKXLogStreamingService extends XLogStreamingService implements Service, Instrumentable
bufferLen, STREAM_BUFFER_LENCONF_PREFIX, DEFAULT_LOCK_TIMEOUT, lockTimeout| Constructor and Description |
|---|
ZKXLogStreamingService() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroy the log streaming service.
|
void |
init(Services services)
Initialize the log streaming service.
|
void |
instrument(Instrumentation instr)
Instruments the log streaming service.
|
void |
streamLog(XLogFilter filter,
java.util.Date startTime,
java.util.Date endTime,
java.io.Writer writer,
java.util.Map<java.lang.String,java.lang.String[]> params)
Stream the log of a job.
|
getBufferLen, getInterfaceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInterfacepublic ZKXLogStreamingService()
public void init(Services services) throws ServiceException
init in interface Serviceinit in class XLogStreamingServiceservices - services instance.ServiceException - thrown if the log streaming service could not be initialized.public void destroy()
destroy in interface Servicedestroy in class XLogStreamingServicepublic void instrument(Instrumentation instr)
instrument in interface Instrumentableinstrument in class XLogStreamingServiceinstr - instrumentation to use.public void streamLog(XLogFilter filter, java.util.Date startTime, java.util.Date endTime, java.io.Writer writer, java.util.Map<java.lang.String,java.lang.String[]> params) throws java.io.IOException
streamLog in class XLogStreamingServicefilter - log streamer filter.startTime - start time for log events to filter.endTime - end time for log events to filter.writer - writer to stream the log to.params - additional parameters from the requestjava.io.IOException - thrown if the log cannot be streamed.Copyright © 2019 Apache Software Foundation. All Rights Reserved.