Top Description Inners Fields Constructors Methods
org.glassfish.grizzly.http.server.jmx

public Class HttpServerFilter

extends JmxObject
Class Inheritance
Annotations
@ManagedObject
@Description:The HttpServerFilter is the entity responsible for providing and processing higher level abstractions based on HTTP protocol.
Imports
org.glassfish.grizzly.Connection, org.glassfish.grizzly.http.server.Request, .Response, .HttpServerProbe, org.glassfish.grizzly.monitoring.jmx.JmxObject, org.glassfish.gmbal.Description, .GmbalMBean, .ManagedAttribute, .ManagedObject, java.util.concurrent.atomic.AtomicInteger, .AtomicLong, org.glassfish.grizzly.jmxbase.GrizzlyJmxManager

JMX management object for the org.glassfish.grizzly.http.server.HttpServerFilter.
Since
2.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
private final AtomicLong
private final AtomicLong
private final HttpServerFilter
private final HttpServerProbe
private final AtomicLong
private final AtomicInteger
private final AtomicLong

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
public long
getRequestsCancelledCount()

Returns: the number of requests suspended requests that have been cancelled.

public long
getRequestsCompletedCount()

Returns: the number of requests this org.glassfish.grizzly.http.server.HttpServerFilter has completed servicing.

public long
getRequestsReceivedCount()

Returns: the number of requests this org.glassfish.grizzly.http.server.HttpServerFilter has received.

public int
getRequestsSuspendedCount()

Returns: the number of requests currently suspended.

public long
getRequestsTimedOutCount()

Returns: the number of suspended requests that have timed out.

protected void
onDeregister(GrizzlyJmxManager mom)

Implements abstract org.glassfish.grizzly.monitoring.jmx.JmxObject.onDeregister.

Method will be called right after this JmxObject is unregistered by the JMX manager.

protected void
onRegister(GrizzlyJmxManager mom, GmbalMBean bean)

Implements abstract org.glassfish.grizzly.monitoring.jmx.JmxObject.onRegister.

Method will be called right after this JmxObject is registered by the JMX manager.

Field Detail

cancelledCountback to summary
private final AtomicLong cancelledCount
completedCountback to summary
private final AtomicLong completedCount
httpServerFilterback to summary
private final HttpServerFilter httpServerFilter
probeback to summary
private final HttpServerProbe probe
receivedCountback to summary
private final AtomicLong receivedCount
suspendCountback to summary
private final AtomicInteger suspendCount
timedOutCountback to summary
private final AtomicLong timedOutCount

Constructor Detail

HttpServerFilterback to summary
public HttpServerFilter(HttpServerFilter httpServerFilter)

Method Detail

getJmxNameback to summary
public String getJmxName()

Implements abstract org.glassfish.grizzly.monitoring.jmx.JmxObject.getJmxName.

Annotations
@Override
getRequestsCancelledCountback to summary
public long getRequestsCancelledCount()
Returns:long

the number of requests suspended requests that have been cancelled.

Annotations
@ManagedAttribute
id:requests-cancelled-count
@Description:The total number of suspended requests that have been cancelled.
getRequestsCompletedCountback to summary
public long getRequestsCompletedCount()
Returns:long

the number of requests this org.glassfish.grizzly.http.server.HttpServerFilter has completed servicing.

Annotations
@ManagedAttribute
id:requests-completed-count
@Description:The total number of requests that have been successfully completed.
getRequestsReceivedCountback to summary
public long getRequestsReceivedCount()
Returns:long

the number of requests this org.glassfish.grizzly.http.server.HttpServerFilter has received.

Annotations
@ManagedAttribute
id:requests-received-count
@Description:The total number of requests received.
getRequestsSuspendedCountback to summary
public int getRequestsSuspendedCount()
Returns:int

the number of requests currently suspended.

Annotations
@ManagedAttribute
id:current-suspended-request-count
@Description:The current number of requests that are suspended to be processed at a later point in time.
getRequestsTimedOutCountback to summary
public long getRequestsTimedOutCount()
Returns:long

the number of suspended requests that have timed out.

Annotations
@ManagedAttribute
id:requests-timed-out-count
@Description:The total number of suspended requests that have been timed out.
onDeregisterback to summary
protected void onDeregister(GrizzlyJmxManager mom)

Implements abstract org.glassfish.grizzly.monitoring.jmx.JmxObject.onDeregister.

Doc from org.glassfish.grizzly.monitoring.jmx.JmxObject.onDeregister.

Method will be called right after this JmxObject is unregistered by the JMX manager.

Annotations
@Override
onRegisterback to summary
protected void onRegister(GrizzlyJmxManager mom, GmbalMBean bean)

Implements abstract org.glassfish.grizzly.monitoring.jmx.JmxObject.onRegister.

Doc from org.glassfish.grizzly.monitoring.jmx.JmxObject.onRegister.

Method will be called right after this JmxObject is registered by the JMX manager.

Annotations
@Override
org.glassfish.grizzly.http.server.jmx back to summary

private final Class HttpServerFilter.JmxWebServerProbe

extends Adapter
Class Inheritance

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
public void
public void
public void
public void
public void
Inherited from org.glassfish.grizzly.http.server.HttpServerProbe.Adapter:
onBeforeServiceEvent

Constructor Detail

JmxWebServerProbeback to summary
private JmxWebServerProbe()

Method Detail

onRequestCancelEventback to summary
public void onRequestCancelEvent(HttpServerFilter filter, Connection<L> connection, Request request)

Overrides org.glassfish.grizzly.http.server.HttpServerProbe.Adapter.onRequestCancelEvent.

Implements org.glassfish.grizzly.http.server.HttpServerProbe.onRequestCancelEvent.

Doc from org.glassfish.grizzly.http.server.HttpServerProbe.onRequestCancelEvent.

Method will be called, when Request processing is cancelled after suspend.

Annotations
@Override
onRequestCompleteEventback to summary
public void onRequestCompleteEvent(HttpServerFilter filter, Connection<L> connection, Response response)

Overrides org.glassfish.grizzly.http.server.HttpServerProbe.Adapter.onRequestCompleteEvent.

Implements org.glassfish.grizzly.http.server.HttpServerProbe.onRequestCompleteEvent.

Doc from org.glassfish.grizzly.http.server.HttpServerProbe.Adapter.onRequestCompleteEvent.

Method will be called, when Request processing will be completed.

Annotations
@Override
onRequestReceiveEventback to summary
public void onRequestReceiveEvent(HttpServerFilter filter, Connection<L> connection, Request request)

Overrides org.glassfish.grizzly.http.server.HttpServerProbe.Adapter.onRequestReceiveEvent.

Implements org.glassfish.grizzly.http.server.HttpServerProbe.onRequestReceiveEvent.

Doc from org.glassfish.grizzly.http.server.HttpServerProbe.Adapter.onRequestReceiveEvent.

Method will be called, when new Request will come.

Annotations
@Override
onRequestResumeEventback to summary
public void onRequestResumeEvent(HttpServerFilter filter, Connection<L> connection, Request request)

Overrides org.glassfish.grizzly.http.server.HttpServerProbe.Adapter.onRequestResumeEvent.

Implements org.glassfish.grizzly.http.server.HttpServerProbe.onRequestResumeEvent.

Doc from org.glassfish.grizzly.http.server.HttpServerProbe.Adapter.onRequestResumeEvent.

Method will be called, when Request processing is resumed.

Annotations
@Override
onRequestSuspendEventback to summary
public void onRequestSuspendEvent(HttpServerFilter filter, Connection<L> connection, Request request)

Overrides org.glassfish.grizzly.http.server.HttpServerProbe.Adapter.onRequestSuspendEvent.

Implements org.glassfish.grizzly.http.server.HttpServerProbe.onRequestSuspendEvent.

Doc from org.glassfish.grizzly.http.server.HttpServerProbe.Adapter.onRequestSuspendEvent.

Method will be called, when Request processing is suspended.

Annotations
@Override
onRequestTimeoutEventback to summary
public void onRequestTimeoutEvent(HttpServerFilter filter, Connection<L> connection, Request request)

Overrides org.glassfish.grizzly.http.server.HttpServerProbe.Adapter.onRequestTimeoutEvent.

Implements org.glassfish.grizzly.http.server.HttpServerProbe.onRequestTimeoutEvent.

Doc from org.glassfish.grizzly.http.server.HttpServerProbe.Adapter.onRequestTimeoutEvent.

Method will be called, when Request processing is timeout after suspend.

Annotations
@Override