|
@@ -62,8 +62,6 @@ public class CrawlJob {
|
|
|
|
|
|
protected String[] dataConfigIds;
|
|
protected String[] dataConfigIds;
|
|
|
|
|
|
- protected String operation;
|
|
|
|
-
|
|
|
|
protected String logFilePath;
|
|
protected String logFilePath;
|
|
|
|
|
|
protected String logLevel;
|
|
protected String logLevel;
|
|
@@ -91,11 +89,6 @@ public class CrawlJob {
|
|
return this;
|
|
return this;
|
|
}
|
|
}
|
|
|
|
|
|
- public CrawlJob operation(final String operation) {
|
|
|
|
- this.operation = operation;
|
|
|
|
- return this;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
public CrawlJob logFilePath(final String logFilePath) {
|
|
public CrawlJob logFilePath(final String logFilePath) {
|
|
this.logFilePath = logFilePath;
|
|
this.logFilePath = logFilePath;
|
|
return this;
|
|
return this;
|
|
@@ -145,15 +138,16 @@ public class CrawlJob {
|
|
return this;
|
|
return this;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Deprecated
|
|
public String execute(final JobExecutor jobExecutor) {
|
|
public String execute(final JobExecutor jobExecutor) {
|
|
jobExecutor(jobExecutor);
|
|
jobExecutor(jobExecutor);
|
|
return execute();
|
|
return execute();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Deprecated
|
|
public String execute(final JobExecutor jobExecutor, final String[] webConfigIds, final String[] fileConfigIds,
|
|
public String execute(final JobExecutor jobExecutor, final String[] webConfigIds, final String[] fileConfigIds,
|
|
final String[] dataConfigIds, final String operation) {
|
|
final String[] dataConfigIds, final String operation) {
|
|
jobExecutor(jobExecutor);
|
|
jobExecutor(jobExecutor);
|
|
- operation(operation);
|
|
|
|
webConfigIds(webConfigIds);
|
|
webConfigIds(webConfigIds);
|
|
fileConfigIds(fileConfigIds);
|
|
fileConfigIds(fileConfigIds);
|
|
dataConfigIds(dataConfigIds);
|
|
dataConfigIds(dataConfigIds);
|
|
@@ -161,10 +155,10 @@ public class CrawlJob {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Deprecated
|
|
public String execute(final JobExecutor jobExecutor, final String sessionId, final String[] webConfigIds, final String[] fileConfigIds,
|
|
public String execute(final JobExecutor jobExecutor, final String sessionId, final String[] webConfigIds, final String[] fileConfigIds,
|
|
final String[] dataConfigIds, final String operation) {
|
|
final String[] dataConfigIds, final String operation) {
|
|
jobExecutor(jobExecutor);
|
|
jobExecutor(jobExecutor);
|
|
- operation(operation);
|
|
|
|
webConfigIds(webConfigIds);
|
|
webConfigIds(webConfigIds);
|
|
fileConfigIds(fileConfigIds);
|
|
fileConfigIds(fileConfigIds);
|
|
dataConfigIds(dataConfigIds);
|
|
dataConfigIds(dataConfigIds);
|
|
@@ -356,10 +350,6 @@ public class CrawlJob {
|
|
cmdList.add("-d");
|
|
cmdList.add("-d");
|
|
cmdList.add(StringUtils.join(dataConfigIds, ','));
|
|
cmdList.add(StringUtils.join(dataConfigIds, ','));
|
|
}
|
|
}
|
|
- if (StringUtil.isNotBlank(operation)) {
|
|
|
|
- cmdList.add("-o");
|
|
|
|
- cmdList.add(operation);
|
|
|
|
- }
|
|
|
|
if (documentExpires >= -1) {
|
|
if (documentExpires >= -1) {
|
|
cmdList.add("-e");
|
|
cmdList.add("-e");
|
|
cmdList.add(Integer.toString(documentExpires));
|
|
cmdList.add(Integer.toString(documentExpires));
|