use of org.pentaho.di.resource.ResourceEntry in project pentaho-kettle by pentaho.
the class JobEntryMssqlBulkLoad method getResourceDependencies.
public List<ResourceReference> getResourceDependencies(JobMeta jobMeta) {
List<ResourceReference> references = super.getResourceDependencies(jobMeta);
ResourceReference reference = null;
if (connection != null) {
reference = new ResourceReference(this);
references.add(reference);
reference.getEntries().add(new ResourceEntry(connection.getHostname(), ResourceType.SERVER));
reference.getEntries().add(new ResourceEntry(connection.getDatabaseName(), ResourceType.DATABASENAME));
}
if (filename != null) {
String realFilename = getRealFilename();
if (reference == null) {
reference = new ResourceReference(this);
references.add(reference);
}
reference.getEntries().add(new ResourceEntry(realFilename, ResourceType.FILE));
}
return references;
}
use of org.pentaho.di.resource.ResourceEntry in project pentaho-kettle by pentaho.
the class JobEntryMysqlBulkFile 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.ResourceEntry in project pentaho-kettle by pentaho.
the class JobEntryMysqlBulkLoad method getResourceDependencies.
public List<ResourceReference> getResourceDependencies(JobMeta jobMeta) {
List<ResourceReference> references = super.getResourceDependencies(jobMeta);
ResourceReference reference = null;
if (connection != null) {
reference = new ResourceReference(this);
references.add(reference);
reference.getEntries().add(new ResourceEntry(connection.getHostname(), ResourceType.SERVER));
reference.getEntries().add(new ResourceEntry(connection.getDatabaseName(), ResourceType.DATABASENAME));
}
if (filename != null) {
String realFilename = getRealFilename();
if (reference == null) {
reference = new ResourceReference(this);
references.add(reference);
}
reference.getEntries().add(new ResourceEntry(realFilename, ResourceType.FILE));
}
return references;
}
use of org.pentaho.di.resource.ResourceEntry in project pentaho-kettle by pentaho.
the class JobEntryFileCompare method getResourceDependencies.
public List<ResourceReference> getResourceDependencies(JobMeta jobMeta) {
List<ResourceReference> references = super.getResourceDependencies(jobMeta);
if ((!Utils.isEmpty(filename1)) && (!Utils.isEmpty(filename2))) {
String realFilename1 = jobMeta.environmentSubstitute(filename1);
String realFilename2 = jobMeta.environmentSubstitute(filename2);
ResourceReference reference = new ResourceReference(this);
reference.getEntries().add(new ResourceEntry(realFilename1, ResourceType.FILE));
reference.getEntries().add(new ResourceEntry(realFilename2, ResourceType.FILE));
references.add(reference);
}
return references;
}
use of org.pentaho.di.resource.ResourceEntry in project pentaho-kettle by pentaho.
the class JobEntryFileExists 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