com.esf.device.ethernet.service
Interface IEthernetDeviceService
- All Superinterfaces: 
 - INetworkDeviceService
 
public interface IEthernetDeviceService
- extends INetworkDeviceService
 
Represents an Ethernet device in ESF.  This API extends the INEtworkDeviceService because an
 IEthernetDeviceService is an INetworkDeviceService as well.
 
 CONFIGURATION: IEsfConfigurationService interface
 
 Configuration will be accepted in the form of key/value pairs.  The key/value pairs are
 strictly defined here:
 
   CONFIG_ENTRY -> KEY + "=" + VALUE
   KEY          -> TYPE + INDEX + "_" + PARAM
   TYPE         -> "eth"
   INDEX        -> "0" | "1" | "2" | ... | "N"
   PARAM        -> "type" | "ipaddress" | "netmask" | "network" | "broadcast" | "gateway"
   VALUE              -> (value of the specified parameter)
 
   EXAMPLE:
   
   eth0_type=static
   eth0_ipaddress=192.168.1.56
   eth0_netmask=255.255.255.1
   eth0_network=192.168.1.0
   eth0_broadcast=192.168.1.255
   eth0_gateway=192.168.1.1
   
 Copyright © 2009 Eurotech Inc. All rights reserved.
| 
Field Summary | 
static java.lang.String | 
SERVICE_NAME
 
          Reports the class name representing this interface. | 
 
 
| 
Method Summary | 
 boolean | 
isLinkUp(java.lang.String ifaceName)
 
          Checks to see if an Ethernet interface has a link or not. | 
 
| Methods inherited from interface com.esf.device.network.service.INetworkDeviceService | 
bringInterfaceDown, bringInterfaceDown, bringInterfaceUp, bringInterfaceUp, getBroadcast, getGateway, getIfaceNames, getIpAddress, getMacAddress, getNetmask, getNetwork, getParameters, getPrimaryDns, getSecondaryDns, getType, isIfaceUp, setBroadcast, setGateway, setIpAddress, setNetmask, setNetwork, setPrimaryDns, setSecondaryDns, setToDhcp, setToNull, setToStatic | 
 
SERVICE_NAME
static final java.lang.String SERVICE_NAME
- Reports the class name representing this interface.
 
isLinkUp
boolean isLinkUp(java.lang.String ifaceName)
- Checks to see if an Ethernet interface has a link or not.
 
- Parameters:
 ifaceName - the interface to check the link of
- Returns:
 - true if the link is present, otherwise false