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>, KubernetesResourceLifecycle 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)
-
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.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.LifecycleBuildertoBuilder()
-
-
-
Constructor Detail
-
Lifecycle
public Lifecycle()
No args constructor for use in serialization
-
Lifecycle
public Lifecycle(LifecycleHandler postStart, LifecycleHandler preStop)
-
-
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.
-
edit
public LifecycleBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<LifecycleBuilder>
-
toBuilder
public LifecycleBuilder toBuilder()
-
-