summaryrefslogtreecommitdiff
path: root/src/com/nis/nmsclient/model/Task4.java
blob: 302252c1bdeaf9473fe3f9f58698256d38040caa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
package com.nis.nmsclient.model;


/**
 * 任务实体类:4 命令执行
 * 
 */
public class Task4 {
	/**
	 * 任务ID
	 */
	private Long taskId;
	/**
	 * 任务类型:1 文件推送,2 非流文本数据获取,3 流文本数据获取,4 命令执行,5 shell注册
	 */
	private long taskType;
	/**
	 * 命令类型:1 Agent原生支持命令,2 脚本,3 shell命令
	 */
	private long commandType;
	/**
	 * 命令名称
	 */
	private String commandName;
	/**
	 * 命令参数
	 */
	private String commandParam;
	/**
	 * 脚本路径(已无用)
	 */
	private String scriptPath;
	/**
	 * 执行状态:4下发任务(40 下发成功,41下发失败),5杀进程(50成功,51失败)、6备份、7更新(覆盖) 、8启动进程 
	 */
	private long state;
	/**
	 * 执行时间
	 */
	private Long startTime;
	/**
	 * 结束时间
	 */
	private Long endTime;
	/**
	 * 是否循环任务: 0 非周期, 1 周期,默认是0
	 */
	private long isLoop;
	/**
	 * 如果是循环任务,循环周期
	 */
	private long loopDelay;
	/**
	 * 任务状态:6撤销执行
	 */
	private Long missionState;
	/**
	 * 重新执行,原任务ID
	 */
	private Long oldTaskId;
	
	public Long getTaskId() {
		return taskId;
	}

	public void setTaskId(Long taskId) {
		this.taskId = taskId;
	}

	public long getTaskType() {
		return taskType;
	}

	public void setTaskType(long taskType) {
		this.taskType = taskType;
	}

	public long getCommandType() {
		return commandType;
	}

	public void setCommandType(long commandType) {
		this.commandType = commandType;
	}

	public long getState() {
		return state;
	}

	public void setState(long state) {
		this.state = state;
	}

	public String getCommandName() {
		return commandName;
	}

	public void setCommandName(String commandName) {
		this.commandName = commandName;
	}

	public String getCommandParam() {
		return commandParam;
	}

	public void setCommandParam(String commandParam) {
		this.commandParam = commandParam;
	}

	public String getScriptPath() {
		return scriptPath;
	}

	public void setScriptPath(String scriptPath) {
		this.scriptPath = scriptPath;
	}

	public Long getStartTime() {
		return startTime;
	}

	public void setStartTime(Long startTime) {
		this.startTime = startTime;
	}

	public Long getEndTime() {
		return endTime;
	}

	public void setEndTime(Long endTime) {
		this.endTime = endTime;
	}

	public long getIsLoop() {
		return isLoop;
	}

	public void setIsLoop(long isLoop) {
		this.isLoop = isLoop;
	}

	public long getLoopDelay() {
		return loopDelay;
	}

	public void setLoopDelay(long loopDelay) {
		this.loopDelay = loopDelay;
	}

	public Long getMissionState() {
		return missionState;
	}

	public void setMissionState(Long missionState) {
		this.missionState = missionState;
	}

	public Long getOldTaskId() {
		return oldTaskId;
	}

	public void setOldTaskId(Long oldTaskId) {
		this.oldTaskId = oldTaskId;
	}
	
}