|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.eurotech.framework.core.net.AbstractNetInterface<T>
public abstract class AbstractNetInterface<T extends NetInterfaceAddress>
Constructor Summary | |
---|---|
protected |
AbstractNetInterface(NetInterface<? extends NetInterfaceAddress> other)
|
protected |
AbstractNetInterface(String name)
|
Method Summary | |
---|---|
String |
getDriver()
The driver handling the device. |
String |
getDriverVersion()
The version of the driver handling the device. |
String |
getFirmwareVersion()
The firmware version for the device. |
byte[] |
getHardwareAddress()
Returns the hardware address (usually MAC) of the interface if it has one. |
int |
getMTU()
Returns the Maximum Transmission Unit (MTU) of this interface - Design speed of the device, in megabits/second (Mb/s). |
String |
getName()
Returns the name of this NetworkInterface. |
List<T> |
getNetInterfaceAddresses()
Returns a List of all InterfaceAddresses of this network interface. |
NetInterfaceState |
getState()
The current state of the device. |
UsbDevice |
getUsbDevice()
Returns the UsbDevice which provided this NetworkInterface to the system if any. |
boolean |
isAutoConnect()
Returns whether a network interface will auto connect. |
boolean |
isLoopback()
Returns whether a network interface is a loopback interface. |
boolean |
isPointToPoint()
Returns whether a network interface is a point to point interface. |
boolean |
isUp()
Returns whether a network interface is up and running. |
boolean |
isVirtual()
Returns whether this interface is a virtual interface (also called subinterface). |
void |
setAutoConnect(boolean autoConnect)
|
void |
setDriver(String driver)
|
void |
setDriverVersion(String driverVersion)
|
void |
setFirmwareVersion(String firmwareVersion)
|
void |
setHardwareAddress(byte[] hardwareAddress)
|
void |
setLoopback(boolean loopback)
|
void |
setMTU(int mtu)
|
void |
setName(String name)
|
void |
setNetInterfaceAddresses(List<T> interfaceAddresses)
|
void |
setPointToPoint(boolean pointToPoint)
|
void |
setState(NetInterfaceState state)
|
void |
setSupportsMulticast(boolean supportsMulticast)
|
void |
setUp(boolean up)
|
void |
setUsbDevice(UsbDevice usbDevice)
|
void |
setVirtual(boolean virtual)
|
boolean |
supportsMulticast()
Returns whether a network interface supports multicasting or not. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.eurotech.framework.net.NetInterface |
---|
getType |
Constructor Detail |
---|
protected AbstractNetInterface(String name)
protected AbstractNetInterface(NetInterface<? extends NetInterfaceAddress> other)
Method Detail |
---|
public String getName()
NetInterface
getName
in interface NetInterface<T extends NetInterfaceAddress>
public void setName(String name)
public byte[] getHardwareAddress()
NetInterface
getHardwareAddress
in interface NetInterface<T extends NetInterfaceAddress>
public boolean isLoopback()
NetInterface
isLoopback
in interface NetInterface<T extends NetInterfaceAddress>
public boolean isPointToPoint()
NetInterface
isPointToPoint
in interface NetInterface<T extends NetInterfaceAddress>
public boolean isVirtual()
NetInterface
isVirtual
in interface NetInterface<T extends NetInterfaceAddress>
public boolean supportsMulticast()
NetInterface
supportsMulticast
in interface NetInterface<T extends NetInterfaceAddress>
public boolean isUp()
NetInterface
isUp
in interface NetInterface<T extends NetInterfaceAddress>
public int getMTU()
NetInterface
getMTU
in interface NetInterface<T extends NetInterfaceAddress>
public void setMTU(int mtu)
public String getDriver()
NetInterface
getDriver
in interface NetInterface<T extends NetInterfaceAddress>
public void setDriver(String driver)
public String getDriverVersion()
NetInterface
getDriverVersion
in interface NetInterface<T extends NetInterfaceAddress>
public void setDriverVersion(String driverVersion)
public String getFirmwareVersion()
NetInterface
getFirmwareVersion
in interface NetInterface<T extends NetInterfaceAddress>
public void setFirmwareVersion(String firmwareVersion)
public NetInterfaceState getState()
NetInterface
getState
in interface NetInterface<T extends NetInterfaceAddress>
public void setState(NetInterfaceState state)
public UsbDevice getUsbDevice()
NetInterface
getUsbDevice
in interface NetInterface<T extends NetInterfaceAddress>
public void setHardwareAddress(byte[] hardwareAddress)
public void setLoopback(boolean loopback)
public void setPointToPoint(boolean pointToPoint)
public void setVirtual(boolean virtual)
public void setSupportsMulticast(boolean supportsMulticast)
public void setUp(boolean up)
public void setUsbDevice(UsbDevice usbDevice)
public boolean isAutoConnect()
NetInterface
isAutoConnect
in interface NetInterface<T extends NetInterfaceAddress>
public void setAutoConnect(boolean autoConnect)
public List<T> getNetInterfaceAddresses()
NetInterface
getNetInterfaceAddresses
in interface NetInterface<T extends NetInterfaceAddress>
public void setNetInterfaceAddresses(List<T> interfaceAddresses)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |