|
|
@ -17,6 +17,9 @@ |
|
|
|
|
|
|
|
|
|
|
|
package org.apache.dolphinscheduler.common.task; |
|
|
|
package org.apache.dolphinscheduler.common.task; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import org.apache.dolphinscheduler.common.process.ResourceInfo; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
|
|
|
public class TaskParams { |
|
|
|
public class TaskParams { |
|
|
@ -24,6 +27,11 @@ public class TaskParams { |
|
|
|
private String rawScript; |
|
|
|
private String rawScript; |
|
|
|
private Map<String, String>[] localParams; |
|
|
|
private Map<String, String>[] localParams; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* resource list |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
private List<ResourceInfo> resourceList; |
|
|
|
|
|
|
|
|
|
|
|
public void setRawScript(String rawScript) { |
|
|
|
public void setRawScript(String rawScript) { |
|
|
|
this.rawScript = rawScript; |
|
|
|
this.rawScript = rawScript; |
|
|
|
} |
|
|
|
} |
|
|
@ -75,4 +83,12 @@ public class TaskParams { |
|
|
|
public Map<String, String>[] getLocalParams() { |
|
|
|
public Map<String, String>[] getLocalParams() { |
|
|
|
return localParams; |
|
|
|
return localParams; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public List<ResourceInfo> getResourceList() { |
|
|
|
|
|
|
|
return resourceList; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setResourceList(List<ResourceInfo> resourceList) { |
|
|
|
|
|
|
|
this.resourceList = resourceList; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |