?? tasktype.java
字號(hào):
package com.ict.netcom2.task;
public class TaskType {
/**
* ATM被動(dòng)監(jiān)測(cè)任務(wù)
*/
public static final int PASSIVE_ATM = 0x00;
/**
* Ethernet被動(dòng)監(jiān)測(cè)任務(wù)
*/
public static final int PASSIVE_ETH = 0x01;
/**
* 網(wǎng)絡(luò)層性能參數(shù)測(cè)試任務(wù)
*/
public static final int NETWORKLAYER_PERF = 0x02;
/**
* Http應(yīng)用層性能測(cè)試任務(wù)
*/
public static final int HTTP_PERF = 0x03;
/**
* Email應(yīng)用層性能測(cè)試任務(wù)
*/
public static final int EMAIL_PERF = 0x04;
/**
* FTP應(yīng)用層性能測(cè)試任務(wù)
*/
public static final int FTP_PERF = 0x05;
/**
* Telnet應(yīng)用層性能測(cè)試任務(wù)
*/
public static final int TELNET_PERF = 0x06;
/**
* 流媒體性能測(cè)試任務(wù)
*/
public static final int STREAM_PERF = 0x07;
/**
* 可用帶寬測(cè)試任務(wù)
*/
public static final int BANDWIDTH_PERF = 0x08;
/**
* 延遲瓶頸測(cè)試任務(wù)
*/
public static final int BNDELAY_PERF = 0x09;
/**
* 原始數(shù)據(jù)包捕獲任務(wù)
*/
public static final int PKTCAPTURE = 0x0a;
/**
* Ethernet被動(dòng)監(jiān)測(cè)-排序任務(wù)
* Ethernet被動(dòng)監(jiān)測(cè)-用戶自定義監(jiān)測(cè)任務(wù)
*/
public static final int PASS_ETH_TOPN = 0x0b;
/**
* 自定義任務(wù)
*/
public static final int PASS_ETH_CUSTOM = 0x0c;
public static String getType(int taskType) {
switch (taskType) {
case PASSIVE_ATM:
return "PASSIVE_ATM";
case PASSIVE_ETH:
return "PASSIVE_ETH";
case NETWORKLAYER_PERF:
return "NETWORKLAYER_PERF";
case HTTP_PERF:
return "HTTP_PERF";
case EMAIL_PERF:
return "EMAIL_PERF";
case FTP_PERF:
return "FTP_PERF";
case TELNET_PERF:
return "TELNET_PERF";
case STREAM_PERF:
return "STREAM_PERF";
case BANDWIDTH_PERF:
return "BANDWIDTH_PERF";
case BNDELAY_PERF:
return "BNDELAY_PERF";
case PKTCAPTURE:
return "PKTCAPTURE";
case PASS_ETH_TOPN:
return "PASS_ETH_TOPN";
case PASS_ETH_CUSTOM:
return "PASS_ETH_CUSTOM";
default:
return null;
}
}
public static void main(String[] str) {
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -