Class Network.Connect
- java.lang.Object
-
- com.oracle.bedrock.runtime.docker.commands.AbstractDockerCommand<C>
-
- com.oracle.bedrock.runtime.docker.commands.CommandWithArgumentList<C>
-
- com.oracle.bedrock.runtime.docker.commands.Network<Network.Connect>
-
- com.oracle.bedrock.runtime.docker.commands.Network.Connect
-
- All Implemented Interfaces:
com.oracle.bedrock.runtime.MetaClass<com.oracle.bedrock.runtime.Application>
- Enclosing class:
- Network<C extends CommandWithArgumentList>
public static class Network.Connect extends Network<Network.Connect>
A representation of the Docker Network Connect command.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.oracle.bedrock.runtime.docker.commands.Network
Network.Connect, Network.Create, Network.Disconnect, Network.Inspect, Network.LS, Network.Remove
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Network.Connectalias(Object... alias)Add network-scoped aliases for the container (equates to the --alias argument).Network.Connectip(Object address)Set the IPv4 Address (equates to the --ip argument).Network.Connectip6(Object address)Set the IPv6 Address (equates to the --ip6 argument).Network.Connectlink(Object... containers)Add a link to another container (equates to the --link argument).protected Network.ConnectwithCommandArguments(List<com.oracle.bedrock.runtime.options.Argument> endArgs, com.oracle.bedrock.runtime.options.Argument... args)Obtain a copy of thisCommandWithArgumentListwith the addition of the specified command argumentsArguments.protected Network.ConnectwithoutCommandArguments(List<com.oracle.bedrock.runtime.options.Argument> endArgs, com.oracle.bedrock.runtime.options.Argument... args)Obtain a copy of thisCommandWithArgumentListwithout the the specified command argumentsArguments.-
Methods inherited from class com.oracle.bedrock.runtime.docker.commands.Network
connect, create, createBridge, createOverlay, disconnect, inspect, inspect, inspect, list, remove, remove
-
Methods inherited from class com.oracle.bedrock.runtime.docker.commands.CommandWithArgumentList
onLaunch, withCommandArguments, withoutCommandArguments
-
Methods inherited from class com.oracle.bedrock.runtime.docker.commands.AbstractDockerCommand
getCommandArguments, getImplementationClass, getTimeout, onLaunched, onLaunching, timeoutAfter, timeoutAfter
-
-
-
-
Method Detail
-
alias
public Network.Connect alias(Object... alias)
Add network-scoped aliases for the container (equates to the --alias argument).- Parameters:
alias- values that resolve to one or more valid aliases- Returns:
- a new
Network.Connectinstance that is the same as this instance with the --alias option applied
-
ip
public Network.Connect ip(Object address)
Set the IPv4 Address (equates to the --ip argument).- Parameters:
address- a value that resolves to a valid IPv4 addresses- Returns:
- a new
Network.Createinstance that is the same as this instance with the --ip option applied
-
ip6
public Network.Connect ip6(Object address)
Set the IPv6 Address (equates to the --ip6 argument).- Parameters:
address- a value that resolves to a valid IPv6 addresses- Returns:
- a new
Network.Createinstance that is the same as this instance with the --ip6 option applied
-
link
public Network.Connect link(Object... containers)
Add a link to another container (equates to the --link argument).- Parameters:
containers- values that resolve to one or more valid container names- Returns:
- a new
Network.Createinstance that is the same as this instance with the --link option applied
-
withCommandArguments
protected Network.Connect withCommandArguments(List<com.oracle.bedrock.runtime.options.Argument> endArgs, com.oracle.bedrock.runtime.options.Argument... args)
Description copied from class:CommandWithArgumentListObtain a copy of thisCommandWithArgumentListwith the addition of the specified command argumentsArguments.- Specified by:
withCommandArgumentsin classCommandWithArgumentList<Network.Connect>- Parameters:
endArgs- theListofArgumentsthat appear at the end of the command lineargs- the new command to add- Returns:
- a copy of this
CommandWithArgumentListwith the addition of the specified command argumentsArguments
-
withoutCommandArguments
protected Network.Connect withoutCommandArguments(List<com.oracle.bedrock.runtime.options.Argument> endArgs, com.oracle.bedrock.runtime.options.Argument... args)
Description copied from class:CommandWithArgumentListObtain a copy of thisCommandWithArgumentListwithout the the specified command argumentsArguments.- Specified by:
withoutCommandArgumentsin classCommandWithArgumentList<Network.Connect>- Parameters:
endArgs- theListofArgumentsthat appear at the end of the command lineargs- the new command to add- Returns:
- a copy of this
CommandWithArgumentListwithout the specified command argumentsArguments
-
-