Class TaskContainerDependency

    • Method Detail

      • containerName

        public final String containerName()

        A unique identifier for the container.

        Returns:
        A unique identifier for the container.
      • condition

        public final String condition()

        The dependency condition of the container. The following are the available conditions and their behavior:

        • START - This condition emulates the behavior of links and volumes today. It validates that a dependent container is started before permitting other containers to start.

        • COMPLETE - This condition validates that a dependent container runs to completion (exits) before permitting other containers to start. This can be useful for nonessential containers that run a script and then exit. This condition can't be set on an essential container.

        • SUCCESS - This condition is the same as COMPLETE, but it also requires that the container exits with a zero status. This condition can't be set on an essential container.

        Returns:
        The dependency condition of the container. The following are the available conditions and their behavior:

        • START - This condition emulates the behavior of links and volumes today. It validates that a dependent container is started before permitting other containers to start.

        • COMPLETE - This condition validates that a dependent container runs to completion (exits) before permitting other containers to start. This can be useful for nonessential containers that run a script and then exit. This condition can't be set on an essential container.

        • SUCCESS - This condition is the same as COMPLETE, but it also requires that the container exits with a zero status. This condition can't be set on an essential container.

      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)