public class XLogStreamingService extends Object implements Service, Instrumentable
| Modifier and Type | Field and Description | 
|---|---|
protected int | 
bufferLen  | 
static 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()  | 
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 | 
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. 
 | 
public static final 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 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, Date startTime, Date endTime, Writer writer, Map<String,String[]> params) throws 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 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
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 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
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 requestIOException - thrown if the log cannot be streamed.public int getBufferLen()
Copyright © 2016 Apache Software Foundation. All rights reserved.