com.eurotech.framework.linux.net.util
Class IwLinkTool

java.lang.Object
  extended by com.eurotech.framework.linux.net.util.IwLinkTool
All Implemented Interfaces:
LinkTool

public class IwLinkTool
extends Object
implements LinkTool


Constructor Summary
IwLinkTool(String tool, String ifaceName)
          ethtool constructor
 
Method Summary
 boolean get()
          ethtool 'get' operation
 String getDuplex()
          Reports duplex (full or half)
 String getIfaceName()
          Reports interface name
 int getSpeed()
          Reports link speed in bits/s
 boolean isLinkDetected()
          Reports link status
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IwLinkTool

public IwLinkTool(String tool,
                  String ifaceName)
ethtool constructor

Parameters:
ifaceName - - interface name as String
Method Detail

get

public boolean get()
            throws EsfException
Description copied from interface: LinkTool
ethtool 'get' operation

Specified by:
get in interface LinkTool
Returns:
operation status as boolean
Throws:
EsfException

getIfaceName

public String getIfaceName()
Description copied from interface: LinkTool
Reports interface name

Specified by:
getIfaceName in interface LinkTool
Returns:
interface name as String

isLinkDetected

public boolean isLinkDetected()
Description copied from interface: LinkTool
Reports link status

Specified by:
isLinkDetected in interface LinkTool
Returns:
link status - true if link is detected, otherwise false boolean

getSpeed

public int getSpeed()
Description copied from interface: LinkTool
Reports link speed in bits/s

Specified by:
getSpeed in interface LinkTool
Returns:
link speed as int

getDuplex

public String getDuplex()
Description copied from interface: LinkTool
Reports duplex (full or half)

Specified by:
getDuplex in interface LinkTool
Returns:
duplex as String


Copyright © 2013. All Rights Reserved.