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.StopExceptionNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionAsyncRequestLogWriter(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, setTimeZoneMethods 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:AbstractLifeCycleMethod to override to start the lifecycle- Overrides:
doStartin 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: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
-