public class JobMetricsServiceImpl extends java.lang.Object implements JobMetricsService
Constructor and Description |
---|
JobMetricsServiceImpl(JobSearchService jobSearchService,
java.lang.String hostName)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getNumActiveJobs()
Get the number of jobs active on this node.
|
int |
getUsedMemory()
Get the amount of memory currently used by jobs in MB.
|
public JobMetricsServiceImpl(@NotNull JobSearchService jobSearchService, @NotNull java.lang.String hostName)
jobSearchService
- The job search service to use.hostName
- The name of this hostpublic int getNumActiveJobs()
getNumActiveJobs
in interface JobMetricsService
public int getUsedMemory()
getUsedMemory
in interface JobMetricsService