Package oshi.driver.mac.net
Class NetStat.IFdata
java.lang.Object
oshi.driver.mac.net.NetStat.IFdata
- Enclosing class:
NetStat
Class to encapsulate IF data for method return
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final long
private final long
private final long
private final long
private final int
private final long
private final long
private final long
private final long
private final long
private final long
-
Constructor Summary
ConstructorsConstructorDescriptionIFdata
(int ifType, long oPackets, long iPackets, long oBytes, long iBytes, long oErrors, long iErrors, long collisions, long iDrops, long speed, long timeStamp) -
Method Summary
Modifier and TypeMethodDescriptionlong
long
long
long
int
long
long
long
long
long
getSpeed()
long
-
Field Details
-
ifType
private final int ifType -
oPackets
private final long oPackets -
iPackets
private final long iPackets -
oBytes
private final long oBytes -
iBytes
private final long iBytes -
oErrors
private final long oErrors -
iErrors
private final long iErrors -
collisions
private final long collisions -
iDrops
private final long iDrops -
speed
private final long speed -
timeStamp
private final long timeStamp
-
-
Constructor Details
-
IFdata
IFdata(int ifType, long oPackets, long iPackets, long oBytes, long iBytes, long oErrors, long iErrors, long collisions, long iDrops, long speed, long timeStamp)
-
-
Method Details
-
getIfType
public int getIfType()- Returns:
- the ifType
-
getOPackets
public long getOPackets()- Returns:
- the oPackets
-
getIPackets
public long getIPackets()- Returns:
- the iPackets
-
getOBytes
public long getOBytes()- Returns:
- the oBytes
-
getIBytes
public long getIBytes()- Returns:
- the iBytes
-
getOErrors
public long getOErrors()- Returns:
- the oErrors
-
getIErrors
public long getIErrors()- Returns:
- the iErrors
-
getCollisions
public long getCollisions()- Returns:
- the collisions
-
getIDrops
public long getIDrops()- Returns:
- the iDrops
-
getSpeed
public long getSpeed()- Returns:
- the speed
-
getTimeStamp
public long getTimeStamp()- Returns:
- the timeStamp
-