use of org.pentaho.di.resource.ResourceReference in project pentaho-kettle by pentaho.
the class JobEntryTruncateTables method getResourceDependencies.
public List<ResourceReference> getResourceDependencies(JobMeta jobMeta) {
List<ResourceReference> references = super.getResourceDependencies(jobMeta);
if (arguments != null) {
ResourceReference reference = null;
for (int i = 0; i < arguments.length; i++) {
String filename = jobMeta.environmentSubstitute(arguments[i]);
if (reference == null) {
reference = new ResourceReference(this);
references.add(reference);
}
reference.getEntries().add(new ResourceEntry(filename, ResourceType.FILE));
}
}
return references;
}
use of org.pentaho.di.resource.ResourceReference in project pentaho-kettle by pentaho.
the class JobEntryWaitForFile method getResourceDependencies.
public List<ResourceReference> getResourceDependencies(JobMeta jobMeta) {
List<ResourceReference> references = super.getResourceDependencies(jobMeta);
if (!Utils.isEmpty(filename)) {
String realFileName = jobMeta.environmentSubstitute(filename);
ResourceReference reference = new ResourceReference(this);
reference.getEntries().add(new ResourceEntry(realFileName, ResourceType.FILE));
references.add(reference);
}
return references;
}
use of org.pentaho.di.resource.ResourceReference in project pentaho-kettle by pentaho.
the class JobMeta method getResourceDependencies.
/**
* Gets the resource dependencies.
*
* @return the resource dependencies
*/
public List<ResourceReference> getResourceDependencies() {
List<ResourceReference> resourceReferences = new ArrayList<ResourceReference>();
JobEntryCopy copy = null;
JobEntryInterface entry = null;
for (int i = 0; i < jobcopies.size(); i++) {
// get the job entry copy
copy = jobcopies.get(i);
entry = copy.getEntry();
resourceReferences.addAll(entry.getResourceDependencies(this));
}
return resourceReferences;
}
use of org.pentaho.di.resource.ResourceReference in project pentaho-kettle by pentaho.
the class JobEntryColumnsExist method getResourceDependencies.
public List<ResourceReference> getResourceDependencies(JobMeta jobMeta) {
List<ResourceReference> references = super.getResourceDependencies(jobMeta);
if (connection != null) {
ResourceReference reference = new ResourceReference(this);
reference.getEntries().add(new ResourceEntry(connection.getHostname(), ResourceType.SERVER));
reference.getEntries().add(new ResourceEntry(connection.getDatabaseName(), ResourceType.DATABASENAME));
references.add(reference);
}
return references;
}
use of org.pentaho.di.resource.ResourceReference in project pentaho-kettle by pentaho.
the class JobEntryDeleteFile method getResourceDependencies.
public List<ResourceReference> getResourceDependencies(JobMeta jobMeta) {
List<ResourceReference> references = super.getResourceDependencies(jobMeta);
if (!Utils.isEmpty(filename)) {
String realFileName = jobMeta.environmentSubstitute(filename);
ResourceReference reference = new ResourceReference(this);
reference.getEntries().add(new ResourceEntry(realFileName, ResourceType.FILE));
references.add(reference);
}
return references;
}
Aggregations