2626import java .util .Map ;
2727
2828@ Beta
29- public class ContainerInfo {
29+ public class ContainerConfig {
3030
3131 private final Image image ;
3232 // Port bindings, keyed on the container port, with values being host ports
3333 private final Multimap <String , Map <String , Object >> portBindings ;
3434
35- private ContainerInfo (Image image , Multimap <String , Map <String , Object >> portBindings ) {
35+ private ContainerConfig (Image image , Multimap <String , Map <String , Object >> portBindings ) {
3636 this .image = Require .nonNull ("Container image" , image );
3737 this .portBindings = Require .nonNull ("Port bindings" , portBindings );
3838 }
3939
40- public static ContainerInfo image (Image image ) {
41- return new ContainerInfo (image , HashMultimap .create ());
40+ public static ContainerConfig image (Image image ) {
41+ return new ContainerConfig (image , HashMultimap .create ());
4242 }
4343
44- public ContainerInfo map (Port containerPort , Port hostPort ) {
44+ public ContainerConfig map (Port containerPort , Port hostPort ) {
4545 Require .nonNull ("Container port" , containerPort );
4646 Require .nonNull ("Host port" , hostPort );
4747
@@ -55,12 +55,12 @@ public ContainerInfo map(Port containerPort, Port hostPort) {
5555 containerPort .getPort () + "/" + containerPort .getProtocol (),
5656 ImmutableMap .of ("HostPort" , String .valueOf (hostPort .getPort ()), "HostIp" , "" ));
5757
58- return new ContainerInfo (image , updatedBindings );
58+ return new ContainerConfig (image , updatedBindings );
5959 }
6060
6161 @ Override
6262 public String toString () {
63- return "ContainerInfo {" +
63+ return "ContainerConfig {" +
6464 "image=" + image +
6565 ", portBindings=" + portBindings +
6666 '}' ;
0 commit comments