merge
This commit is contained in:
commit
aa93e5db14
1 changed files with 8 additions and 1 deletions
|
@ -50,6 +50,8 @@ public class CrawlJob {
|
|||
|
||||
protected String sessionId;
|
||||
|
||||
protected String namespace = Constants.CRAWLING_SESSION_SYSTEM_NAME;
|
||||
|
||||
protected String[] webConfigIds;
|
||||
|
||||
protected String[] fileConfigIds;
|
||||
|
@ -76,6 +78,11 @@ public class CrawlJob {
|
|||
return this;
|
||||
}
|
||||
|
||||
public CrawlJob namespace(final String namespace) {
|
||||
this.namespace = namespace;
|
||||
return this;
|
||||
}
|
||||
|
||||
public CrawlJob operation(final String operation) {
|
||||
this.operation = operation;
|
||||
return this;
|
||||
|
@ -280,7 +287,7 @@ public class CrawlJob {
|
|||
crawlerCmdList.add("--sessionId");
|
||||
crawlerCmdList.add(sessionId);
|
||||
crawlerCmdList.add("--name");
|
||||
crawlerCmdList.add(Constants.CRAWLING_SESSION_SYSTEM_NAME);
|
||||
crawlerCmdList.add(namespace);
|
||||
|
||||
if (webConfigIds != null && webConfigIds.length > 0) {
|
||||
crawlerCmdList.add("-w");
|
||||
|
|
Loading…
Add table
Reference in a new issue