Class KeepAliveStatsProvider

  • All Implemented Interfaces:
    StatsProvider
    Direct Known Subclasses:
    KeepAliveStatsProviderGlobal

    @AMXMetadata(type="keep-alive-mon",
                 group="monitoring")
    @ManagedObject
    @Description("Keep-Alive Statistics")
    public class KeepAliveStatsProvider
    extends Object
    implements StatsProvider
    Keep-alive statistics
    Author:
    Alexey Stashok
    • Field Detail

      • maxRequestsCount

        protected final org.glassfish.external.statistics.impl.CountStatisticImpl maxRequestsCount
      • timeoutInSeconds

        protected final org.glassfish.external.statistics.impl.CountStatisticImpl timeoutInSeconds
      • totalKeepAliveConnectionsCount

        protected final org.glassfish.external.statistics.impl.CountStatisticImpl totalKeepAliveConnectionsCount
      • keepAliveConnectionsCount

        protected final org.glassfish.external.statistics.impl.CountStatisticImpl keepAliveConnectionsCount
      • hitsCount

        protected final org.glassfish.external.statistics.impl.CountStatisticImpl hitsCount
      • refusalsCount

        protected final org.glassfish.external.statistics.impl.CountStatisticImpl refusalsCount
      • timeoutsCount

        protected final org.glassfish.external.statistics.impl.CountStatisticImpl timeoutsCount
      • keepAliveStats

        protected volatile org.glassfish.grizzly.http.KeepAlive keepAliveStats
    • Constructor Detail

      • KeepAliveStatsProvider

        public KeepAliveStatsProvider​(String name)
    • Method Detail

      • getStatsObject

        public Object getStatsObject()
        Description copied from interface: StatsProvider
        Get object, from which StatsProvider can get statistics directly without listening emitting events.
        Specified by:
        getStatsObject in interface StatsProvider
        Returns:
        statistics
      • setStatsObject

        public void setStatsObject​(Object object)
        Description copied from interface: StatsProvider
        Set object, from which StatsProvider can get statistics directly without listening emitting events.
        Specified by:
        setStatsObject in interface StatsProvider
        Parameters:
        object - statistics
      • getMaxKeepAliveRequestsCount

        @ManagedAttribute(id="maxrequests")
        @Description("Maximum number of requests allowed on a single keep-alive connection")
        public org.glassfish.external.statistics.CountStatistic getMaxKeepAliveRequestsCount()
      • getKeepAliveTimeoutInSeconds

        @ManagedAttribute(id="secondstimeouts")
        @Description("Keep-alive timeout value in seconds")
        public org.glassfish.external.statistics.CountStatistic getKeepAliveTimeoutInSeconds()
      • getKeepAliveConnectionsCount

        @ManagedAttribute(id="countconnections")
        @Description("Number of connections in keep-alive mode")
        public org.glassfish.external.statistics.CountStatistic getKeepAliveConnectionsCount()
      • getFlushesCount

        @ManagedAttribute(id="countflushes")
        @Description("Number of keep-alive connections that were closed")
        public org.glassfish.external.statistics.CountStatistic getFlushesCount()
      • getHitsCount

        @ManagedAttribute(id="counthits")
        @Description("Number of requests received by connections in keep-alive mode")
        public org.glassfish.external.statistics.CountStatistic getHitsCount()
      • getRefusalsCount

        @ManagedAttribute(id="countrefusals")
        @Description("Number of keep-alive connections that were rejected")
        public org.glassfish.external.statistics.CountStatistic getRefusalsCount()
      • getTimeoutsCount

        @ManagedAttribute(id="counttimeouts")
        @Description("Number of keep-alive connections that timed out")
        public org.glassfish.external.statistics.CountStatistic getTimeoutsCount()
      • setMaxCountRequestsEvent

        public void setMaxCountRequestsEvent​(String listenerName,
                                             int max)
      • setTimeoutInSecondsEvent

        public void setTimeoutInSecondsEvent​(String listenerName,
                                             int timeoutInSeconds)
      • incrementCountConnectionsEvent

        public void incrementCountConnectionsEvent​(String listenerName)
      • decrementCountConnectionsEvent

        public void decrementCountConnectionsEvent​(String listenerName)
      • incrementCountFlushesEvent

        public void incrementCountFlushesEvent​(String listenerName)
      • incrementCountHitsEvent

        public void incrementCountHitsEvent​(String listenerName)
      • incrementCountRefusalsEvent

        public void incrementCountRefusalsEvent​(String listenerName)
      • incrementCountTimeoutsEvent

        public void incrementCountTimeoutsEvent​(String listenerName)
      • reset

        public void reset()