public static class NetworkDeviceManager.NetworkDevice
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
NetworkDeviceManager.NetworkDevice.Configuration |
static class |
NetworkDeviceManager.NetworkDevice.Type
Type of network devices, used within the system to allow for radio or network specific
traffic to be designated on a network by network case.
|
Modifier and Type | Field and Description |
---|---|
NetworkDeviceManager.NetworkDevice.Configuration |
configuration |
java.lang.String |
label |
java.lang.String |
macaddr |
java.lang.String |
prefAddress |
boolean |
prefCreateDefaultRoute |
java.lang.String |
prefGateway |
java.lang.String |
prefNetmask |
NetworkDeviceManager.NetworkDevice.Type[] |
type |
Constructor and Description |
---|
NetworkDevice(java.lang.String macaddr,
java.lang.String label,
NetworkDeviceManager.NetworkDevice.Type[] type,
NetworkDeviceManager.NetworkDevice.Configuration configuration)
Construct a DHCP configured or UNCONFIGURABLE network device, address, netmask, and gateway of the
constructed object will be null.
|
NetworkDevice(java.lang.String macaddr,
java.lang.String label,
NetworkDeviceManager.NetworkDevice.Type[] type,
NetworkDeviceManager.NetworkDevice.Configuration configuration,
java.lang.String prefAddress,
java.lang.String prefNetmask,
java.lang.String prefGateway,
boolean prefCreateDefaultRoute)
Construct a STATIC configured network device.
|
Modifier and Type | Method and Description |
---|---|
java.net.NetworkInterface |
getCleanInterface()
In a very narrow instance the network interface provided will fail
during a joinGroup().
|
java.net.NetworkInterface |
getInterface()
Get the network interface of the device described in the network map file.
|
boolean |
isSupported(NetworkDeviceManager.NetworkDevice.Type t)
Test to see if the type is supported.
|
java.lang.String |
toString()
Provides a human readable string representation of the network device.
|
public final java.lang.String macaddr
public final java.lang.String label
public final NetworkDeviceManager.NetworkDevice.Configuration configuration
public final java.lang.String prefAddress
public final java.lang.String prefNetmask
public final java.lang.String prefGateway
public final boolean prefCreateDefaultRoute
public final NetworkDeviceManager.NetworkDevice.Type[] type
public NetworkDevice(java.lang.String macaddr, java.lang.String label, NetworkDeviceManager.NetworkDevice.Type[] type, NetworkDeviceManager.NetworkDevice.Configuration configuration)
macaddr
- is in the format XX:XX:XX:XX:XX:XXlabel
- freetext not including commastype
- configuration
- public NetworkDevice(java.lang.String macaddr, java.lang.String label, NetworkDeviceManager.NetworkDevice.Type[] type, NetworkDeviceManager.NetworkDevice.Configuration configuration, java.lang.String prefAddress, java.lang.String prefNetmask, java.lang.String prefGateway, boolean prefCreateDefaultRoute)
macaddr
- is in the format XX:XX:XX:XX:XX:XXlabel
- freetext not including commas, if commas are contained in the label they are
replaced with periods.type
- an array of all of the types of traffic that can be stupported by this network device.configuration
- prefAddress
- is a valid preferred IPv4 address, null implies DHCP (netmask and gateway will be
ignored)prefNetmask
- is a valid preferred netmask address, null implies DHCPprefGateway
- is a valid preferred IPv4 address, null implies DHCPprefCreateDefaultRoute
- is whether to create a default route for this network devicepublic java.net.NetworkInterface getInterface()
public java.net.NetworkInterface getCleanInterface()
public boolean isSupported(NetworkDeviceManager.NetworkDevice.Type t)
t
- the typepublic java.lang.String toString()
toString
in class java.lang.Object