public class BandwidthMeterKit
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
ARG1_END
|
static int |
ARG1_ERROR
|
static int |
ARG1_STOPPED
|
static int |
ARG1_WORKING
|
static int |
ARG2_END_BY_FILE_TOO_SMALL
|
static int |
ARG2_END_BY_FORCE
|
static int |
ARG2_END_WITH_TIME_UP
|
static int |
ARG2_ERROR_ALREADY_WORKING
|
static int |
ARG2_ERROR_BAD_RESPONSE_CODE
|
static int |
ARG2_ERROR_NOT_STARTED
|
static int |
ARG2_ERROR_TIMEOUT_WHEN_CONNECT
|
static int |
ARG2_ERROR_TOO_MANY_CONNECT_TIMEOUT
|
static int |
ARG2_ERROR_WORKER_THREAD_BAD_RESPONSE_CODE
|
static int |
ARG2_ERROR_WORKER_THREAD_EXCEPTION
|
static int |
ARG2_WORKING_BUILD
|
static int |
ARG2_WORKING_REPORT
|
static int |
ARG2_WORKING_STAGE_1
|
static int |
ARG2_WORKING_STAGE_2
|
static int |
WHAT
|
Constructor and Description |
---|
BandwidthMeterKit() |
Modifier and Type | Method and Description |
---|---|
float |
getAverage()
|
java.lang.String |
getAvgString()
|
float |
getCurrent()
|
java.lang.String |
getCurrString()
|
float |
getEvaluation()
|
java.lang.String |
getEvaString()
|
float |
getMaximum()
|
java.lang.String |
getMaxString()
|
static boolean |
isNetworkURL(java.lang.String url)
|
void |
recheckEva() |
void |
reset()
|
void |
setAverage(float average)
|
void |
setBitShow(boolean isBitPerSecond)
|
void |
setCurrent(float current)
|
void |
setEvaluation(float evaluation)
|
void |
setMaximum(float maximum)
|
public static final int WHAT
public static final int ARG1_WORKING
public static final int ARG1_STOPPED
public static final int ARG1_END
public static final int ARG1_ERROR
public static final int ARG2_WORKING_BUILD
public static final int ARG2_WORKING_STAGE_1
public static final int ARG2_WORKING_STAGE_2
public static final int ARG2_WORKING_REPORT
public static final int ARG2_END_WITH_TIME_UP
public static final int ARG2_END_BY_FILE_TOO_SMALL
public static final int ARG2_END_BY_FORCE
public static final int ARG2_ERROR_ALREADY_WORKING
public static final int ARG2_ERROR_NOT_STARTED
public static final int ARG2_ERROR_BAD_RESPONSE_CODE
public static final int ARG2_ERROR_TIMEOUT_WHEN_CONNECT
public static final int ARG2_ERROR_WORKER_THREAD_EXCEPTION
public static final int ARG2_ERROR_WORKER_THREAD_BAD_RESPONSE_CODE
public static final int ARG2_ERROR_TOO_MANY_CONNECT_TIMEOUT
public static boolean isNetworkURL(java.lang.String url)
url
- public void setBitShow(boolean isBitPerSecond)
isBitPerSecond
- public float getCurrent()
public java.lang.String getCurrString()
public void setCurrent(float current)
current
- public float getMaximum()
public java.lang.String getMaxString()
public void setMaximum(float maximum)
maximum
- public float getAverage()
public java.lang.String getAvgString()
public void setAverage(float average)
average
- public void recheckEva()
public float getEvaluation()
public java.lang.String getEvaString()
public void setEvaluation(float evaluation)
evaluation
- public void reset()