Package com.avoka.fc.core.servlet
Class FormServerPerformanceMetrics
- java.lang.Object
-
- com.avoka.fc.core.servlet.FormServerPerformanceMetrics
-
public class FormServerPerformanceMetrics extends Object
Provides health status metrics to store health status snapshots information.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(FormServerPerformanceData serverPerformanceData)
Add a health status snap shot to the metrics.static FormServerPerformanceMetrics
getPerformanceMetrics(ServletContext servletContext, String nodeUrl)
Return the FormServerPerformanceMetrics given the servlet context and server node URLFormServerPerformanceData
peek()
Return the latest process count
-
-
-
Method Detail
-
getPerformanceMetrics
public static FormServerPerformanceMetrics getPerformanceMetrics(ServletContext servletContext, String nodeUrl)
Return the FormServerPerformanceMetrics given the servlet context and server node URL- Parameters:
servletContext
- the servlet contextnodeUrl
- the server node URL- Returns:
- the ServerPerformanceMetrics
-
add
public void add(FormServerPerformanceData serverPerformanceData)
Add a health status snap shot to the metrics. Only one thread calls this method.- Parameters:
serverPerformanceData
- the server performance data
-
peek
public FormServerPerformanceData peek()
Return the latest process count Multiple threads will call this method.- Returns:
- the latest server performance data
-
-