org.glassfish.grizzly.http.server
Interface HttpServerProbe


public interface HttpServerProbe

Monitoring probe providing callbacks that may be invoked by Grizzly HttpServerFilter.

Since:
2.0
Author:
Alexey Stashok

Method Summary
 void onRequestCancelEvent(HttpServerFilter filter, Connection connection, Request request)
          Method will be called, when Request processing is cancelled after suspend.
 void onRequestCompleteEvent(HttpServerFilter filter, Connection connection, Response response)
          Method will be called, when Request processing will be completed.
 void onRequestReceiveEvent(HttpServerFilter filter, Connection connection, Request request)
          Method will be called, when new Request will come.
 void onRequestResumeEvent(HttpServerFilter filter, Connection connection, Request request)
          Method will be called, when Request processing is resumed.
 void onRequestSuspendEvent(HttpServerFilter filter, Connection connection, Request request)
          Method will be called, when Request processing is suspended.
 void onRequestTimeoutEvent(HttpServerFilter filter, Connection connection, Request request)
          Method will be called, when Request processing is timeout after suspend.
 

Method Detail

onRequestReceiveEvent

void onRequestReceiveEvent(HttpServerFilter filter,
                           Connection connection,
                           Request request)
Method will be called, when new Request will come.

Parameters:
filter - HttpServerFilter, the event belongs to.
connection - Connection, the event belongs to.
request - received Request.

onRequestCompleteEvent

void onRequestCompleteEvent(HttpServerFilter filter,
                            Connection connection,
                            Response response)
Method will be called, when Request processing will be completed.

Parameters:
filter - HttpServerFilter, the event belongs to.
connection - Connection, the event belongs to.
response - sent Response.

onRequestSuspendEvent

void onRequestSuspendEvent(HttpServerFilter filter,
                           Connection connection,
                           Request request)
Method will be called, when Request processing is suspended.

Parameters:
filter - HttpServerFilter, the event belongs to.
connection - Connection, the event belongs to.
request - Request.

onRequestResumeEvent

void onRequestResumeEvent(HttpServerFilter filter,
                          Connection connection,
                          Request request)
Method will be called, when Request processing is resumed.

Parameters:
filter - HttpServerFilter, the event belongs to.
connection - Connection, the event belongs to.
request - Request.

onRequestTimeoutEvent

void onRequestTimeoutEvent(HttpServerFilter filter,
                           Connection connection,
                           Request request)
Method will be called, when Request processing is timeout after suspend.

Parameters:
filter - HttpServerFilter, the event belongs to.
connection - Connection, the event belongs to.
request - Request.

onRequestCancelEvent

void onRequestCancelEvent(HttpServerFilter filter,
                          Connection connection,
                          Request request)
Method will be called, when Request processing is cancelled after suspend.

Parameters:
filter - HttpServerFilter, the event belongs to.
connection - Connection, the event belongs to.
request - Request.


Copyright © 2011 Oracle Corpration. All Rights Reserved.