📄 taskconstants.java
字号:
package cn.myapps.core.task.ejb;
import java.util.Map;
import org.apache.commons.collections.map.LinkedMap;
public class TaskConstants {
public static final int TASK_TYPE_SCRIPT = 0x0000001;
public static final int TASK_TYPE_EXPDATA = 0x0000010;
public static final String RUNNING = "Running";
public static final String STOPPING = "Stopping";
public static final int STARTUP_TYPE_MANUAL = 0;
public static final int STARTUP_TYPE_AUTO = 1;
public static final int STARTUP_TYPE_BANNED = 2;
public static final int REAPET_TYPE_NOTREAPET = 0;
public static final int ONE_DAY = 24 * 60 * 60 * 1000;
public static final int ONE_WEEK = ONE_DAY * 7;
public static final int ONE_MONTH = ONE_DAY * 31;
public static final int REPEAT_TYPE_DAILY = 0x0000002;
public static final int REPEAT_TYPE_WEEKLY = 0x0000020;
public static final int REPEAT_TYPE_MONTHLY = 0x0000200;
public static final int REPEAT_TYPE_NONE = 0;
public static final int[] REPEAT_TYPE = { REPEAT_TYPE_NONE,
REPEAT_TYPE_DAILY, REPEAT_TYPE_WEEKLY, REPEAT_TYPE_MONTHLY };
public static final String[] REAPET_NAMES = { "Does not reapet", "Daily",
"Weely", "Monthly" };
public static Map getREPEAT_TYPE_LIST() {
Map rtn = new LinkedMap();
for (int i = 0; i < REPEAT_TYPE.length; i++) {
rtn.put(new Integer(REPEAT_TYPE[i]), REAPET_NAMES[i]);
}
return rtn;
}
public static String getPeriodName(int periodType) {
for (int i = 0; i < REPEAT_TYPE.length; i++) {
if (REPEAT_TYPE[i] == periodType) {
return REAPET_NAMES[i];
}
}
return "";
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -