package com.nms.server.thread.socket;

public class SocketCMD {
	/* 与NMSClient通讯操作 **/
	/**
	 * 与Server握手请求
	 */
	public static final String CLIENT_REQ_HAND_SHAKE = "char:handshake";
	/**
	 * 获取本机标志UUID请求
	 */
	public static final String CLIENT_REQ_LOCAL_UUID = "char:uuid";
	/**
	 * 初始化配置请求
	 */
	public static final String CLIENT_REQ_INIT_CONFIG = "char:init";
	/**
	 * 初始化任务请求
	 */
	public static final String CLIENT_REQ_INIT_TASK = "char:initTask";
	/**
	 * 主动告警请求
	 */
	public static final String CLIENT_REQ_ALARM = "char:alarm";
	public static final String CLIENT_RQ_NC_ERROR_INFO = "char:ncErrorInfo";
	/**
	 * 主动告警请求
	 */
	public static final String CLIENT_AGENT_CHANGE= "char:agentChange";
	
	/**
	 * 获取Server端系统时间请求
	 */
	public static final String CLIENT_REQ_SERVER_SYSTEMDATE = "char:systemdate";
	/**
	 * 获取Server端系统时间请求
	 */
	public static final String REQ_CLIENT_SERVER_SYSTEMDATE = "char:systemdate";
	
	/**
	 * Server升级请求命令
	 */
	public static final String CLIENT_REQ_SERVER_UPGRADE = "char:upgradeServer";
	
	/**
	 * 上传回传文件、任务结果文件、数据文件的打包文件请求命令
	 */
	public static final String CLIENT_REQ_BP_UPLOAD_FIFE = "byte:bpUploadFile";
	
	//数据收集命令：Agent会把监测数据、任务结果、回传文件都发过来
	public static final String REQ_DATA_COLLECT = "byte:collectData";
	
	//监测数据收集命令
	public static final String REQ_DETECT_DATA_COLLECT = "byte:collectDetectData";
	public static final String DETECT_DATA_ZIP_TYPE = "zipDetectData";
	public static final String DETECT_DATA_CSV_TYPE = "csvDetectData";
	public static final String DETECT_DATA_COLLECT_END = "end";
	
	//任务（该有结果，而无结果的任务）结果收集
	public static final String REQ_NONRLTTASK_RESULT_COLLECT = "char:collectNonRltTaskResult";
	//任务结果收集命令
	public static final String REQ_TASK_RESULT_COLLECT = "byte:collectTaskResult";
	//任务结果类型
	public static final String TASK_RESULT_ZIP_TYPE = "zipTaskResult";
	public static final String TASK_RESULT_OBJ_TYPE = "objTaskResult";
	public static final String COMMUNICATION_END = "end";
	
	//回传文件收集命令
	public static final String REQ_TASK_RETURN_FILE_COLLECT = "byte:collectTaskReturnFile";
	public static final String TASK_RETURN_ZIP_TYPE = "zipTaskReturn";
	public static final String TASK_RETURN_FILE_TYPE = "fileTaskReturn";
//	public static final String TASK_RETURN_COLLECT_END = "end";
	
	
	
	//bpUploadFile的子命令类型
	public static final String SUFFIX_BP_TYPE_TASK_RESULT = "taskresult";
	public static final String SUFFIX_BP_TYPE_TASK_RETURN = "taskreturn";
	public static final String SUFFIX_BP_TYPE_DETECT_DATA = "detectdata";
	
	/**
	 * 发送任务结果请求命令
	 */
	public static final String CLIENT_REQ_TASK_RESULT = "char:taskResult";
	/**
	 * 批量上传数据文件请求命令
	 */
	public static final String CLIENT_REQ_UPLOAD_DATAS ="byte:datas";
	/**
	 * 批量上传数据文件请求命令2
	 */
	public static final String CLIENT_REQ_UPLOAD_DATAS_2 ="byte:datas2";
	
	/**
	 * 回传文件请求命令
	 */
	public static final String CLIENT_REQ_TASK_RETURNFILE = "byte:taskReturn";
	
	/* 与NMS_Web通讯操作 **/
	
	/**
	 * 监测设置信息变更请求命令
	 */
	public static String WEB_NOTICE_SET_INFO_ALERT = "char:setInfoAlert";
	/**
	 * 下发第三方监测脚本命令
	 */
	public static final String SEND_PLUGIN_SCRIPT_FILE = "char:sendPluginScriptFile";
	/**
	 * 下载第三方检测脚本
	 */
	public static final String DOWNLOAD_PLUGIN_SCRIPT="char:downloadPluginScript";
	/**
	 * 节点或节点组状态变更请求命令
	 */
	public static String WEB_NOTICE_NODE_AND_GROUP_STATE_ALERT = "char:nodeAndGroupAlert";
	/**
	 * 监测类别信息变更包括字段告警的变更请求命令
	 */
	public static String WEB_NOTICE_CHECK_TYPE_ALERT = "char:checkTypeIdAlert";
	/**
	 * 任务信息变更请求命令
	 */
	public static String WEB_NOTICE_MISSION_INFO_ALERT = "char:missionInfoAlert";
	/**
	 * DC 管理IP segment 重置（准备废弃）
	 */
	public static String WEB_NOTICE_DATACONTROLLER = "char:Datacontroller";
	
	/**
	 * 节点是否报主动告警变更请求命令
	 */
	public static String WEB_NOTICE_ACTIVE_ALARM_START_ALERT = "char:isActiveAlarmStart";
	
	/**
	 * DC 管理IP segment 重置
	 */
	public static String WEB_UPDATE_CONFIG = "char:updateConfig";
	/**
	 * web 端通知 入库监测数据
	 */
	public static String WEB_NOTICE_INSERT_DETECT = "char:insertDetect";
	/**
	 * web 端通知 停止 监测数据入库
	 */
	public static String RELEASE_DETECT = "char:releaseDetect";
}
