public class ZKXLogStreamingService extends XLogStreamingService implements Service, Instrumentable
bufferLen, STREAM_BUFFER_LEN
CONF_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 |
streamAuditLog(XLogFilter filter,
Date startTime,
Date endTime,
Writer writer,
Map<String,String[]> params)
Stream the audit log of a job.
|
void |
streamErrorLog(XLogFilter filter,
Date startTime,
Date endTime,
Writer writer,
Map<String,String[]> params)
Stream the error log of a job.
|
void |
streamLog(XLogFilter filter,
Date startTime,
Date endTime,
Writer writer,
Map<String,String[]> params)
Stream the log of a job.
|
getBufferLen, getInterface
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInterface
public ZKXLogStreamingService()
public void init(Services services) throws ServiceException
init
in interface Service
init
in class XLogStreamingService
services
- services instance.ServiceException
- thrown if the log streaming service could not be initialized.public void destroy()
destroy
in interface Service
destroy
in class XLogStreamingService
public void instrument(Instrumentation instr)
instrument
in interface Instrumentable
instrument
in class XLogStreamingService
instr
- instrumentation to use.public void streamLog(XLogFilter filter, Date startTime, Date endTime, Writer writer, Map<String,String[]> params) throws IOException
streamLog
in class XLogStreamingService
filter
- 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 requestIOException
- thrown if the log cannot be streamed.public void streamErrorLog(XLogFilter filter, Date startTime, Date endTime, Writer writer, Map<String,String[]> params) throws IOException
streamErrorLog
in class XLogStreamingService
filter
- 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 requestIOException
- thrown if the log cannot be streamed.public void streamAuditLog(XLogFilter filter, Date startTime, Date endTime, Writer writer, Map<String,String[]> params) throws IOException
streamAuditLog
in class XLogStreamingService
filter
- 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 requestIOException
- thrown if the log cannot be streamed.Copyright © 2015 Apache Software Foundation. All Rights Reserved.