|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.oozie.service.XLogStreamingService
public class XLogStreamingService
Service that performs streaming of log files over Web Services if enabled in XLogService
| Field Summary | |
|---|---|
protected int |
bufferLen
|
static String |
STREAM_BUFFER_LEN
|
| Fields inherited from interface org.apache.oozie.service.Service |
|---|
DEFAULT_LOCK_TIMEOUT, lockTimeout, USE_XCOMMAND |
| Constructor Summary | |
|---|---|
XLogStreamingService()
|
|
| Method Summary | |
|---|---|
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 |
streamLog(XLogFilter filter,
Date startTime,
Date endTime,
Writer writer,
Map<String,String[]> params)
Stream the log of a job. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String STREAM_BUFFER_LEN
protected int bufferLen
| Constructor Detail |
|---|
public XLogStreamingService()
| Method Detail |
|---|
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()
destroy in interface Servicepublic 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 request
IOException - thrown if the log cannot be streamed.public int getBufferLen()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||