|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.eurotech.framework.linux.net.util.EthTool
public class EthTool
Defines ethtool utility
| Constructor Summary | |
|---|---|
EthTool(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 |
|---|
public EthTool(String tool,
String ifaceName)
ifaceName - - interface name as String| Method Detail |
|---|
public boolean get()
throws EsfException
LinkTool
get in interface LinkToolboolean
EsfExceptionpublic String getIfaceName()
LinkTool
getIfaceName in interface LinkToolStringpublic boolean isLinkDetected()
LinkTool
isLinkDetected in interface LinkToolbooleanpublic int getSpeed()
LinkTool
getSpeed in interface LinkToolintpublic String getDuplex()
LinkTool
getDuplex in interface LinkToolString
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||