Class QueueMetricsImpl
- java.lang.Object
-
- io.jenkins.plugins.maplelabs.Metrics.Data.QueueMetricsImpl
-
- All Implemented Interfaces:
IPublishMetrics
public class QueueMetricsImpl extends Object implements IPublishMetrics
-
-
Constructor Summary
Constructors Constructor Description QueueMetricsImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HashMap<String,Object>
collectMetrics(Object details)
This function will set queue details and send details to clientint
getAborted()
int
getBlocked()
int
getBuildable()
int
getCompleted()
int
getPending()
int
getQueueSize()
int
getStarted()
int
getStuck()
void
incrementAborted()
void
incrementBlocked()
void
incrementBuildable()
void
incrementCompleted()
void
incrementPending()
void
incrementStarted()
void
incrementStuck()
void
setQueueSize(int size)
-
-
-
Method Detail
-
getQueueSize
public int getQueueSize()
-
setQueueSize
public void setQueueSize(int size)
-
getStuck
public int getStuck()
-
incrementStuck
public void incrementStuck()
-
getAborted
public int getAborted()
-
incrementAborted
public void incrementAborted()
-
getPending
public int getPending()
-
incrementPending
public void incrementPending()
-
getBlocked
public int getBlocked()
-
incrementBlocked
public void incrementBlocked()
-
getStarted
public int getStarted()
-
incrementStarted
public void incrementStarted()
-
getBuildable
public int getBuildable()
-
incrementBuildable
public void incrementBuildable()
-
getCompleted
public int getCompleted()
-
incrementCompleted
public void incrementCompleted()
-
collectMetrics
public HashMap<String,Object> collectMetrics(Object details)
This function will set queue details and send details to client- Specified by:
collectMetrics
in interfaceIPublishMetrics
-
-