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 |
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, 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, Date startTime, Date endTime, Writer writer, Map<String,String[]> params) throws 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 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 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 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 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 requestIOException - thrown if the log cannot be streamed.Copyright © 2015 Apache Software Foundation. All Rights Reserved.