Interface HttpServerProbe
-
- All Known Implementing Classes:
AccessLogProbe,HttpServerProbe.Adapter
public interface HttpServerProbeMonitoring probe providing callbacks that may be invoked by GrizzlyHttpServerFilter.- Since:
- 2.0
- Author:
- Alexey Stashok
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classHttpServerProbe.AdapterHttpServerProbeadapter that provides no-op implementations for all interface methods allowing easy extension by the developer.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonBeforeServiceEvent(HttpServerFilter filter, org.glassfish.grizzly.Connection connection, Request request, HttpHandler httpHandler)Method will be called, before invokingHttpHandler.service(org.glassfish.grizzly.http.server.Request, org.glassfish.grizzly.http.server.Response).voidonRequestCancelEvent(HttpServerFilter filter, org.glassfish.grizzly.Connection connection, Request request)Method will be called, whenRequestprocessing is cancelled after suspend.voidonRequestCompleteEvent(HttpServerFilter filter, org.glassfish.grizzly.Connection connection, Response response)Method will be called, whenRequestprocessing will be completed.voidonRequestReceiveEvent(HttpServerFilter filter, org.glassfish.grizzly.Connection connection, Request request)Method will be called, when newRequestwill come.voidonRequestResumeEvent(HttpServerFilter filter, org.glassfish.grizzly.Connection connection, Request request)Method will be called, whenRequestprocessing is resumed.voidonRequestSuspendEvent(HttpServerFilter filter, org.glassfish.grizzly.Connection connection, Request request)Method will be called, whenRequestprocessing is suspended.voidonRequestTimeoutEvent(HttpServerFilter filter, org.glassfish.grizzly.Connection connection, Request request)Method will be called, whenRequestprocessing is timeout after suspend.
-
-
-
Method Detail
-
onRequestReceiveEvent
void onRequestReceiveEvent(HttpServerFilter filter, org.glassfish.grizzly.Connection connection, Request request)
Method will be called, when newRequestwill come.- Parameters:
filter-HttpServerFilter, the event belongs to.connection-Connection, the event belongs to.request- receivedRequest.
-
onRequestCompleteEvent
void onRequestCompleteEvent(HttpServerFilter filter, org.glassfish.grizzly.Connection connection, Response response)
Method will be called, whenRequestprocessing will be completed.- Parameters:
filter-HttpServerFilter, the event belongs to.connection-Connection, the event belongs to.response- sentResponse.
-
onRequestSuspendEvent
void onRequestSuspendEvent(HttpServerFilter filter, org.glassfish.grizzly.Connection connection, Request request)
Method will be called, whenRequestprocessing is suspended.- Parameters:
filter-HttpServerFilter, the event belongs to.connection-Connection, the event belongs to.request-Request.
-
onRequestResumeEvent
void onRequestResumeEvent(HttpServerFilter filter, org.glassfish.grizzly.Connection connection, Request request)
Method will be called, whenRequestprocessing is resumed.- Parameters:
filter-HttpServerFilter, the event belongs to.connection-Connection, the event belongs to.request-Request.
-
onRequestTimeoutEvent
void onRequestTimeoutEvent(HttpServerFilter filter, org.glassfish.grizzly.Connection connection, Request request)
Method will be called, whenRequestprocessing is timeout after suspend.- Parameters:
filter-HttpServerFilter, the event belongs to.connection-Connection, the event belongs to.request-Request.
-
onRequestCancelEvent
void onRequestCancelEvent(HttpServerFilter filter, org.glassfish.grizzly.Connection connection, Request request)
Method will be called, whenRequestprocessing is cancelled after suspend.- Parameters:
filter-HttpServerFilter, the event belongs to.connection-Connection, the event belongs to.request-Request.
-
onBeforeServiceEvent
void onBeforeServiceEvent(HttpServerFilter filter, org.glassfish.grizzly.Connection connection, Request request, HttpHandler httpHandler)
Method will be called, before invokingHttpHandler.service(org.glassfish.grizzly.http.server.Request, org.glassfish.grizzly.http.server.Response).- Parameters:
filter-HttpServerFilter, the event belongs to.connection-Connection, the event belongs to.request- receivedRequest.httpHandler-HttpHandlerto be invoked.
-
-