public class XLogStreamingService extends java.lang.Object implements Service, Instrumentable
| Modifier and Type | Field and Description |
|---|---|
protected int |
bufferLen |
static java.lang.String |
STREAM_BUFFER_LEN |
DEFAULT_LOCK_TIMEOUT, lockTimeout| Constructor and Description |
|---|
XLogStreamingService() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroy the log streaming service.
|
int |
getBufferLen() |
java.lang.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(XLogFilter filter,
java.util.Date startTime,
java.util.Date endTime,
java.io.Writer writer,
java.util.Map<java.lang.String,java.lang.String[]> params)
Stream the log of a job.
|
public static final java.lang.String STREAM_BUFFER_LEN
protected int bufferLen
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 java.lang.Class<? extends Service> getInterface()
getInterface in interface ServiceXLogStreamingService.public void instrument(Instrumentation instr)
instrument in interface Instrumentableinstr - instrumentation to use.public void streamLog(XLogFilter filter, java.util.Date startTime, java.util.Date endTime, java.io.Writer writer, java.util.Map<java.lang.String,java.lang.String[]> params) throws java.io.IOException
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 requestjava.io.IOException - thrown if the log cannot be streamed.public int getBufferLen()
Copyright © 2019 Apache Software Foundation. All Rights Reserved.