|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.esf.device.ethernet.service.EthernetDevice
Container class for Ethernet device parameters
| Constructor Summary | |
EthernetDevice()
constructor to define an empty EthernetDevice |
|
EthernetDevice(java.lang.String iface)
constructor to define a fully populated DHCP EthernetDevice |
|
EthernetDevice(java.lang.String iface,
int type)
constructor to define a fully populated DHCP EthernetDevice |
|
EthernetDevice(java.lang.String iface,
int type,
java.lang.String ipAddress,
java.lang.String netmask,
java.lang.String network,
java.lang.String broadcast,
java.lang.String gateway)
constructor to define a fully populated STATIC EthernetDevice |
|
| Method Summary | |
java.lang.String |
getBroadcast()
gets the broadcast address for this interface |
java.lang.String |
getGateway()
gets the gateway address associated with this interface |
int |
getGatewayMetric()
gets the gateway metric number associated with this interface |
java.lang.String |
getIface()
gets the interface associated with this interface |
java.lang.String |
getIpAddress()
gets the IP address associated with this interface |
java.lang.String |
getNetmask()
gets the network mask for this interface |
java.lang.String |
getNetwork()
gets the network that is currently defined for this interface |
int |
getType()
gets the type associated with this interface |
boolean |
isOnBoot()
checks to see if the flag is set to denote the interface should come up on boot |
void |
setBroadcast(java.lang.String broadcast)
sets the broadcast address for this interface |
void |
setGateway(java.lang.String gateway)
sets the gateway address for this interface |
void |
setGatewayMetric(int gatewayMetric)
sets the gateway metric number to be associated with this interface |
void |
setIface(java.lang.String iface)
sets the interface associated with this interface |
void |
setIpAddress(java.lang.String ipAddress)
sets the IP address for this interface |
void |
setNetmask(java.lang.String netmask)
sets the network mask for this interface |
void |
setNetwork(java.lang.String network)
sets the network for this interface |
void |
setOnBoot(boolean onBoot)
sets the flag to denote this interface should come up on boot |
void |
setType(int type)
sets the type to be associated with this interface |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EthernetDevice(java.lang.String iface,
int type,
java.lang.String ipAddress,
java.lang.String netmask,
java.lang.String network,
java.lang.String broadcast,
java.lang.String gateway)
throws java.lang.Exception
iface - the logical interface name for a given Ethernet devicetype - the type of a addressing that will be used for this EthernetDevice, either IEthernetDeviceService.DHCP or
IEthernetDeviceService.STATICipAddress - the IP address to be assigned to this interface. This is only valid if type is STATICnetmask - the network mask to be assigned to this interface. This is only valid if type is STATICnetwork - the network to be assigned to this interface. This is only valid if type is STATICbroadcast - the broadcast address to be assigned to this interface. This is only valid if type is STATICgateway - the gateway to be assigned to this interface. This is only valid if type is STATIC
java.lang.Exception - if the parameters are invalid
public EthernetDevice(java.lang.String iface,
int type)
throws java.lang.Exception
iface - the logical interface name for a given Ethernet devicetype - the type of a addressing that will be used for this EthernetDevice, either IEthernetDeviceService.DHCP or
IEthernetDeviceService.STATIC
java.lang.Exception - if the parameters are invalidpublic EthernetDevice(java.lang.String iface)
iface - the logical interface name for a given Ethernet device
public EthernetDevice()
throws java.lang.Exception
java.lang.Exception - if there is an error| Method Detail |
public java.lang.String getIface()
public void setIface(java.lang.String iface)
iface - the new interface to assign to this EthernetDevicepublic int getType()
public void setType(int type)
throws java.lang.Exception
type - the type (DHCP or STATIC) to be associated with this EthernetDevice
java.lang.Exception - if the type is not validpublic java.lang.String getIpAddress()
public void setIpAddress(java.lang.String ipAddress)
throws java.lang.Exception
ipAddress - the IP address to specify for this interface
java.lang.Exception - if the address is not valid or if the type is set to DHCPpublic java.lang.String getNetmask()
public void setNetmask(java.lang.String netmask)
throws java.lang.Exception
netmask - the network mask to specify for this interface
java.lang.Exception - if the network mask is not valid or if the type is set to DHCPpublic java.lang.String getNetwork()
public void setNetwork(java.lang.String network)
throws java.lang.Exception
network - the network to specify for this interface
java.lang.Exception - if the network is not valid or if the type is set to DHCPpublic java.lang.String getBroadcast()
public void setBroadcast(java.lang.String broadcast)
throws java.lang.Exception
broadcast - the broadcast address to specify for this interface
java.lang.Exception - if the broadcast address is not valid or if the type is set to DHCPpublic java.lang.String getGateway()
public void setGateway(java.lang.String gateway)
throws java.lang.Exception
gateway - the gateway address to specify for this interface
java.lang.Exception - if the gateway address is not valid or if the type is set to DHCPpublic boolean isOnBoot()
public void setOnBoot(boolean onBoot)
onBoot - the new value to denote the the interface should come up at bootpublic int getGatewayMetric()
public void setGatewayMetric(int gatewayMetric)
gatewayMetric - an int representing the gateway metric to set
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||