public class BridgedNetwork extends AbstractNetwork
Option to specify a BridgedNetwork for a VagrantPlatform.
Copyright (c) 2016. All Rights Reserved. Oracle Corporation.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
| Constructor and Description |
|---|
BridgedNetwork(String id,
String macAddress,
String bridgeInterface)
Constructs a
BridgedNetwork. |
| Modifier and Type | Method and Description |
|---|---|
String |
getBridgeInterface()
Obtains the
BridgedNetwork bridge interface. |
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. |
getId, getMacAddressclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCollectorClasspublic BridgedNetwork(String id, String macAddress, String bridgeInterface)
BridgedNetwork.id - the network identifiermacAddress - the mac addressbridgeInterface - the bridge interfacepublic boolean isPublic()
NetworkNetwork is visible outside of the Virtual Machine
represented by the VagrantPlatform.true if the Network is visible outside fo the
VagrantPlatform, false otherwisepublic String getBridgeInterface()
BridgedNetwork bridge interface.BridgedNetwork interfacepublic Optional<com.oracle.bedrock.runtime.remote.options.HostName> write(PrintWriter writer, String prefix, String padding)
NetworkPrintWriter, optionally
returning the public hostname of the network if public.writer - the PrintWriterprefix - the prefixpadding - the paddingOptional HostName of the network interface (when applicable)Copyright © 2017. All rights reserved.