    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class w3c.www.protocol.http.cache.cacheStatistics

    java.lang.Object
       |
       +----w3c.www.protocol.http.cache.cacheStatistics

public class cacheStatistics
extends Object

##

badRevalidations
  Number of unsuccessful revalidations.
goodRevalidations
  Number of succesful revalidations.
hits
  Number of cache hits.
misses
  Number of cache misses.
notCachableReplies
  Number of not cachable replies
pendingConnections
  Number of pending or dropped connections
realHits
  the number of straight replies, aka real hits.
start_time
  The start time, as a number of milliseconds since Java epoch.

##

decrPending()
  Decrement the number of pending connections
getBadRevalidations()
  Number of bad revalidations.
getGoodRevalidations()
  Number of good revalidations.
getHits()
  Get the number of successful hits.
getMisses()
  Get the number of cache misses.
getNotCachable()
  Get the number of replies that were not cachable
getPending()
  Get the number of pending or dropped connections.
getRealHits()
  Get the number of real hits.
getStartTime()
  Get the start time as the number of milliseconds since Java epoch.
incrBadRevalidations()
  Increment the number of bad revalidations.
incrGoodRevalidations()
  Increment the number of good revalidations.
incrHits()
  Increment the number of hits.
incrMisses()
  Increment the number of misses.
incrNotCachable()
  Increment the number of errors
incrPending()
  Increment the number of pending connections
incrRealHits()
  Increment the number of straight replies and decrement the number of pending connection (it is a FINAL reply).

##

hits

      protected int hits

  Number of cache hits.

misses

      protected int misses

  Number of cache misses.

goodRevalidations

      protected int goodRevalidations

  Number of succesful revalidations.

badRevalidations

      protected int badRevalidations

  Number of unsuccessful revalidations.

pendingConnections

      protected int pendingConnections

  Number of pending or dropped connections

notCachableReplies

      protected int notCachableReplies

  Number of not cachable replies

realHits

      protected int realHits

  the number of straight replies, aka real hits.

start_time

      protected long start_time

  The start time, as a number of milliseconds since Java epoch.

##

incrNotCachable

      protected final synchronized void incrNotCachable()

  Increment the number of errors

incrRealHits

      protected final synchronized void incrRealHits()

  Increment the number of straight replies and decrement the number of pending connection (it is a FINAL reply).

incrPending

      protected final synchronized void incrPending()

  Increment the number of pending connections

decrPending

      protected final synchronized void decrPending()

  Decrement the number of pending connections

incrHits

      protected final synchronized void incrHits()

  Increment the number of hits.

incrMisses

      protected final synchronized void incrMisses()

  Increment the number of misses.

incrGoodRevalidations

      protected final synchronized void incrGoodRevalidations()

  Increment the number of good revalidations.

incrBadRevalidations

      protected final synchronized void incrBadRevalidations()

  Increment the number of bad revalidations.

getNotCachable

      public int getNotCachable()

  Get the number of replies that were not cachable

getPending

      public int getPending()

  Get the number of pending or dropped connections. This show how many connections are active (ideally) and is used now to keep track of dropped connections

getRealHits

      public int getRealHits()

  Get the number of real hits. A real hit is a direct answer from the cache without asking for a revalidation.

getHits

      public int getHits()

  Get the number of successful hits. A hit is sucessful if a cache entry for the target existed before that request. A successful hit can then account for either no revalidation at all, a good or a bad revalidation (but at least for one of these).
  Returns:
    The number of hits.

getMisses

      public int getMisses()

  Get the number of cache misses. A miss happens one a request is made for a resource that doesn't exist in the cache yet.
  Returns:
    The number of misses.

getGoodRevalidations

      public int getGoodRevalidations()

  Number of good revalidations. A good revalidation is revalidation for which the origin server emitted a `NOT_MODIFIED` status code.
  Returns:
    The number of good revalidations.

getBadRevalidations

      public int getBadRevalidations()

  Number of bad revalidations. A bad revalidation is a revalidation that triggered a full reply from the origin server.
  Returns:
    The number of bad revalidations.

getStartTime

      public long getStartTime()

  Get the start time as the number of milliseconds since Java epoch.
  Returns:
    A long number of milliseconds.

    All Packages  Class Hierarchy  This Package  Previous  Next  Index