Package org.eclipse.jetty.server
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 org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener, AbstractLifeCycle.StopException
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
Field Summary
-
Constructor Summary
ConstructorDescriptionAsyncRequestLogWriter
(String filename) AsyncRequestLogWriter
(String filename, BlockingQueue<String> queue) -
Method Summary
Methods inherited from class org.eclipse.jetty.server.RequestLogWriter
getDatedFilename, getFileName, getFilenameDateFormat, getRetainDays, getTimeZone, isAppend, setAppend, setFilename, setFilenameDateFormat, setRetainDays, setTimeZone
Methods inherited from class org.eclipse.jetty.util.component.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:AbstractLifeCycle
Method to override to start the lifecycle- Overrides:
doStart
in classRequestLogWriter
- Throws:
AbstractLifeCycle.StopException
- If thrown, the lifecycle will immediately be stopped.Exception
- If there was a problem starting. Will cause a transition to FAILED state
-
doStop
Description copied from class:AbstractLifeCycle
Method to override to stop the lifecycle- Overrides:
doStop
in classRequestLogWriter
- Throws:
Exception
- If there was a problem stopping. Will cause a transition to FAILED state
-
write
- Specified by:
write
in interfaceRequestLog.Writer
- Overrides:
write
in classRequestLogWriter
- Throws:
IOException
-