|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esf.device.network.service.NetworkDeviceContainer
public class NetworkDeviceContainer
Container class for @INetworkDevice parameters Copyright � 2009 Eurotech Inc. All rights reserved.
| Constructor Summary | |
|---|---|
NetworkDeviceContainer()
Constructor to define an empty @NetworknetDeviceContainer |
|
NetworkDeviceContainer(java.lang.String iface)
Constructor to define a fully populated DHCP @NetworkDeviceContainer |
|
NetworkDeviceContainer(java.lang.String iface,
int type)
Constructor to define a fully populated DHCP @NetworkDeviceContainer |
|
NetworkDeviceContainer(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,
java.lang.String primaryDns,
java.lang.String secondaryDns)
Constructor to define a fully populated STATIC @NetworkDeviceContainer |
|
| 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 |
java.lang.String |
getPrimaryDns()
Gets the primary DNS address associated with this interface |
java.lang.String |
getSecondaryDns()
Gets the secondary DNS address associated with 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 |
setPrimaryDns(java.lang.String primaryDns)
Sets the primary DNS address for this interface |
void |
setSecondaryDns(java.lang.String secondaryDns)
Sets the secondary DNS address for this interface |
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 NetworkDeviceContainer(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,
java.lang.String primaryDns,
java.lang.String secondaryDns)
throws java.lang.Exception
iface - the logical interface name for a given network devicetype - the type of a addressing that will be used for this @NetworkDeviceContainer, either @INetworkDeviceService.DHCP oripAddress - 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 STATICprimaryDns - the primary DNS to be assigned to this interface. This is only valid if type is STATICsecondaryDns - the secondary DNS to be assigned to this interface. This is only valid if type is STATIC
java.lang.Exception - if the parameters are invalid
public NetworkDeviceContainer(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 @NetworkDeviceContainer, either @INetworkDeviceService.DHCP or
java.lang.Exception - if the parameters are invalidpublic NetworkDeviceContainer(java.lang.String iface)
iface - the logical interface name for a given nthernet device
public NetworkDeviceContainer()
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 @NetworkDeviceContainerpublic int getType()
public void setType(int type)
throws java.lang.Exception
type - the type (DHCP or STATIC) to be associated with this @NetworkDeviceContainer
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 java.lang.String getPrimaryDns()
public void setPrimaryDns(java.lang.String primaryDns)
throws java.lang.Exception
primaryDns - the primary DNS address to specify for this interface
java.lang.Exception - if the primary DNS address is not valid or if the type is set to DHCPpublic java.lang.String getSecondaryDns()
public void setSecondaryDns(java.lang.String secondaryDns)
throws java.lang.Exception
secondaryDns - the secondary DNS address to specify for this interface
java.lang.Exception - if the secondary DNS 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 | |||||||||