package com.capitalone.dashboard.model; import org.springframework.data.mongodb.core.mapping.Document; /** * The collectors that have been registered in the given Dashboard app instance. */ @Document(collection="collectors") public class Collector extends BaseModel { private String name; private CollectorType collectorType; private boolean enabled; private boolean online; private long lastExecuted; public Collector() { } public Collector(String name, CollectorType collectorType) { this.name = name; this.collectorType = collectorType; } public String getName() { return name; } public void setName(String name) { this.name = name; } public CollectorType getCollectorType() { return collectorType; } public void setCollectorType(CollectorType collectorType) { this.collectorType = collectorType; } public boolean isEnabled() { return enabled; } public void setEnabled(boolean enabled) { this.enabled = enabled; } public boolean isOnline() { return online; } public void setOnline(boolean online) { this.online = online; } public long getLastExecuted() { return lastExecuted; } public void setLastExecuted(long lastExecuted) { this.lastExecuted = lastExecuted; } }