Interface HttpServerProbe
- All Known Implementing Classes:
AccessLogProbe,HttpServerProbe.Adapter
public interface HttpServerProbe
Monitoring probe providing callbacks that may be invoked by Grizzly
HttpServerFilter.- Since:
- 2.0
- Author:
- Alexey Stashok
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classHttpServerProbeadapter that provides no-op implementations for all interface methods allowing easy extension by the developer. -
Method Summary
Modifier and TypeMethodDescriptionvoidonBeforeServiceEvent(HttpServerFilter filter, 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, Connection connection, Request request) Method will be called, whenRequestprocessing is cancelled after suspend.voidonRequestCompleteEvent(HttpServerFilter filter, Connection connection, Response response) Method will be called, whenRequestprocessing will be completed.voidonRequestReceiveEvent(HttpServerFilter filter, Connection connection, Request request) Method will be called, when newRequestwill come.voidonRequestResumeEvent(HttpServerFilter filter, Connection connection, Request request) Method will be called, whenRequestprocessing is resumed.voidonRequestSuspendEvent(HttpServerFilter filter, Connection connection, Request request) Method will be called, whenRequestprocessing is suspended.voidonRequestTimeoutEvent(HttpServerFilter filter, Connection connection, Request request) Method will be called, whenRequestprocessing is timeout after suspend.
-
Method Details
-
onRequestReceiveEvent
Method will be called, when newRequestwill come.- Parameters:
filter-HttpServerFilter, the event belongs to.connection-Connection, the event belongs to.request- receivedRequest.
-
onRequestCompleteEvent
Method will be called, whenRequestprocessing will be completed.- Parameters:
filter-HttpServerFilter, the event belongs to.connection-Connection, the event belongs to.response- sentResponse.
-
onRequestSuspendEvent
Method will be called, whenRequestprocessing is suspended.- Parameters:
filter-HttpServerFilter, the event belongs to.connection-Connection, the event belongs to.request-Request.
-
onRequestResumeEvent
Method will be called, whenRequestprocessing is resumed.- Parameters:
filter-HttpServerFilter, the event belongs to.connection-Connection, the event belongs to.request-Request.
-
onRequestTimeoutEvent
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
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, 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.
-