You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
78 lines
3.1 KiB
78 lines
3.1 KiB
|
|
package com.platform.utils;
|
|
|
|
import java.util.HashMap;
|
|
|
|
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";
|
|
|
|
/**
|
|
* volume 获取的线程休眠时间
|
|
*/
|
|
public final static int moveFileMaxNum = 1;
|
|
|
|
/**
|
|
* volume 获取的线程休眠时间
|
|
*/
|
|
public final static int get_volume_sleep_time = 5000;
|
|
|
|
/**
|
|
* volume 获取的线程休眠时间
|
|
*/
|
|
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 = "systen_name_sys_code.cfg";
|
|
|
|
}
|