/** Returns a copy of this which is retired */ public Allocation retire() { return new Allocation(owner, clusterMembership.retire(), restartGeneration, removable); }
private HostSpec retire(HostSpec host) { return new HostSpec(host.hostname(), host.aliases(), host.flavor(), Optional.of(host.membership().get().retire()), host.version()); }