亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? constant.java

?? 一個(gè)用于監(jiān)控WEB服務(wù)器和數(shù)據(jù)庫服務(wù)器的客戶端程序。
?? JAVA
字號(hào):
/**
 * <p>Title: 卓博營運(yùn)支撐系統(tǒng)</p>
 *
 * <p>Description: 為本企業(yè)內(nèi)部運(yùn)作提供支撐,為企業(yè)資源的E化管理提供解決方案</p>
 *
 * <p>Copyright: Copyright (c) 2006</p>
 *
 * <p>Company: 卓博信息科技有限公司</p>
 *
 * @author Henry
 * @version 1.0
 */
package com.jobcn.control;

import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.util.HashMap;
import java.util.List;
import java.awt.Font;
import javax.swing.Icon;
import javax.swing.ImageIcon;

import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.Element;
import org.dom4j.io.SAXReader;

/**  Constant.java
 *   function: 系統(tǒng)初始化類
 *   describe:
 */

public final class Constant {
	private static String getContent() {
		StringBuilder sb = new StringBuilder();
		sb.append("    <system>\r\n");
		sb.append("        <systemName>"
				+ InitConstant.systemName + "</systemName>\r\n"
		);
		sb.append("        <aboutText>"
				+ InitConstant.aboutText + "</aboutText>\r\n"
		);
		sb.append("        <systemIconPath>"
				+ InitConstant.systemIconPath + "</systemIconPath>\r\n"
		);
		sb.append("        <trayIconPath>"
				+ InitConstant.trayIconPath + "</trayIconPath>\r\n"
		);
		sb.append("        <systemConfPath>"
				+ InitConstant.systemConfPath + "</systemConfPath>\r\n"
		);
		sb.append("        <taskConfPath>"
				+ InitConstant.taskConfPath + "</taskConfPath>\r\n"
		);
		sb.append("        <logPath>"
				+ InitConstant.logPath + "</logPath>\r\n"
		);
		sb.append("        <mailServers>"
				+ InitConstant.mailServers + "</mailServers>\r\n"
		);
		sb.append("    </system>\r\n");
		sb.append("    <tasks>\r\n");
		String[] packNames = InitConstant.packNames.split(",");
		String[] packPaths = InitConstant.packPaths.split(",");
		for (int i=0;i<packNames.length;i++) {
			sb.append("        <task>\r\n");
			sb.append("            <name>"
					+ packNames[i] + "</name>\r\n"
			);
			sb.append("            <path>"
					+ packPaths[i] + "</path>\r\n"
			);
			sb.append("        </task>\r\n");
		}
		sb.append("    </tasks>\r\n");
		return sb.toString();
	}
	
	private static String getSystemValue(String elementName) {
		return systemFields.element(elementName).getText();
	}
	
	private static String[] getTasksArrayValue(String elementName) {
		String[] result = new String[tasks.size()];
		for (int j = 0; j < tasks.size(); j++) {
			result[j] = ((Element)tasks.get(j)).element(elementName).getText();
		}
		return result;
	}
	
	private static SAXReader reader;
	private static Document doc;
	private static Element root, systemFields, tasksFields;
	private static List tasks;
	private static String systemTag = "system", tasksTag = "tasks";
	private static final File file = new File(InitConstant.systemConfPath);
	public static final String logInitText = 
		"<?xml version=\"1.0\" encoding=\"gb2312\"?>\r\n<log>\r\n</log>";
	static {
		if(!file.exists()) {
			file.getParentFile().mkdir();
			StringBuilder sb = new StringBuilder();
			sb.append("<?xml version=\"1.0\" encoding=\"gb2312\"?>\r\n");
			sb.append("<Constants>\r\n");
			sb.append(getContent());
			sb.append("</Constants>\r\n");
			try {
				BufferedWriter writer = new BufferedWriter(new FileWriter(file));
				writer.write(sb.toString());
				writer.flush();
				writer.close();
				sb = null;
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
		reader = new SAXReader();
		try {
			doc = reader.read(file);
			root = doc.getRootElement();
			systemFields = root.element(systemTag);
			tasksFields = root.element(tasksTag);
			tasks = tasksFields.elements();
		} catch (DocumentException e) {
			e.printStackTrace();
		}
		// 初始化日志文件
		File logFile = new File(systemFields.element("logPath").getText());
		if (!logFile.exists()) {
			try {
				BufferedWriter bw = new BufferedWriter(new FileWriter(logFile));
				bw.write(logInitText);
				bw.flush();
				bw.close();
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
	}
	
	public static final String[] taskListData = InitConstant.taskListData.split(",");
	public static final String[] generalData = InitConstant.generalData.split(",");
	public static final String[] stepData = InitConstant.stepData.split(",");
	public static final String[] attempData = InitConstant.attempData.split(",");
	public static final String[] attempType = InitConstant.attempType.split(",");
	public static final String[] notifyData = InitConstant.notifyData.split(",");
	public static final String[] generalType = InitConstant.generalType.split(",");
	public static final String[] stepType = InitConstant.stepType.split(",");
	public static final String[] stepSuccessAction = InitConstant.stepSuccessAction.split(",");
	public static final String[] stepFailureAction = InitConstant.stepFailureAction.split(",");
	public static final String[] notifyType = InitConstant.notifyType.split(",");
	public static final String[] notifyExecResult = InitConstant.notifyExecResult.split(",");
	public static final String[] weekOfMonth = InitConstant.weekOfMonth.split(",");
	public static final String[] dayOfWeek = InitConstant.dayOfWeek.split(",");
	public static final String[] months = InitConstant.months.split(",");
	public static final String[] generalXmlField = InitConstant.generalXmlField.split(",");
	public static final String[] stepXmlField = InitConstant.stepXmlField.split(",");
	public static final String[] attempXmlField = InitConstant.attempXmlField.split(",");
	public static final String[] notifyXmlField = InitConstant.notifyXmlField.split(",");
	public static final Font systemFont = new Font("", Font.PLAIN, 12);
	public static final String systemName = getSystemValue("systemName");
	public static final String aboutText = getSystemValue("aboutText");
	public static final Icon systemIcon = new ImageIcon(getSystemValue("systemIconPath"));
	public static final ImageIcon trayIcon = new ImageIcon(getSystemValue("trayIconPath"));
	public static final String systemConfPath = getSystemValue("systemConfPath");
	public static final String taskConfPath = getSystemValue("taskConfPath");
	public static final String logPath = getSystemValue("logPath");
	public static final String[] mailServers = getSystemValue("mailServers").split(",");
	
	//	 以下以 'STEP_TYPE_' 開頭的字段值與stepType中元素位置需一一對(duì)應(yīng)
	public static final int STEP_TYPE_MONITOR = 0;
	public static final int STEP_TYPE_COPY = 1;
	public static final int STEP_TYPE_BACKUP = 2;
	public static final int STEP_TYPE_OTHER = 3;
//	 stepPack 與 stepPath 需一一對(duì)應(yīng)
	public static final String[] stepPack = getTasksArrayValue("name");
	public static final String[] stepPath = getTasksArrayValue("path");
	public static HashMap<Integer, String[]> packMap = new HashMap<Integer, String[]>();
	public static HashMap<Integer, String> typeMap = new HashMap<Integer, String>();
	static {
		for (int i = 0; i < stepType.length; i++) {
			typeMap.put(new Integer(i), stepType[i]);
		}
	}
	static {
		for (int i = 0; i < stepPack.length; i++) {
			packMap.put(new Integer(i), new String[]{stepPack[i], stepPath[i]});
		}
	}
	


	
	// 靜態(tài)常量類
	private static final class InitConstant {
		public static final String systemName = "任務(wù)管理系統(tǒng) V1.0"; 
		public static final String aboutText = 
			"&lt;html&gt;&lt;b&gt;歡迎使用任務(wù)管理系統(tǒng)&lt;BR&gt;"
			+"版本:v1.0&lt;BR&gt;作者:Henry&lt;/b&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;"
			+"版權(quán)所有:1999-2006東莞市卓博信息科技有限公司 粵B2-20040458";
		public static final String systemIconPath = "img/taskManager.jpg";
		public static final String trayIconPath = "img/taskManager.jpg";
		public static final String systemConfPath = "conf/sys/config.xml";
		public static final String taskConfPath = "conf/task/";
		public static final String logPath = "log/message.xml";
		public static final String taskListData = 
			"序號(hào),任務(wù)名稱,任務(wù)類型,描述,創(chuàng)建時(shí)間,上次修改時(shí)間,啟動(dòng)/中止";
		public static final String generalData = 
			"名稱,分類,描述,創(chuàng)建時(shí)間,上次修改時(shí)間";
		public static final String stepData = 
			"序號(hào),步驟名稱,類型,別名,路徑,成功時(shí),失敗時(shí),輸出文件";
		public static final String attempData = 
			"序號(hào),調(diào)度名稱,調(diào)度類型,執(zhí)行頻率,創(chuàng)建時(shí)間,上次更新時(shí)間";//,"啟用"};
		public static final String attempType = "自動(dòng),一次,重復(fù)";
		public static final String notifyData = 
			"郵件方式,郵件方式條件,郵件地址,抄送,即時(shí)方式,即時(shí)條件,在線ID";
		public static final String generalType = "類型一,類型二,類型三,類型四";
		public static final String stepType = "監(jiān)控,復(fù)制,備份,其他";
		// stepPack 與 stepPath 需一一對(duì)應(yīng)
		public static final String packNames = 
			"復(fù)制一,復(fù)制二,復(fù)制三,復(fù)制四,監(jiān)控WEB服務(wù)器";
		public static final String packPaths = 
			"com.jobcn.task.SALEDeptCusTractList_dest,"
			+"com.jobcn.task.SALEDept_TP,"
			+"com.jobcn.task.SALEDeptCusTractList,"
			+"com.jobcn.task.SALEPerCusTractList,"
			+"com.jobcn.task.ServerMonitor";
		public static final String stepSuccessAction = 
			"退出報(bào)告成功的步驟,退出報(bào)告失敗的步驟,轉(zhuǎn)到下一步,轉(zhuǎn)到第一步";
		public static final String stepFailureAction = 
			"退出報(bào)告成功的步驟,退出報(bào)告失敗的步驟,轉(zhuǎn)到下一步,轉(zhuǎn)到第一步";
		public static final String notifyType = "電子郵件,即時(shí)通信";
		public static final String notifyExecResult = 
			"當(dāng)任務(wù)執(zhí)行成功時(shí),當(dāng)任務(wù)執(zhí)行失敗時(shí),當(dāng)任務(wù)完成時(shí)";
		public static final String weekOfMonth = 
			"第一個(gè),第二個(gè),第三個(gè),第四個(gè),最后一個(gè)";
		public static final String dayOfWeek = 
			"星期一,星期二,星期三,星期四,星期五,星期六,星期日";
		public static final String months = 
			"一月,二月,三月,四月,五月,六月,七月,八月,九月,十月,十一月,十二月"
		;
		public static final String generalXmlField = 
			"name,type,desc,create,update";
		public static final String stepXmlField = 
			"id,name,type,byname,path,successAction,failureAction,outputFile";
		public static final String attempXmlField = 
			"id,attempName,execCode,intervalType,createDate,"
			+"updateDate,execDate,execHour,execMinute,"
			+"intervalCode,anyDayJI,anyWeekJI,anyMonthSelectCode,"
			+"anyDayOfMonthJI,anyWeekOfMonthJI,anyDayOfWeekJI,"
			+"hourOrMinuteJI,hourOrMinute,endTypeCode,"
			+"endHour,endMinute,periodHour,periodMinute,startDate,"
			+"startHour,startMinute,endDateCode,endDate,"
			+"selectWeeks,selectMonths,enable";
		public static final String notifyXmlField = 
			"isMail,mailAction,address,cc,isOnline,"
			+"onlineAction,onlineID";
		public static final String mailServers = 
			"192.168.60.130,192.168.60.131,192.168.60.129";
	}
}












?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
天涯成人国产亚洲精品一区av| 日本大胆欧美人术艺术动态| 精品日韩av一区二区| 在线日韩一区二区| 94-欧美-setu| 不卡av电影在线播放| 国产一区二区三区高清播放| 精品一区二区影视| 激情小说亚洲一区| 国产在线精品视频| 国产乱码字幕精品高清av | 亚洲女人小视频在线观看| 欧美国产综合色视频| 国产日韩视频一区二区三区| 精品sm在线观看| 久久久不卡网国产精品二区| 久久美女高清视频| 中文字幕欧美国产| 亚洲美女视频一区| 三级一区在线视频先锋| 蜜臀99久久精品久久久久久软件| 免费在线观看一区| 国产成人精品影院| 一本一本大道香蕉久在线精品 | 欧美久久久久久久久| 欧美高清你懂得| 精品国产制服丝袜高跟| 中文欧美字幕免费| 亚洲网友自拍偷拍| 六月丁香婷婷色狠狠久久| 高清国产一区二区| 欧美伊人久久大香线蕉综合69| 91麻豆精品国产91久久久久| 精品国产一区二区三区av性色| 欧美国产激情一区二区三区蜜月| 亚洲免费观看视频| 乱中年女人伦av一区二区| 欧美tickling挠脚心丨vk| 最新日韩在线视频| 国模一区二区三区白浆| 91浏览器在线视频| 日韩丝袜情趣美女图片| 中文字幕第一区综合| 日韩一区精品字幕| 97se亚洲国产综合在线| 欧美大尺度电影在线| 亚洲综合成人网| 懂色av一区二区三区蜜臀| 日韩欧美成人午夜| 日本成人中文字幕| 欧美丰满少妇xxxxx高潮对白| 中文字幕国产精品一区二区| 久久99精品久久久久久动态图 | 国产伦精品一区二区三区免费迷 | 精品99一区二区三区| 午夜国产不卡在线观看视频| 一本到不卡免费一区二区| 欧美国产日本视频| 成人综合在线视频| 久久久精品欧美丰满| 国产真实乱对白精彩久久| 日韩欧美一区二区久久婷婷| 青青草精品视频| 欧美一级搡bbbb搡bbbb| 日产国产高清一区二区三区| 欧美一级欧美一级在线播放| 久久精品国产亚洲高清剧情介绍 | **欧美大码日韩| 色婷婷综合久色| 亚洲免费av高清| 欧美日韩成人高清| 久久超碰97人人做人人爱| 精品盗摄一区二区三区| 国产精品亚洲一区二区三区妖精| 久久综合色之久久综合| 国产成人亚洲综合a∨婷婷图片| 国产视频亚洲色图| 91成人免费在线| 麻豆精品精品国产自在97香蕉| 久久婷婷国产综合国色天香 | 欧美女孩性生活视频| 美女看a上一区| 中文av一区二区| 欧美男男青年gay1069videost | 成人欧美一区二区三区1314| 一本色道久久综合亚洲91| 日韩精品五月天| 国产精品免费人成网站| 欧美日韩免费视频| 成人精品小蝌蚪| 人禽交欧美网站| 国产精品人妖ts系列视频| 欧美日韩精品免费| www.日韩精品| 国产乱码精品一品二品| 亚洲成人免费视| 中文av一区特黄| 欧美va天堂va视频va在线| 欧美特级限制片免费在线观看| 国产风韵犹存在线视精品| 五月激情丁香一区二区三区| 亚洲视频一区二区在线观看| 国产亚洲欧美日韩俺去了| 欧美日韩高清在线播放| aaa欧美日韩| 国产成人精品综合在线观看| 激情综合色播五月| 视频一区免费在线观看| 亚洲一区在线看| 亚洲国产精品一区二区久久 | 国产一区免费电影| 免费国产亚洲视频| 奇米影视一区二区三区| 爽好久久久欧美精品| 日韩精品成人一区二区在线| 天天综合网天天综合色| 天天影视涩香欲综合网| 亚洲成年人影院| 日韩成人午夜电影| 秋霞国产午夜精品免费视频| 日韩国产欧美在线视频| 久久国产尿小便嘘嘘尿| 欧美精品日韩一区| 国产69精品久久久久777| 日韩和欧美的一区| 亚洲精品欧美专区| 成人欧美一区二区三区在线播放| 精品少妇一区二区三区在线视频| 久久品道一品道久久精品| 亚洲国产美女搞黄色| 成人午夜又粗又硬又大| 欧美一区二区三区小说| 久久久综合精品| 亚洲精品日韩综合观看成人91| 午夜精品一区在线观看| 国产麻豆欧美日韩一区| 99精品欧美一区二区三区综合在线| 色成年激情久久综合| 欧美裸体一区二区三区| 国产三级三级三级精品8ⅰ区| 亚洲视频一二区| 人人精品人人爱| 色综合av在线| 2023国产一二三区日本精品2022| 亚洲裸体xxx| 国产一区二区伦理| 欧美精品久久天天躁| 国产人成一区二区三区影院| 三级欧美在线一区| 欧美日韩国产片| 亚洲福利国产精品| 欧美日免费三级在线| 亚洲精品你懂的| 日本韩国精品在线| 亚洲国产精品久久久男人的天堂| av网站免费线看精品| 久久综合狠狠综合久久综合88| 亚洲尤物视频在线| 欧美日韩精品高清| 亚洲444eee在线观看| 欧美高清视频一二三区 | 国产做a爰片久久毛片| 7777精品伊人久久久大香线蕉经典版下载| 日韩毛片一二三区| 一本一本大道香蕉久在线精品| 尤物视频一区二区| 欧美日韩国产精品成人| 美国av一区二区| 欧美日韩国产首页| 亚洲午夜激情网站| 欧美不卡123| 91麻豆.com| 美日韩黄色大片| 中文字幕一区二区5566日韩| 91麻豆免费在线观看| 日韩二区在线观看| 国产精品色噜噜| 91精品国产品国语在线不卡 | 日本在线不卡视频| 日韩女优电影在线观看| 国产精品99久久久久久久女警 | 免费av网站大全久久| 久久人人爽爽爽人久久久| jvid福利写真一区二区三区| 亚洲欧洲av一区二区三区久久| 欧美午夜片在线观看| 久热成人在线视频| |精品福利一区二区三区| 69堂亚洲精品首页| 成人av在线看| 奇米影视一区二区三区| 中文字幕亚洲视频| 日韩三级伦理片妻子的秘密按摩| 国产大陆精品国产| 亚洲成年人影院| 亚洲美女免费视频| 国产欧美精品一区| 91精品国产综合久久精品性色| 国产精品一区二区三区网站| 亚洲r级在线视频|