Class MachineCloseBehaviour
- java.lang.Object
-
- com.oracle.bedrock.runtime.docker.machine.MachineCloseBehaviour
-
- All Implemented Interfaces:
com.oracle.bedrock.Option,Consumer<DockerMachinePlatform>
public class MachineCloseBehaviour extends Object implements com.oracle.bedrock.Option, Consumer<DockerMachinePlatform>
AnEnumandOptionrepresenting the types of behaviour to occur when closing aDockerContainer.Copyright (c) 2016. All Rights Reserved. Oracle Corporation.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.- Author:
- Jonathan Knight
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(DockerMachinePlatform platform)Perform thisImageCloseBehaviour's action on the specifiedDockerMachinePlatform.static MachineCloseBehaviournone()Do nothing when aDockerMachinePlatformis closed.static MachineCloseBehaviourremove()Stop and remove theDockerMachinePlatformwhen closed.static MachineCloseBehaviourstop()Stop theDockerMachinePlatformwhen a container application is closed.
-
-
-
Method Detail
-
accept
public void accept(DockerMachinePlatform platform)
Perform thisImageCloseBehaviour's action on the specifiedDockerMachinePlatform.- Specified by:
acceptin interfaceConsumer<DockerMachinePlatform>- Parameters:
platform- theDockerMachinePlatformto have the action performed on
-
none
public static MachineCloseBehaviour none()
Do nothing when aDockerMachinePlatformis closed.- Returns:
- a
MachineCloseBehaviour
-
stop
public static MachineCloseBehaviour stop()
Stop theDockerMachinePlatformwhen a container application is closed.- Returns:
- a
MachineCloseBehaviour
-
remove
@Default public static MachineCloseBehaviour remove()
Stop and remove theDockerMachinePlatformwhen closed.- Returns:
- a
MachineCloseBehaviour
-
-