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;
 }
Пример #2
0
 public List<ResourceReference> getResourceDependencies(JobMeta jobMeta) {
   List<ResourceReference> references = super.getResourceDependencies(jobMeta);
   if (!Const.isEmpty(serverName)) {
     String realServerName = jobMeta.environmentSubstitute(serverName);
     ResourceReference reference = new ResourceReference(this);
     reference.getEntries().add(new ResourceEntry(realServerName, ResourceType.SERVER));
     references.add(reference);
   }
   return references;
 }
 public List<ResourceReference> getResourceDependencies(JobMeta jobMeta) {
   List<ResourceReference> references = super.getResourceDependencies(jobMeta);
   if ((!Const.isEmpty(xslfilename)) && (!Const.isEmpty(xmlfilename))) {
     String realXmlFileName = jobMeta.environmentSubstitute(xmlfilename);
     String realXslFileName = jobMeta.environmentSubstitute(xslfilename);
     ResourceReference reference = new ResourceReference(this);
     reference.getEntries().add(new ResourceEntry(realXmlFileName, ResourceType.FILE));
     reference.getEntries().add(new ResourceEntry(realXslFileName, ResourceType.FILE));
     references.add(reference);
   }
   return references;
 }
Пример #4
0
  @Override
  public List<ResourceReference> getResourceDependencies(TransMeta transMeta, StepMeta stepInfo) {
    List<ResourceReference> references = new ArrayList<ResourceReference>(5);
    String realFilename = transMeta.environmentSubstitute(fileName);
    String realTransname = transMeta.environmentSubstitute(transName);
    ResourceReference reference = new ResourceReference(stepInfo);
    references.add(reference);

    if (!Const.isEmpty(realFilename)) {
      // Add the filename to the references, including a reference to this step
      // meta data.
      //
      reference.getEntries().add(new ResourceEntry(realFilename, ResourceType.ACTIONFILE));
    } else if (!Const.isEmpty(realTransname)) {
      // Add the filename to the references, including a reference to this step
      // meta data.
      //
      reference.getEntries().add(new ResourceEntry(realTransname, ResourceType.ACTIONFILE));
      references.add(reference);
    }
    return references;
  }
 public List<ResourceReference> getResourceDependencies(JobMeta jobMeta) {
   List<ResourceReference> references = super.getResourceDependencies(jobMeta);
   if (variableName != null) {
     ResourceReference reference = null;
     for (int i = 0; i < variableName.length; i++) {
       String filename = jobMeta.environmentSubstitute(variableName[i]);
       if (reference == null) {
         reference = new ResourceReference(this);
         references.add(reference);
       }
       reference.getEntries().add(new ResourceEntry(filename, ResourceType.FILE));
     }
   }
   return references;
 }