|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.clackrouter.protocol.data.VNSHWInfo.InterfaceEntry
public class VNSHWInfo.InterfaceEntry
Encapsulates interface information.
| Constructor Summary | |
|---|---|
VNSHWInfo.InterfaceEntry(java.lang.String name)
Constructs an interface entry. |
|
| Method Summary | |
|---|---|
java.nio.ByteBuffer |
getEthernetAddress()
Returns the hardware address of an interface. |
java.nio.ByteBuffer |
getIPAddress()
Returns the IP address of an interface. |
java.nio.ByteBuffer |
getMask()
Returns the subnet mask of an interface. |
java.lang.String |
getName()
Returns the name of the interface. |
int |
getSpeed()
Returns the speed of an interface, in bits per second. |
protected java.lang.StringBuffer |
getStringBuffer(java.nio.ByteBuffer byteBuffer)
|
java.nio.ByteBuffer |
getSubnet()
Returns the subnet mask of an interface. |
void |
setEthernetAddress(java.nio.ByteBuffer ethernetAddress)
Sets the hardware address of an interface. |
void |
setIPAddress(java.nio.ByteBuffer ipAddress)
Sets the IP address of an interface. |
void |
setMask(java.nio.ByteBuffer mask)
Sets the subnet mask of an interface. |
void |
setName(java.lang.String name)
Sets the name of an interface. |
void |
setSpeed(int speed)
Sets the speed of an interface, in bits per second. |
void |
setSubnet(java.nio.ByteBuffer subnet)
Sets the subnet IP address of an interface. |
java.lang.String |
toString()
Represents the interface information in a readable format, by field. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public VNSHWInfo.InterfaceEntry(java.lang.String name)
name - Name of an interface, e.g. eth0.| Method Detail |
|---|
public java.lang.String getName()
public int getSpeed()
public java.nio.ByteBuffer getSubnet()
public java.nio.ByteBuffer getEthernetAddress()
public java.nio.ByteBuffer getIPAddress()
public java.nio.ByteBuffer getMask()
public void setName(java.lang.String name)
name - Name of an interfacepublic void setSpeed(int speed)
speed - Speed of an interfacepublic void setSubnet(java.nio.ByteBuffer subnet)
subnet - Subnet IP address of an interfacepublic void setEthernetAddress(java.nio.ByteBuffer ethernetAddress)
ethernetAddress - Byte buffer containing hardware address of
an interfacepublic void setIPAddress(java.nio.ByteBuffer ipAddress)
ipAddress - Byte buffer containing IP address of an interfacepublic void setMask(java.nio.ByteBuffer mask)
mask - Byte buffer containing subnet mask of an interfacepublic java.lang.String toString()
toString in class java.lang.Objectprotected java.lang.StringBuffer getStringBuffer(java.nio.ByteBuffer byteBuffer)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||