class DefaultExecutionDeploymentTracker implements ExecutionDeploymentTracker {

	@Override
	public Map<ExecutionAttemptID, ExecutionDeploymentState> getExecutionsOn(ResourceID host) {
		return executionsByHost.getOrDefault(host, Collections.emptySet())
			.stream()
			.collect(Collectors.toMap(
				x -> x,
				x -> pendingDeployments.contains(x) ? ExecutionDeploymentState.PENDING : ExecutionDeploymentState.DEPLOYED));
	}

}