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, streamLog
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(XLogStreamer logStreamer, Date startTime, Date endTime, Writer writer) throws IOException
streamLog
in class XLogStreamingService
logStreamer
- 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.