public class JniNetStat extends java.lang.Object implements AlarmListener
Modifier and Type | Class and Description |
---|---|
class |
JniNetStat.NetProbe |
Modifier and Type | Field and Description |
---|---|
static int |
TCP_CLOSE |
static int |
TCP_CLOSE_WAIT |
static int |
TCP_CLOSING |
static int |
TCP_ESTABLISHED |
static int |
TCP_FIN_WAIT1 |
static int |
TCP_FIN_WAIT2 |
static int |
TCP_LAST_ACK |
static int |
TCP_LISTEN |
static int |
TCP_SYN_RECV |
static int |
TCP_SYN_SENT |
static int |
TCP_TIME_WAIT |
Modifier and Type | Method and Description |
---|---|
static JniNetStat |
create() |
AbstractMeter |
createActiveProbe(java.lang.String name,
int type) |
void |
handleAlarm(Alarm alarm)
Handles a callback from an alarm.
|
static boolean |
isEnabled() |
double |
sampleNet(int type) |
void |
setSamplePeriod(long period) |
public static final int TCP_ESTABLISHED
public static final int TCP_SYN_SENT
public static final int TCP_SYN_RECV
public static final int TCP_FIN_WAIT1
public static final int TCP_FIN_WAIT2
public static final int TCP_TIME_WAIT
public static final int TCP_CLOSE
public static final int TCP_CLOSE_WAIT
public static final int TCP_LAST_ACK
public static final int TCP_LISTEN
public static final int TCP_CLOSING
public static JniNetStat create()
public static boolean isEnabled()
public void setSamplePeriod(long period)
public AbstractMeter createActiveProbe(java.lang.String name, int type)
public double sampleNet(int type)
public void handleAlarm(Alarm alarm)
AlarmListener
handleAlarm
in interface AlarmListener