Package adams.docker

Class DockerContainer

    • Field Detail

      • m_ContainerID

        protected String m_ContainerID
        the container ID.
      • m_Image

        protected String m_Image
        the image.
      • m_Command

        protected String m_Command
        the command.
      • m_Created

        protected String m_Created
        when the image was created.
      • m_Status

        protected String m_Status
        the status of the container.
      • m_Ports

        protected String m_Ports
        the ports.
      • m_Names

        protected String m_Names
        the names.
    • Constructor Detail

      • DockerContainer

        public DockerContainer​(String containerID,
                               String image,
                               String command,
                               String created,
                               String status,
                               String ports,
                               String names)
        Initializes the container.
        Parameters:
        containerID - the container ID (hash)
        command - the command
        image - the image
        created - the created string
        status - the status
        ports - the ports
        names - the names
    • Method Detail

      • getContainerID

        public String getContainerID()
        Returns the container ID.
        Returns:
        the ID
      • getImage

        public String getImage()
        Returns the image.
        Returns:
        the image
      • getCommand

        public String getCommand()
        Returns the command.
        Returns:
        the command
      • getCreated

        public String getCreated()
        Returns the created information.
        Returns:
        the created information
      • getStatus

        public String getStatus()
        Returns the status.
        Returns:
        the status
      • getPorts

        public String getPorts()
        Returns the ports.
        Returns:
        the ports
      • getNames

        public String getNames()
        Returns the names.
        Returns:
        the names
      • equals

        public boolean equals​(Object o)
        Checks whether the objects are equal.
        Overrides:
        equals in class Object
        Parameters:
        o - the object to compare with
        Returns:
        true if the same content
        See Also:
        compareTo(DockerContainer)
      • hashCode

        public int hashCode()
        Generates a hash code.
        Overrides:
        hashCode in class Object
        Returns:
        the hash