Class DigitalOceanNetworkInterface
java.lang.Object
io.micronaut.discovery.cloud.NetworkInterface
io.micronaut.discovery.cloud.digitalocean.DigitalOceanNetworkInterface
- All Implemented Interfaces:
Serializable
A
NetworkInterface
implementation for Digital Ocean.- Since:
- 1.1
- Author:
- Alvaro Sanchez-Mariscal
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getCidr()
void
setCidr
(int cidr) protected void
setGateway
(String gateway) protected void
protected void
protected void
void
setIpv6Gateway
(String ipv6Gateway) protected void
protected void
protected void
setNetmask
(String netmask) protected void
setNetwork
(String network) Methods inherited from class io.micronaut.discovery.cloud.NetworkInterface
getGateway, getId, getIpv4, getIpv6, getMac, getName, getNetmask, getNetwork
-
Constructor Details
-
DigitalOceanNetworkInterface
public DigitalOceanNetworkInterface()
-
-
Method Details
-
setIpv4
- Overrides:
setIpv4
in classNetworkInterface
- Parameters:
ipv4
- The IPv4 address
-
setIpv6
- Overrides:
setIpv6
in classNetworkInterface
- Parameters:
ipv6
- The IPv6 address
-
setName
- Overrides:
setName
in classNetworkInterface
- Parameters:
name
- The name
-
setMac
- Overrides:
setMac
in classNetworkInterface
- Parameters:
mac
- The MAC address
-
setId
- Overrides:
setId
in classNetworkInterface
- Parameters:
id
- The Id of network interface
-
setGateway
- Overrides:
setGateway
in classNetworkInterface
- Parameters:
gateway
- The network gateway
-
setNetwork
- Overrides:
setNetwork
in classNetworkInterface
- Parameters:
network
- The network
-
setNetmask
- Overrides:
setNetmask
in classNetworkInterface
- Parameters:
netmask
- The network mask
-
getCidr
public int getCidr()- Returns:
- the CIDR mask
-
setCidr
public void setCidr(int cidr) - Parameters:
cidr
- the CIDR mask
-
getIpv6Gateway
- Returns:
- the IPV6 gateway
-
setIpv6Gateway
- Parameters:
ipv6Gateway
- the IPV6 gateway
-