
package com.platform.utils;


/** 常量
 * @author chen
 *
 */
public class Constant {
	public static String rootUser = "root";
	public static String rootPasswd = "root";
//	public static String hostIp = "192.168.191.23";
	public static String hostIp = "";
	public static int port = 22;
	public static String glusterPeerStatus = "gluster peer status";
	public static String glusterVolumeInfo = "gluster volume info ";
	public static String df = "df -k ";
	public static String peerincluster_connected = "PeerinCluster(Connected)";
	public static String peerincluster_disconnected = "PeerinCluster(Disconnected)";
	public static String peerNotinCluster = "PeerNotinCluster";
	public static String distributed = "distributed";
	public static String replica = "replica";
	public static String stripe = "stripe";
	public static String noVolume = "No volumes present";
	public static String success = "success";
	public static String failed = "failed";
	public static String noSuchFile = "No such file or directory";
	public static GanymedSSH ganymedSSH = null;
	public static String fileGetTreeData = "WebContent\\WEB-INF\\config\\getTreedata.sh";
	public static String AutoMountfile="/gfsAutoMount/AutoRun.sh";
	public static String MountRecord="/gfsAutoMount/mountPoint.record";
	public static String strGetTreeData = "function ergodic(){\n  "
			+ "for file in \\`ls \\$1\\`\n  do\n    if [ \"\\$file\" != \"app\" -a -d \\$1\\\"/\\\"\\$file  ]\n    "
			+ "then\n      ergodic \\$1\"/\"\\$file\n    else\n      local path=\\$1\"/\"\\$file\n      "
			+ "echo \\$path \n    fi\n  done\n}\n\nIFS=\\$\\'\\n\\'                      "
			+ "#这个必须要，否则会在文件名中有空格时出错\nINIT_PATH=\".\";\nergodic \\$1\n";

	/**
	 * 迁移数据时，并发迁移数量
	 */
	public final static int moveFileMaxNum = 1;

	/**
	 * volume 获取的线程休眠时间
	 */
	public final static int get_volume_sleep_time = 3*60000;
	
	/**
	 * 数据迁移 获取的线程休眠时间
	 */
	public final static int update_dataInfo_sleep_time = 1500;
	
	/** 国际话配置文件文件-i18n.properties  */
	public final static String I18N_PROPERTIES_FIEL_PATH = "/com/base/i18n.properties";
	
	/** 信息系统excel导出模板  */
	public final static String SYSTEM_INFO_EXCEL_TEMPLATE_FIEL_PATH = "/com/base/system_templates.xlsx";
	
	/** WritefileThread-线程睡眠时间--3000 */
	public final static long THREAD_SLEEP_WRITEFILETHREAD = 3000;
	
	/** CustomException记录报异常的对象的对象个数--10 */
	public final static int CustomException_log_object_size = 10;
	
	/** excel模板真实数据的起始行数 */
	public final static int EXCEL_TEMPLATE_INIT_ROW = 8;
	
	/**	excel导入-修改preDataInfo信息 */
	public final static String preDataInfo_update = "修改";
	
	/**	excel导入-新增行政区划-preDataInfo信息 */
	public final static String preDataInfo_add_area = "新增行政区划";
	
	/**	excel导入-新增信息系统-preDataInfo信息 */
	public final static String preDataInfo_add_system = "新增信息系统";
	
	/**	cfg文件的名称 */
	public final static String cfgFileName = "system_name_sys_code.cfg";
	
	/**	 表空间用户名 	 */
	public final static String UserTablespace = "usertablespace_";
	
	/**	 可执行校验脚本  */
	public final static String Checkout_Indicate = "checkout_indicate_";
	
	/**	 支付的验证脚本 */
	public final static String Checkout_Pay = "checkout_pay_";
	
	/**	 sqlserver：支付脚本 	 */
	public final static String standard_indicate = "standard_indicate_";
	
	/**	 sqlserver：支付脚本 	 */
	public final static String standard_pay = "standard_pay_";
	
	//校验 CHECKOUT_STATUS      0：未校验，1：不需校验，2：正在校验，3：校验成功，4：校验失败，5：待抽取，6：正在抽取，7：抽取完成
	/**	 校验状态-0	 */
	public final static String CHECKOUT_STATUS_ZERO = "0";
	
	/**	 校验状态-1 */
	public final static String CHECKOUT_STATUS_ONE = "1";
	
	/**	 校验状态-2	 */
	public final static String CHECKOUT_STATUS_TWO = "2";
	
	/**	 校验状态-3	 */
	public final static String CHECKOUT_STATUS_THREE = "3";
	
	/**	 校验状态-4	 */
	public final static String CHECKOUT_STATUS_FOUR = "4";
	
	/**	 校验状态-5	 */
	public final static String CHECKOUT_STATUS_FIVE = "5";
	
	/**	 校验状态-6	 */
	public final static String CHECKOUT_STATUS_SIX = "6";
	
	/**	 校验状态-7	 */
	public final static String CHECKOUT_STATUS_SEVEN = "7";
	
	//校验标识  CHECKOUTFLAG     校验标识符，0未校验，1已校验,2:正在校验，6正在抽取，7抽取完成
	/**	 校验标识-0	 */
	public final static String CHECKOUTFLAG_ZERO = "0";
	
	/**	 校验标识-1	 */
	public final static String CHECKOUTFLAG_ONE = "1";
	
	/**	 校验标识-2	 */
	public final static String CHECKOUTFLAG_TWO = "2";
	
	/**	 校验标识-6	 */
	public final static String CHECKOUTFLAG_SIX = "6";
	
	/**	 校验标识-7	 */
	public final static String CHECKOUTFLAG_SEVEN = "7";
	
	// 汇总库的 类型  ORACLE_EXTRACT_TYPE     0:总库汇总  1：抽取标准表汇总
	/**	 类型-0	汇总  */
	public final static String ORACLE_EXTRACT_TYPE_ZERO = "0";
	
	/**	 类型-1	抽取 */
	public final static String ORACLE_EXTRACT_TYPE_ONE = "1";
	
	/**	 校验结果	是  */
	public final static String ORACLE_CHECK_REULT_ZERO = "是";
	
	/**	 校验结果	否 */
	public final static String ORACLE_CHECK_REULT_ONE = "否";
	
}
