public class ZKXLogStreamingService extends XLogStreamingService implements Service, Instrumentable
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 | 
streamLog(XLogStreamer logStreamer,
         Date startTime,
         Date endTime,
         Writer writer)
Stream the log of a job. 
 | 
getInterface, streamLogclone, 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(XLogStreamer logStreamer, Date startTime, Date endTime, Writer writer) throws IOException
streamLog in class XLogStreamingServicelogStreamer - the log streamerstartTime - start time for log events to filter.endTime - end time for log events to filter.writer - writer to stream the log to.IOException - thrown if the log cannot be streamed.Copyright © 2018 Apache Software Foundation. All rights reserved.