Package io.fabric8.kubernetes.api.model
Class Lifecycle
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.Lifecycle
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<LifecycleBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class Lifecycle extends Object implements io.fabric8.kubernetes.api.builder.Editable<LifecycleBuilder>, KubernetesResource
Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Lifecycle()No args constructor for use in serializationLifecycle(LifecycleHandler postStart, LifecycleHandler preStop, String stopSignal)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LifecycleBuilderedit()Map<String,Object>getAdditionalProperties()LifecycleHandlergetPostStart()Lifecycle describes actions that the management system should take in response to container lifecycle events.LifecycleHandlergetPreStop()Lifecycle describes actions that the management system should take in response to container lifecycle events.StringgetStopSignal()StopSignal defines which signal will be sent to a container when it is being stopped.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetPostStart(LifecycleHandler postStart)Lifecycle describes actions that the management system should take in response to container lifecycle events.voidsetPreStop(LifecycleHandler preStop)Lifecycle describes actions that the management system should take in response to container lifecycle events.voidsetStopSignal(String stopSignal)StopSignal defines which signal will be sent to a container when it is being stopped.LifecycleBuildertoBuilder()
-
-
-
Constructor Detail
-
Lifecycle
public Lifecycle()
No args constructor for use in serialization
-
Lifecycle
public Lifecycle(LifecycleHandler postStart, LifecycleHandler preStop, String stopSignal)
-
-
Method Detail
-
getPostStart
public LifecycleHandler getPostStart()
Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.
-
setPostStart
public void setPostStart(LifecycleHandler postStart)
Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.
-
getPreStop
public LifecycleHandler getPreStop()
Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.
-
setPreStop
public void setPreStop(LifecycleHandler preStop)
Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.
-
getStopSignal
public String getStopSignal()
StopSignal defines which signal will be sent to a container when it is being stopped. If not specified, the default is defined by the container runtime in use. StopSignal can only be set for Pods with a non-empty .spec.os.name
-
setStopSignal
public void setStopSignal(String stopSignal)
StopSignal defines which signal will be sent to a container when it is being stopped. If not specified, the default is defined by the container runtime in use. StopSignal can only be set for Pods with a non-empty .spec.os.name
-
edit
public LifecycleBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<LifecycleBuilder>
-
toBuilder
public LifecycleBuilder toBuilder()
-
-