public class XLogStreamingService extends Object implements Service, Instrumentable
CONF_PREFIX, DEFAULT_LOCK_TIMEOUT, lockTimeout| Constructor and Description |
|---|
XLogStreamingService() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroy the log streaming service.
|
Class<? extends Service> |
getInterface()
Return the public interface for 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.
|
protected void |
streamLog(XLogStreamer logStreamer,
Date startTime,
Date endTime,
Writer writer,
boolean appendDebug)
Stream log.
|
public XLogStreamingService()
public void init(Services services) throws ServiceException
init in interface Serviceservices - services instance.ServiceException - thrown if the log streaming service could not be initialized.public void destroy()
public Class<? extends Service> getInterface()
getInterface in interface ServiceXLogStreamingService.public void instrument(Instrumentation instr)
instrument in interface Instrumentableinstr - instrumentation to use.public void streamLog(XLogStreamer logStreamer, Date startTime, Date endTime, Writer writer) throws IOException
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 - Signals that an I/O exception has occurred.protected void streamLog(XLogStreamer logStreamer, Date startTime, Date endTime, Writer writer, boolean appendDebug) throws IOException
logStreamer - the log streamerstartTime - the start timeendTime - the end timewriter - the writerappendDebug - the append debugIOException - Signals that an I/O exception has occurred.Copyright © 2018 Apache Software Foundation. All rights reserved.