Package io.micronaut.discovery.cloud
Class NetworkInterface
java.lang.Object
io.micronaut.discovery.cloud.NetworkInterface
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DigitalOceanNetworkInterface
Represents information about a network interface in the Cloud.
- Since:
- 1.0
- Author:
- rvanderwerf, Graeme Rocher
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetId()
getIpv4()
getIpv6()
getMac()
getName()
protected void
setGateway
(String gateway) protected void
protected void
protected void
protected void
protected void
protected void
setNetmask
(String netmask) protected void
setNetwork
(String network)
-
Constructor Details
-
NetworkInterface
public NetworkInterface()
-
-
Method Details
-
getIpv4
- Returns:
- The IPv4 address
-
getIpv6
- Returns:
- The IPv6 address
-
getName
- Returns:
- Name of the Network interface
-
getMac
- Returns:
- The MAC address
-
getId
- Returns:
- The ID of network interface
-
getGateway
- Returns:
- The gateway
-
getNetwork
- Returns:
- The network
-
getNetmask
- Returns:
- The network mask
-
setIpv4
- Parameters:
ipv4
- The IPv4 address
-
setIpv6
- Parameters:
ipv6
- The IPv6 address
-
setName
- Parameters:
name
- The name
-
setMac
- Parameters:
mac
- The MAC address
-
setId
- Parameters:
id
- The ID of network interface
-
setGateway
- Parameters:
gateway
- The network gateway
-
setNetwork
- Parameters:
network
- The network
-
setNetmask
- Parameters:
netmask
- The network mask
-