public interface Network
extends com.oracle.bedrock.Option.Collectable
Option representing a Network for a VagrantPlatform.
Copyright (c) 2016. All Rights Reserved. Oracle Corporation.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
| Modifier and Type | Method and Description |
|---|---|
default Class<? extends com.oracle.bedrock.Option.Collector> |
getCollectorClass() |
String |
getId()
Obtain the identifier for the
Network. |
String |
getMacAddress()
Obtains the mac address for the
Network. |
boolean |
isPublic()
Determines if the
Network is visible outside of the Virtual Machine
represented by the VagrantPlatform. |
Optional<com.oracle.bedrock.runtime.remote.options.HostName> |
write(PrintWriter writer,
String prefix,
String padding)
Write the configuration of the network to the specified
PrintWriter, optionally
returning the public hostname of the network if public. |
String getId()
Network.
For example: "eth1"
boolean isPublic()
Network is visible outside of the Virtual Machine
represented by the VagrantPlatform.true if the Network is visible outside fo the
VagrantPlatform, false otherwiseString getMacAddress()
Network.Optional<com.oracle.bedrock.runtime.remote.options.HostName> write(PrintWriter writer, String prefix, String padding)
PrintWriter, optionally
returning the public hostname of the network if public.writer - the PrintWriterprefix - the prefixpadding - the paddingOptional HostName of the network interface (when applicable)default Class<? extends com.oracle.bedrock.Option.Collector> getCollectorClass()
getCollectorClass in interface com.oracle.bedrock.Option.CollectableCopyright © 2017. All rights reserved.