@Test public void monitoringStatus_contains_information_about_running_jobs() { addJob(SERVER_ID, PDSJobStatusState.RUNNING, 1); PDSMonitoring monitoring = serviceToTest.getMonitoringStatus(); assertFound(monitoring, PDSJobStatusState.RUNNING, 1); }
@UseCaseAdminFetchesMonitoringStatus(@PDSStep(name="service call",description = "service fetches job state counts and gathers hearbeats of cluster members by serverId",number=4)) public PDSMonitoring getMonitoringStatus() { String serverId = serverConfiguratonService.getServerId(); PDSMonitoring monitoring = new PDSMonitoring(); addStateCounts(serverId, monitoring); addHeartBeatDataAsMember(serverId, monitoring); return monitoring; }
PDSMonitoringStatusService { @UseCaseAdminFetchesMonitoringStatus(@PDSStep(name="service call",description = "service fetches job state counts and gathers hearbeats of cluster members by serverId",number=4)) public PDSMonitoring getMonitoringStatus() { String serverId = serverConfiguratonService.getServerId(); PDSMonitoring monitoring = new PDSMonitoring(); addStateCounts(serverId, monitoring); addHeartBeatDataAsMember(serverId, monitoring); return monitoring; } }
PDSMonitoringStatusService { @UseCaseAdminFetchesMonitoringStatus(@PDSStep(name="service call",description = "service fetches job state counts and gathers hearbeats of cluster members by serverId",number=4)) public PDSMonitoring getMonitoringStatus() { String serverId = serverConfiguratonService.getServerId(); PDSMonitoring monitoring = new PDSMonitoring(); addStateCounts(serverId, monitoring); addHeartBeatDataAsMember(serverId, monitoring); return monitoring; }  }
PDSMonitoringStatusService { @UseCaseAdminFetchesMonitoringStatus(@PDSStep(name="service call",description = "service fetches job state counts and gathers hearbeats of cluster members by serverId",number=4)) public PDSMonitoring getMonitoringStatus() { String serverId = serverConfiguratonService.getServerId(); PDSMonitoring monitoring = new PDSMonitoring(); addStateCounts(serverId, monitoring); addHeartBeatDataAsMember(serverId, monitoring); return monitoring; }  @UseCaseAdminFetchesMonitoringStatus(@PDSStep(name="service call",description = "service fetches job state counts and gathers hearbeats of cluster members by serverId",number=4)) PDSMonitoring getMonitoringStatus(); }
PDSMonitoringStatusService { @UseCaseAdminFetchesMonitoringStatus(@PDSStep(name="service call",description = "service fetches job state counts and gathers hearbeats of cluster members by serverId",number=4)) public PDSMonitoring getMonitoringStatus() { String serverId = serverConfiguratonService.getServerId(); PDSMonitoring monitoring = new PDSMonitoring(); addStateCounts(serverId, monitoring); addHeartBeatDataAsMember(serverId, monitoring); return monitoring; }  @UseCaseAdminFetchesMonitoringStatus(@PDSStep(name="service call",description = "service fetches job state counts and gathers hearbeats of cluster members by serverId",number=4)) PDSMonitoring getMonitoringStatus();  }