|
6 | 6 | @NoArgsConstructor |
7 | 7 | @Data |
8 | 8 | public class AlertLogCommand { |
9 | | - private String readCommand; |
10 | 9 | private String readLine; |
11 | 10 | private String readFilePath; |
12 | 11 | private String dateFormat; |
13 | 12 | private String dateFormatRegex; |
14 | 13 | private String[] catchErrorMsg; |
15 | 14 |
|
16 | | - public AlertLogCommand(String readCommand, String readLine, String readFilePath) { |
17 | | - this.readCommand = readCommand; |
| 15 | + public AlertLogCommand(String readLine, String readFilePath) { |
18 | 16 | this.readLine = readLine; |
19 | 17 | this.readFilePath = readFilePath; |
20 | 18 | } |
21 | 19 |
|
22 | | - public AlertLogCommand(String readCommand, String readLine, String readFilePath, String dateFormat, String dateFormatRegex) { |
23 | | - this.readCommand = readCommand; |
| 20 | + public AlertLogCommand(String readLine, String readFilePath, String dateFormat, String dateFormatRegex) { |
24 | 21 | this.readLine = readLine; |
25 | 22 | this.readFilePath = readFilePath; |
26 | 23 | this.dateFormat = dateFormat; |
27 | 24 | this.dateFormatRegex = dateFormatRegex; |
28 | 25 | } |
29 | 26 |
|
30 | | - public AlertLogCommand(String readCommand, String readLine, String readFilePath, String... catchErrorMsg) { |
31 | | - this.readCommand = readCommand; |
| 27 | + public AlertLogCommand(String readLine, String readFilePath, String... catchErrorMsg) { |
32 | 28 | this.readLine = readLine; |
33 | 29 | this.readFilePath = readFilePath; |
34 | 30 | this.catchErrorMsg = catchErrorMsg; |
35 | 31 | } |
36 | 32 |
|
| 33 | + // TODO OSº° command ÀÛ¼º |
37 | 34 | public String getCommand() { |
38 | | - return this.getReadCommand() + " -" + this.getReadLine() + " " + this.getReadFilePath(); |
| 35 | + return "tail -" + this.getReadLine() + " " + this.getReadFilePath(); |
39 | 36 | } |
40 | 37 | } |
0 commit comments