Class NetworkMonitor
- java.lang.Object
-
- jakarta.servlet.GenericServlet
-
- jakarta.servlet.http.HttpServlet
-
- com.sun.identity.entitlement.util.NetworkMonitor
-
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable
public class NetworkMonitor extends jakarta.servlet.http.HttpServletUtility to collect response time and throughput on a per second basis.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classNetworkMonitor.StatsData
-
Constructor Summary
Constructors Constructor Description NetworkMonitor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res)voidend(long start)float[]getHistoryResponseTime()float[]getHistoryThroughput()static NetworkMonitorgetInstance(String name)static Set<String>getInstanceNames()floatgetLastHistoryResponseTime()floatgetLastHistoryThroughput()static booleanisCollectStats()voidreset()floatresponseTime()static voidsetCollectStats(boolean aCollectStats)longstart()floatthroughput()-
Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
-
-
-
-
Method Detail
-
isCollectStats
public static boolean isCollectStats()
- Returns:
- the collectStats
-
setCollectStats
public static void setCollectStats(boolean aCollectStats)
- Parameters:
aCollectStats- the collectStats to set
-
getInstance
public static NetworkMonitor getInstance(String name)
-
start
public long start()
-
end
public void end(long start)
-
reset
public void reset()
-
getHistoryResponseTime
public float[] getHistoryResponseTime()
-
getHistoryThroughput
public float[] getHistoryThroughput()
-
responseTime
public float responseTime()
-
getLastHistoryResponseTime
public float getLastHistoryResponseTime()
-
throughput
public float throughput()
-
getLastHistoryThroughput
public float getLastHistoryThroughput()
-
doGet
public void doGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) throws jakarta.servlet.ServletException, IOException- Overrides:
doGetin classjakarta.servlet.http.HttpServlet- Throws:
jakarta.servlet.ServletExceptionIOException
-
-