| java.lang.Object org.ofbiz.content.stats.ServerHitBin
ServerHitBin | public class ServerHitBin (Code) | | Counts server hits and tracks statistics for request, events and views
Handles total stats since the server started and binned
stats according to settings in the serverstats.properties file.
author: David E. Jones version: $Revision: 1.2 $ since: 2.0 |
Method Summary | |
synchronized void | addHit(long startTime, long runningTime) | public static void | advanceAllBins(long toTime) | static void | advanceAllBins(long toTime, Map binMap) | synchronized void | advanceBin(long toTime) | public static void | countEntity(String id, HttpServletRequest request, long startTime, long runningTime, GenericValue userLogin, GenericDelegator delegator) | public static void | countEvent(String id, HttpServletRequest request, long startTime, long runningTime, GenericValue userLogin, GenericDelegator delegator) | public static void | countHit(String id, int type, HttpServletRequest request, long startTime, long runningTime, GenericValue userLogin, GenericDelegator delegator) | protected static void | countHit(String id, int type, HttpServletRequest request, long startTime, long runningTime, GenericValue userLogin, GenericDelegator delegator, boolean isOriginal) | static void | countHitSinceStart(String id, int type, long startTime, long runningTime, boolean isOriginal, GenericDelegator delegator) | public static void | countRequest(String id, HttpServletRequest request, long startTime, long runningTime, GenericValue userLogin, GenericDelegator delegator) | public static void | countService(String id, HttpServletRequest request, long startTime, long runningTime, GenericValue userLogin, GenericDelegator delegator) | public static void | countView(String id, HttpServletRequest request, long startTime, long runningTime, GenericValue userLogin, GenericDelegator delegator) | public double | getAvgTime() | public double | getAvgTimeSeconds() | public long | getBinLength() | public double | getBinLengthMinutes() | public GenericDelegator | getDelegator() | public long | getEndTime() | public String | getEndTimeString() | long | getEvenStartingTime() | public double | getHitsPerMinute() | public String | getId() | public long | getMaxTime() | public double | getMaxTimeSeconds() | public long | getMinTime() | public double | getMinTimeSeconds() | static long | getNewBinLength() | public long | getNumberHits() | public long | getStartTime() | public String | getStartTimeString() | public long | getTotalRunningTime() | public int | getType() | public String | getTypeString() | void | reset(long startTime) | void | saveHit(HttpServletRequest request, long startTime, long runningTime, GenericValue userLogin) |
ENTITY | final public static int ENTITY(Code) | | |
EVENT | final public static int EVENT(Code) | | |
REQUEST | final public static int REQUEST(Code) | | |
SERVICE | final public static int SERVICE(Code) | | |
VIEW | final public static int VIEW(Code) | | |
entityHistory | public static Map entityHistory(Code) | | |
entitySinceStarted | public static Map entitySinceStarted(Code) | | |
eventHistory | public static Map eventHistory(Code) | | |
eventSinceStarted | public static Map eventSinceStarted(Code) | | |
limitLength | boolean limitLength(Code) | | |
numberHits | long numberHits(Code) | | |
requestHistory | public static Map requestHistory(Code) | | |
requestSinceStarted | public static Map requestSinceStarted(Code) | | |
serviceHistory | public static Map serviceHistory(Code) | | |
serviceSinceStarted | public static Map serviceSinceStarted(Code) | | |
startTime | long startTime(Code) | | |
totalRunningTime | long totalRunningTime(Code) | | |
viewHistory | public static Map viewHistory(Code) | | |
viewSinceStarted | public static Map viewSinceStarted(Code) | | |
addHit | synchronized void addHit(long startTime, long runningTime)(Code) | | |
advanceAllBins | public static void advanceAllBins(long toTime)(Code) | | |
advanceAllBins | static void advanceAllBins(long toTime, Map binMap)(Code) | | |
advanceBin | synchronized void advanceBin(long toTime)(Code) | | |
countHitSinceStart | static void countHitSinceStart(String id, int type, long startTime, long runningTime, boolean isOriginal, GenericDelegator delegator)(Code) | | |
getAvgTime | public double getAvgTime()(Code) | | |
getAvgTimeSeconds | public double getAvgTimeSeconds()(Code) | | |
getBinLength | public long getBinLength()(Code) | | returns endTime - startTime
|
getBinLengthMinutes | public double getBinLengthMinutes()(Code) | | returns (endTime - startTime)/60000
|
getEndTime | public long getEndTime()(Code) | | Returns the end time if the length of the bin is limited, otherwise returns the current system time
|
getEndTimeString | public String getEndTimeString()(Code) | | Returns the end time if the length of the bin is limited, otherwise returns the current system time
|
getEvenStartingTime | long getEvenStartingTime()(Code) | | |
getHitsPerMinute | public double getHitsPerMinute()(Code) | | return the hits per minute using the entire length of the bin as returned by getBinLengthMinutes()
|
getMaxTime | public long getMaxTime()(Code) | | |
getMaxTimeSeconds | public double getMaxTimeSeconds()(Code) | | |
getMinTime | public long getMinTime()(Code) | | |
getMinTimeSeconds | public double getMinTimeSeconds()(Code) | | |
getNewBinLength | static long getNewBinLength()(Code) | | |
getNumberHits | public long getNumberHits()(Code) | | |
getStartTime | public long getStartTime()(Code) | | returns the startTime of the bin
|
getStartTimeString | public String getStartTimeString()(Code) | | returns the startTime of the bin
|
getTotalRunningTime | public long getTotalRunningTime()(Code) | | |
getType | public int getType()(Code) | | |
reset | void reset(long startTime)(Code) | | |
|
|