Class DockerMachinePlatform
- java.lang.Object
-
- com.oracle.bedrock.extensible.AbstractExtensible
-
- com.oracle.bedrock.runtime.AbstractPlatform
-
- com.oracle.bedrock.runtime.docker.DockerPlatform
-
- com.oracle.bedrock.runtime.docker.machine.DockerMachinePlatform
-
- All Implemented Interfaces:
com.oracle.bedrock.extensible.Extensible,com.oracle.bedrock.runtime.Infrastructure,com.oracle.bedrock.runtime.Platform,Closeable,AutoCloseable
public class DockerMachinePlatform extends DockerPlatform implements Closeable
An implementation of aRemotePlatformthat is associated with a Docker Machine VM.Copyright (c) 2016. All Rights Reserved. Oracle Corporation.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.- Author:
- Jonathan Knight
-
-
Constructor Summary
Constructors Constructor Description DockerMachinePlatform(DockerMachine machine, String name, com.oracle.bedrock.Option... options)Create aDockerMachinePlatform.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidclose(com.oracle.bedrock.Option... options)DockerMachinegetDockerMachine()Obtain theDockerMachineenvironment used by this platform.RemotePlatformgetRemotePlatform()Obtain aRemotePlatformon the Docker machine instance.RemotePlatformgetRemotePlatform(com.oracle.bedrock.Option... options)Obtain aRemotePlatformon the Docker machine instance.Stringstatus()Obtain the status of this Docker Machine instance.-
Methods inherited from class com.oracle.bedrock.runtime.docker.DockerPlatform
clientAt, getAddress, getApplicationLauncher, getClientPlatform, getDocker, getOperatingSystem, launch, localClient, localClient
-
Methods inherited from class com.oracle.bedrock.extensible.AbstractExtensible
add, add, get, getInstancesOf, has, remove, removeAllFeatures
-
-
-
-
Constructor Detail
-
DockerMachinePlatform
public DockerMachinePlatform(DockerMachine machine, String name, com.oracle.bedrock.Option... options)
Create aDockerMachinePlatform.- Parameters:
machine- theDockerMachineinstance to use to obtain the Docker Machine environmentname- the name of the Docker Machine VM instanceoptions- anyOptions to apply to the platform
-
-
Method Detail
-
getDockerMachine
public DockerMachine getDockerMachine()
Obtain theDockerMachineenvironment used by this platform.- Returns:
- the
DockerMachineenvironment used by this platform
-
getRemotePlatform
public RemotePlatform getRemotePlatform()
Obtain aRemotePlatformon the Docker machine instance.- Returns:
- a
RemotePlatformon the Docker machine instance
-
getRemotePlatform
public RemotePlatform getRemotePlatform(com.oracle.bedrock.Option... options)
Obtain aRemotePlatformon the Docker machine instance.- Parameters:
options- theOptions- Returns:
- a
RemotePlatformon the Docker machine instance
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
close
public void close(com.oracle.bedrock.Option... options)
Close thisDockerMachinePlatformperforming anyMachineCloseBehaviourpresent in theOptions.If no
MachineCloseBehaviouris present in the options the defaultMachineCloseBehaviourwill be used.- Parameters:
options- theOptions to use- See Also:
MachineCloseBehaviour
-
status
public String status()
Obtain the status of this Docker Machine instance.- Returns:
- the status of this Docker Machine instance
-
-