WatchFolderConfiguration.java
6.84 KB
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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.aemfd.watchfolder.config;
import java.util.HashMap;
import java.util.Map;
/*
* This class specifies class file version 49.0 but uses Java 6 signatures. Assumed Java 6.
*/
public class WatchFolderConfiguration {
public static final long DEFAULT_POLL_INTERVAL = 5;
private String id;
private String folderPath;
private String inputProcessorType;
private String inputProcessorId;
private String runModes;
private String outputFilePattern = null;
private boolean enabled = true;
private long pollInterval = 5;
private String excludeFilePattern;
private String includeFilePattern = "*";
private long waitTime = 0;
private long purgeDuration = -1;
private String inputFolderName = "input";
private String stageFolderName = "stage";
private String failureFolderName = "failure/%Y/%M/%D/";
private String resultFolderName = "result/%Y/%M/%D/";
private String preserveFolderName = "preserve/%Y/%M/%D/";
private int batchSize = 2;
private boolean throttleOn = true;
private boolean overwriteDuplicateFilename = false;
private boolean preserveOnFailure = true;
private String inputFilePattern = "*.*";
private boolean asynch = true;
private Map<String, Object> params = new HashMap<String, Object>();
private Map<String, Object> customData = new HashMap<String, Object>();
private long stageFileExpirationDuration = -1;
private boolean deleteExpiredStageFileOnlyWhenThrottled = true;
private String payloadMapperFilter = null;
public String getId() {
return this.id;
}
public void setId(String id) {
this.id = id;
}
public String getFolderPath() {
return this.folderPath;
}
public void setFolderPath(String folderPath) {
this.folderPath = folderPath;
}
public String getInputProcessorType() {
return this.inputProcessorType;
}
public void setInputProcessorType(String inputProcessorType) {
this.inputProcessorType = inputProcessorType;
}
public String getInputProcessorId() {
return this.inputProcessorId;
}
public void setInputProcessorId(String inputProcessorId) {
this.inputProcessorId = inputProcessorId;
}
public String getRunModes() {
return this.runModes;
}
public void setRunModes(String runModes) {
this.runModes = runModes;
}
public boolean isEnabled() {
return this.enabled;
}
public void setEnabled(Boolean enabled) {
this.enabled = enabled;
}
public long getPollInterval() {
return this.pollInterval;
}
public void setPollInterval(Long pollInterval) {
this.pollInterval = pollInterval;
}
public String getExcludeFilePattern() {
return this.excludeFilePattern;
}
public String getIncludeFilePattern() {
return this.includeFilePattern;
}
public long getWaitTime() {
return this.waitTime;
}
public long getPurgeDuration() {
return this.purgeDuration;
}
public String getInputFolderName() {
return this.inputFolderName;
}
public String getStageFolderName() {
return this.stageFolderName;
}
public String getFailureFolderName() {
return this.failureFolderName;
}
public String getResultFolderName() {
return this.resultFolderName;
}
public String getPreserveFolderName() {
return this.preserveFolderName;
}
public int getBatchSize() {
return this.batchSize;
}
public boolean isThrottleOn() {
return this.throttleOn;
}
public boolean isOverwriteDuplicateFilename() {
return this.overwriteDuplicateFilename;
}
public boolean isPreserveOnFailure() {
return this.preserveOnFailure;
}
public String getInputFilePattern() {
return this.inputFilePattern;
}
public String getOutputFilePattern() {
return this.outputFilePattern;
}
public boolean isAsynch() {
return this.asynch;
}
public Map<String, Object> getParams() {
return this.params;
}
public void setExcludeFilePattern(String excludeFilePattern) {
this.excludeFilePattern = excludeFilePattern;
}
public void setIncludeFilePattern(String includeFilePattern) {
this.includeFilePattern = includeFilePattern;
}
public void setWaitTime(Long waitTime) {
this.waitTime = waitTime;
}
public void setPurgeDuration(Long purgeDuration) {
this.purgeDuration = purgeDuration;
}
public void setFailureFolderName(String failureFolderName) {
this.failureFolderName = failureFolderName;
}
public void setResultFolderName(String resultFolderName) {
this.resultFolderName = resultFolderName;
}
public void setPreserveFolderName(String preserveFolderName) {
this.preserveFolderName = preserveFolderName;
}
public void setBatchSize(Long batchSize) {
this.batchSize = batchSize.intValue();
}
public void setThrottleOn(Boolean throttleOn) {
this.throttleOn = throttleOn;
}
public void setOverwriteDuplicateFilename(Boolean overwriteDuplicateFilename) {
this.overwriteDuplicateFilename = overwriteDuplicateFilename;
}
public void setPreserveOnFailure(Boolean preserveOnFailure) {
this.preserveOnFailure = preserveOnFailure;
}
public void setInputFilePattern(String inputFilePattern) {
this.inputFilePattern = inputFilePattern;
}
public void setOutputFilePattern(String outputFilePattern) {
this.outputFilePattern = outputFilePattern;
}
public void setAsynch(Boolean asynch) {
this.asynch = asynch;
}
public void setParam(String key, Object value) {
this.params.put(key, value);
}
public Object getCustomData(String key) {
return this.customData.get(key);
}
public void setCustomData(String key, Object value) {
this.customData.put(key, value);
}
public long getStageFileExpirationDuration() {
return this.stageFileExpirationDuration;
}
public void setStageFileExpirationDuration(Long stageFileExpirationDuration) {
this.stageFileExpirationDuration = stageFileExpirationDuration;
}
public boolean isDeleteExpiredStageFileOnlyWhenThrottled() {
return this.deleteExpiredStageFileOnlyWhenThrottled;
}
public void setDeleteExpiredStageFileOnlyWhenThrottled(Boolean deleteExpiredStageFileOnlyWhenThrottled) {
this.deleteExpiredStageFileOnlyWhenThrottled = deleteExpiredStageFileOnlyWhenThrottled;
}
public String getPayloadMapperFilter() {
return this.payloadMapperFilter;
}
public void setPayloadMapperFilter(String payloadMapperFilter) {
this.payloadMapperFilter = payloadMapperFilter;
}
}