com.eurotech.framework.linux.net.util
Interface LinkTool

All Known Implementing Classes:
EthTool, IwLinkTool, MiiTool

public interface LinkTool

Defines link tool interface

Author:
ilya.binshtok

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
 

Method Detail

get

boolean get()
            throws EsfException
ethtool 'get' operation

Returns:
operation status as boolean
Throws:
EsfException

getIfaceName

String getIfaceName()
Reports interface name

Returns:
interface name as String

isLinkDetected

boolean isLinkDetected()
Reports link status

Returns:
link status - true if link is detected, otherwise false boolean

getSpeed

int getSpeed()
Reports link speed in bits/s

Returns:
link speed as int

getDuplex

String getDuplex()
Reports duplex (full or half)

Returns:
duplex as String


Copyright © 2013. All Rights Reserved.