Class SolarisNetworkIF
java.lang.Object
oshi.hardware.common.AbstractNetworkIF
oshi.hardware.platform.unix.solaris.SolarisNetworkIF
- All Implemented Interfaces:
oshi.hardware.NetworkIF
@ThreadSafe
public final class SolarisNetworkIF
extends oshi.hardware.common.AbstractNetworkIF
SolarisNetworks class.
-
Nested Class Summary
Nested classes/interfaces inherited from interface oshi.hardware.NetworkIF
oshi.hardware.NetworkIF.IfOperStatus -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonglonglonglonglongstatic List<oshi.hardware.NetworkIF> getNetworks(boolean includeLocalInterfaces) Gets all network interfaces on this machinelonglonglonglonggetSpeed()longbooleanMethods inherited from class oshi.hardware.common.AbstractNetworkIF
getDisplayName, getIndex, getIPv4addr, getIPv6addr, getMacaddr, getMTU, getName, getNetworkInterfaces, getPrefixLengths, getSubnetMasks, isKnownVmMacAddr, queryNetworkInterface, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface oshi.hardware.NetworkIF
getIfAlias, getIfOperStatus, getIfType, getNdisPhysicalMediumType, isConnectorPresent
-
Constructor Details
-
SolarisNetworkIF
- Throws:
InstantiationException
-
-
Method Details
-
getNetworks
Gets all network interfaces on this machine- Parameters:
includeLocalInterfaces- include local interfaces in the result- Returns:
- A list of
NetworkIFobjects representing the interfaces
-
getBytesRecv
public long getBytesRecv() -
getBytesSent
public long getBytesSent() -
getPacketsRecv
public long getPacketsRecv() -
getPacketsSent
public long getPacketsSent() -
getInErrors
public long getInErrors() -
getOutErrors
public long getOutErrors() -
getInDrops
public long getInDrops() -
getCollisions
public long getCollisions() -
getSpeed
public long getSpeed() -
getTimeStamp
public long getTimeStamp() -
updateAttributes
public boolean updateAttributes()
-