Project: springxd
Issue XD-1477: Merge Container and ContainerMetadata as well as their "repositories"
The two classes in question are: * org.springframework.xd.dirt.cluster.Container * org.springframework.xd.dirt.container.ContainerMetadata The former is currently used by the Admin when making decisions about Module deployment. That latter was a replacement for RuntimeContainerInforEntity as we migrated the various Redis/InMemory Repositories to use the data that is now available in ZooKeeper instead. The ContainerRepository is currently used by the Admin leader, and the ContainerMetadataRepository is used by the REST endpoint that supports the xd-shell's 'runtime containers' command. Perhaps those can also be merged. In any case, if not addressed by a larger refactoring, the ContainerRepository should probably support an Iterable return rather than an Iterator. Having finders (e.g. for attribute key/values such as "group"=="foo") might be convenient for various Module deployment strategies.
Story points: 4