This commit is contained in:
yfujita 2015-01-19 02:26:21 +09:00
commit aa93e5db14

View file

@ -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");