Class NodeMetricsImpl
- java.lang.Object
-
- io.jenkins.plugins.maplelabs.Metrics.Data.NodeMetricsImpl
-
- All Implemented Interfaces:
IPublishMetrics
public class NodeMetricsImpl extends Object implements IPublishMetrics
-
-
Constructor Summary
Constructors Constructor Description NodeMetricsImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addComputerDetails(HashMap<String,Object> computerDetails)
HashMap<String,Object>
collectMetrics(Object details)
This function will set node properties and send details to clientString
convertLongToGB(long space)
ArrayList<HashMap<String,Object>>
getComputerDetails()
int
getNumNodes()
int
getNumNodesOffline()
int
getNumNodesOnline()
void
setNumNodes(int numNodes)
void
setNumNodesOffline(int numNodesOffline)
void
setNumNodesOnline(int numNodesOnline)
-
-
-
Method Detail
-
getNumNodes
public int getNumNodes()
-
setNumNodes
public void setNumNodes(int numNodes)
-
getNumNodesOnline
public int getNumNodesOnline()
-
setNumNodesOnline
public void setNumNodesOnline(int numNodesOnline)
-
getNumNodesOffline
public int getNumNodesOffline()
-
setNumNodesOffline
public void setNumNodesOffline(int numNodesOffline)
-
convertLongToGB
public String convertLongToGB(long space)
-
collectMetrics
public HashMap<String,Object> collectMetrics(Object details)
This function will set node properties and send details to client- Specified by:
collectMetrics
in interfaceIPublishMetrics
-
-