Interface Generated.LifecycleOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    Generated.Lifecycle, Generated.Lifecycle.Builder
    Enclosing class:
    Generated

    public static interface Generated.LifecycleOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Generated.LifecycleHandler getPostStart()
      PostStart is called immediately after a container is created.
      Generated.LifecycleHandlerOrBuilder getPostStartOrBuilder()
      PostStart is called immediately after a container is created.
      Generated.LifecycleHandler getPreStop()
      PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc.
      Generated.LifecycleHandlerOrBuilder getPreStopOrBuilder()
      PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc.
      boolean hasPostStart()
      PostStart is called immediately after a container is created.
      boolean hasPreStop()
      PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • hasPostStart

        boolean hasPostStart()
         PostStart is called immediately after a container is created. If the handler fails,
         the container is terminated and restarted according to its restart policy.
         Other management of the container blocks until the hook completes.
         More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
         +optional
         
        optional .k8s.io.api.core.v1.LifecycleHandler postStart = 1;
        Returns:
        Whether the postStart field is set.
      • getPostStart

        Generated.LifecycleHandler getPostStart()
         PostStart is called immediately after a container is created. If the handler fails,
         the container is terminated and restarted according to its restart policy.
         Other management of the container blocks until the hook completes.
         More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
         +optional
         
        optional .k8s.io.api.core.v1.LifecycleHandler postStart = 1;
        Returns:
        The postStart.
      • getPostStartOrBuilder

        Generated.LifecycleHandlerOrBuilder getPostStartOrBuilder()
         PostStart is called immediately after a container is created. If the handler fails,
         the container is terminated and restarted according to its restart policy.
         Other management of the container blocks until the hook completes.
         More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
         +optional
         
        optional .k8s.io.api.core.v1.LifecycleHandler postStart = 1;
      • hasPreStop

        boolean hasPreStop()
         PreStop is called immediately before a container is terminated due to an
         API request or management event such as liveness/startup probe failure,
         preemption, resource contention, etc. The handler is not called if the
         container crashes or exits. The Pod's termination grace period countdown begins before the
         PreStop hook is executed. Regardless of the outcome of the handler, the
         container will eventually terminate within the Pod's termination grace
         period (unless delayed by finalizers). Other management of the container blocks until the hook completes
         or until the termination grace period is reached.
         More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
         +optional
         
        optional .k8s.io.api.core.v1.LifecycleHandler preStop = 2;
        Returns:
        Whether the preStop field is set.
      • getPreStop

        Generated.LifecycleHandler getPreStop()
         PreStop is called immediately before a container is terminated due to an
         API request or management event such as liveness/startup probe failure,
         preemption, resource contention, etc. The handler is not called if the
         container crashes or exits. The Pod's termination grace period countdown begins before the
         PreStop hook is executed. Regardless of the outcome of the handler, the
         container will eventually terminate within the Pod's termination grace
         period (unless delayed by finalizers). Other management of the container blocks until the hook completes
         or until the termination grace period is reached.
         More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
         +optional
         
        optional .k8s.io.api.core.v1.LifecycleHandler preStop = 2;
        Returns:
        The preStop.
      • getPreStopOrBuilder

        Generated.LifecycleHandlerOrBuilder getPreStopOrBuilder()
         PreStop is called immediately before a container is terminated due to an
         API request or management event such as liveness/startup probe failure,
         preemption, resource contention, etc. The handler is not called if the
         container crashes or exits. The Pod's termination grace period countdown begins before the
         PreStop hook is executed. Regardless of the outcome of the handler, the
         container will eventually terminate within the Pod's termination grace
         period (unless delayed by finalizers). Other management of the container blocks until the hook completes
         or until the termination grace period is reached.
         More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
         +optional
         
        optional .k8s.io.api.core.v1.LifecycleHandler preStop = 2;