Class RuntimeClassSpec

  • All Implemented Interfaces:
    com.marcnuri.yakc.model.Model

    public class RuntimeClassSpec
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    RuntimeClassSpec is a specification of a RuntimeClass. It contains parameters that are required to describe the RuntimeClass to the Container Runtime Interface (CRI) implementation, as well as any other components that need to understand how the pod will be run. The RuntimeClassSpec is immutable.
    • Constructor Detail

      • RuntimeClassSpec

        public RuntimeClassSpec​(Overhead overhead,
                                @NonNull
                                @NonNull java.lang.String runtimeHandler,
                                Scheduling scheduling)
      • RuntimeClassSpec

        public RuntimeClassSpec()
    • Method Detail

      • getOverhead

        public Overhead getOverhead()
      • getRuntimeHandler

        @NonNull
        public @NonNull java.lang.String getRuntimeHandler()
        RuntimeHandler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The RuntimeHandler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable.
      • getScheduling

        public Scheduling getScheduling()
      • setOverhead

        public void setOverhead​(Overhead overhead)
      • setRuntimeHandler

        public void setRuntimeHandler​(@NonNull
                                      @NonNull java.lang.String runtimeHandler)
        RuntimeHandler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The RuntimeHandler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable.
      • setScheduling

        public void setScheduling​(Scheduling scheduling)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object