package com.capitalone.dashboard.model; import java.util.ArrayList; import java.util.List; /** * Extension of Collector that stores current build server configuration. */ public class HudsonCollector extends Collector { private List<String> buildServers = new ArrayList<>(); public List<String> getBuildServers() { return buildServers; } public void setBuildServers(List<String> buildServers) { this.buildServers = buildServers; } public static HudsonCollector prototype(List<String> buildServers) { HudsonCollector protoType = new HudsonCollector(); protoType.setName("Hudson"); protoType.setCollectorType(CollectorType.Build); protoType.setOnline(true); protoType.setEnabled(true); protoType.getBuildServers().addAll(buildServers); return protoType; } }