Class AsyncRequestLogWriter
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.server.RequestLogWriter
org.eclipse.jetty.server.AsyncRequestLogWriter
- All Implemented Interfaces:
RequestLog.Writer, LifeCycle
An asynchronously writing RequestLogWriter
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener, AbstractLifeCycle.StopExceptionNested classes/interfaces inherited from interface LifeCycle
LifeCycle.Listener -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionAsyncRequestLogWriter(String filename) AsyncRequestLogWriter(String filename, BlockingQueue<String> queue) -
Method Summary
Methods inherited from class RequestLogWriter
getDatedFilename, getFileName, getFilenameDateFormat, getRetainDays, getTimeZone, isAppend, setAppend, setFilename, setFilenameDateFormat, setRetainDays, setTimeZoneMethods inherited from class AbstractLifeCycle
addEventListener, getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, setEventListeners, start, stop, toString
-
Constructor Details
-
AsyncRequestLogWriter
public AsyncRequestLogWriter() -
AsyncRequestLogWriter
-
AsyncRequestLogWriter
-
-
Method Details
-
doStart
Description copied from class:AbstractLifeCycleMethod to override to start the lifecycle- Overrides:
doStartin classRequestLogWriter- Throws:
Exception- If there was a problem starting. Will cause a transition to FAILED state
-
doStop
Description copied from class:AbstractLifeCycleMethod to override to stop the lifecycle- Overrides:
doStopin classRequestLogWriter- Throws:
Exception- If there was a problem stopping. Will cause a transition to FAILED state
-
write
- Specified by:
writein interfaceRequestLog.Writer- Overrides:
writein classRequestLogWriter- Throws:
IOException
-