public class JobMetricsServiceImpl extends java.lang.Object implements JobMetricsService
Constructor and Description |
---|
JobMetricsServiceImpl(@NotNull JobSearchService jobSearchService,
@NotNull 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 @NotNull JobSearchService jobSearchService, @NotNull @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