@Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof Service) { Service that = (Service) o; return (this.id.equals(that.id())) && (this.version.equals(that.version())) && (this.createdAt.equals(that.createdAt())) && (this.updatedAt.equals(that.updatedAt())) && (this.spec.equals(that.spec())) && (this.endpoint.equals(that.endpoint())) && ((this.updateStatus == null) ? (that.updateStatus() == null) : this.updateStatus.equals(that.updateStatus())); } return false; }
for (EndpointVirtualIp vip : service.endpoint().virtualIps()) { logger.info("Found qualifying docker service["+service.spec().name()+"] " + "on network: " + network.name() +"["+ network.id() + ":" +vip.addr() +"]"); List<Task> tasks = docker.listTasks(Task.Criteria.builder().serviceName(service.spec().name()).build()); logger.warning("docker.listTasks() returned NULL for service:" + service.spec().name() + ", skipping this service"); continue; " name:" + task.name() + " nodeid:" + task.nodeId() + " I am skipping this task for service: " + service.spec().name()); continue;
public String getServiceId() { return service.id(); }
public String getServiceName() { return service.spec().name(); }
@Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof Service) { Service that = (Service) o; return (this.id.equals(that.id())) && (this.version.equals(that.version())) && (this.createdAt.equals(that.createdAt())) && (this.updatedAt.equals(that.updatedAt())) && (this.spec.equals(that.spec())) && (this.endpoint.equals(that.endpoint())) && ((this.updateStatus == null) ? (that.updateStatus() == null) : this.updateStatus.equals(that.updateStatus())); } return false; }