Package org.jobrunr.storage
Class BackgroundJobServerStatus
- java.lang.Object
-
- org.jobrunr.storage.BackgroundJobServerStatus
-
- All Implemented Interfaces:
BackgroundJobServerStatusMBean
public class BackgroundJobServerStatus extends java.lang.Object implements BackgroundJobServerStatusMBean
-
-
Constructor Summary
Constructors Constructor Description BackgroundJobServerStatus(int workerPoolSize, int pollIntervalInSeconds, java.time.Duration deleteSucceededJobsAfter, java.time.Duration permanentlyDeleteDeletedJobsAfter)
BackgroundJobServerStatus(java.util.UUID id, int workerPoolSize, int pollIntervalInSeconds, java.time.Duration deleteSucceededJobsAfter, java.time.Duration permanentlyDeleteDeletedJobsAfter, java.time.Instant firstHeartbeat, java.time.Instant lastHeartbeat, boolean isRunning, java.lang.Long systemTotalMemory, java.lang.Long systemFreeMemory, java.lang.Double systemCpuLoad, java.lang.Long processMaxMemory, java.lang.Long processFreeMemory, java.lang.Long processAllocatedMemory, java.lang.Double processCpuLoad)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.Duration
getDeleteSucceededJobsAfter()
java.time.Instant
getFirstHeartbeat()
java.util.UUID
getId()
java.time.Instant
getLastHeartbeat()
java.time.Duration
getPermanentlyDeleteDeletedJobsAfter()
int
getPollIntervalInSeconds()
java.lang.Long
getProcessAllocatedMemory()
java.lang.Double
getProcessCpuLoad()
java.lang.Long
getProcessFreeMemory()
java.lang.Long
getProcessMaxMemory()
java.lang.Double
getSystemCpuLoad()
java.lang.Long
getSystemFreeMemory()
java.lang.Long
getSystemTotalMemory()
int
getWorkerPoolSize()
boolean
isRunning()
-
-
-
Constructor Detail
-
BackgroundJobServerStatus
public BackgroundJobServerStatus(int workerPoolSize, int pollIntervalInSeconds, java.time.Duration deleteSucceededJobsAfter, java.time.Duration permanentlyDeleteDeletedJobsAfter)
-
BackgroundJobServerStatus
public BackgroundJobServerStatus(java.util.UUID id, int workerPoolSize, int pollIntervalInSeconds, java.time.Duration deleteSucceededJobsAfter, java.time.Duration permanentlyDeleteDeletedJobsAfter, java.time.Instant firstHeartbeat, java.time.Instant lastHeartbeat, boolean isRunning, java.lang.Long systemTotalMemory, java.lang.Long systemFreeMemory, java.lang.Double systemCpuLoad, java.lang.Long processMaxMemory, java.lang.Long processFreeMemory, java.lang.Long processAllocatedMemory, java.lang.Double processCpuLoad)
-
-
Method Detail
-
getId
public java.util.UUID getId()
- Specified by:
getId
in interfaceBackgroundJobServerStatusMBean
-
getWorkerPoolSize
public int getWorkerPoolSize()
- Specified by:
getWorkerPoolSize
in interfaceBackgroundJobServerStatusMBean
-
getPollIntervalInSeconds
public int getPollIntervalInSeconds()
- Specified by:
getPollIntervalInSeconds
in interfaceBackgroundJobServerStatusMBean
-
getDeleteSucceededJobsAfter
public java.time.Duration getDeleteSucceededJobsAfter()
- Specified by:
getDeleteSucceededJobsAfter
in interfaceBackgroundJobServerStatusMBean
-
getPermanentlyDeleteDeletedJobsAfter
public java.time.Duration getPermanentlyDeleteDeletedJobsAfter()
- Specified by:
getPermanentlyDeleteDeletedJobsAfter
in interfaceBackgroundJobServerStatusMBean
-
getFirstHeartbeat
public java.time.Instant getFirstHeartbeat()
- Specified by:
getFirstHeartbeat
in interfaceBackgroundJobServerStatusMBean
-
getLastHeartbeat
public java.time.Instant getLastHeartbeat()
- Specified by:
getLastHeartbeat
in interfaceBackgroundJobServerStatusMBean
-
isRunning
public boolean isRunning()
- Specified by:
isRunning
in interfaceBackgroundJobServerStatusMBean
-
getSystemTotalMemory
public java.lang.Long getSystemTotalMemory()
- Specified by:
getSystemTotalMemory
in interfaceBackgroundJobServerStatusMBean
-
getSystemFreeMemory
public java.lang.Long getSystemFreeMemory()
- Specified by:
getSystemFreeMemory
in interfaceBackgroundJobServerStatusMBean
-
getSystemCpuLoad
public java.lang.Double getSystemCpuLoad()
- Specified by:
getSystemCpuLoad
in interfaceBackgroundJobServerStatusMBean
-
getProcessMaxMemory
public java.lang.Long getProcessMaxMemory()
- Specified by:
getProcessMaxMemory
in interfaceBackgroundJobServerStatusMBean
-
getProcessFreeMemory
public java.lang.Long getProcessFreeMemory()
- Specified by:
getProcessFreeMemory
in interfaceBackgroundJobServerStatusMBean
-
getProcessAllocatedMemory
public java.lang.Long getProcessAllocatedMemory()
- Specified by:
getProcessAllocatedMemory
in interfaceBackgroundJobServerStatusMBean
-
getProcessCpuLoad
public java.lang.Double getProcessCpuLoad()
- Specified by:
getProcessCpuLoad
in interfaceBackgroundJobServerStatusMBean
-
-