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
public class AsyncRequestLogWriter extends RequestLogWriter
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
-
-
Constructor Summary
Constructors Constructor Description AsyncRequestLogWriter()
AsyncRequestLogWriter(java.lang.String filename)
AsyncRequestLogWriter(java.lang.String filename, java.util.concurrent.BlockingQueue<java.lang.String> queue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doStart()
Method to override to start the lifecycleprotected void
doStop()
Method to override to stop the lifecyclevoid
write(java.lang.String log)
-
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
-
-
-
-
Method Detail
-
doStart
protected void doStart() throws java.lang.Exception
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.java.lang.Exception
- If there was a problem starting. Will cause a transition to FAILED state
-
doStop
protected void doStop() throws java.lang.Exception
Description copied from class:AbstractLifeCycle
Method to override to stop the lifecycle- Overrides:
doStop
in classRequestLogWriter
- Throws:
java.lang.Exception
- If there was a problem stopping. Will cause a transition to FAILED state
-
write
public void write(java.lang.String log) throws java.io.IOException
- Specified by:
write
in interfaceRequestLog.Writer
- Overrides:
write
in classRequestLogWriter
- Throws:
java.io.IOException
-
-