Class DataVolume

java.lang.Object
com.atlassian.bamboo.docker.DataVolume

@Immutable public class DataVolume extends Object
Represents a Docker container data volume.
  • Constructor Details

    • DataVolume

      public DataVolume(@Nullable @Nullable String hostDirectory, @NotNull @NotNull String containerDataVolume)
  • Method Details

    • getContainerDirectory

      @NotNull public @NotNull String getContainerDirectory()
      Returns:
      the path to the data volume inside the container.
    • getHostDirectory

      @Nullable public @Nullable String getHostDirectory()
      Returns:
      the path to the mapped host directory. May be null if the container data volume is not mapped to a host directory.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object