Hitachi Vantara Pentaho Community Forums
Results 1 to 5 of 5

Thread: Job List API

  1. #1
    Join Date
    Mar 2010
    Posts
    181

    Default Job List API

    Is any API (PDI 4.0) available to list all the Kettle jobs from the database repository ?

  2. #2
    Join Date
    Mar 2010
    Posts
    181

    Default

    Any help?

  3. #3
    Join Date
    Mar 2010
    Posts
    18

    Default

    yes, there is an API get listing of all jobs in repository included in one of the repository jar files. You may want to download and look at repositories code (I cannot remember off hand the exact java file, but there is API code to do exactly what you want).

  4. #4
    Join Date
    Nov 1999
    Posts
    9,729

    Default

    The Repository interface provides plenty of methods to get directory information.
    Good luck,
    Matt

  5. #5

    Cool Try this code of pdi 4.0

    RepositoryDirectoryInterface directory = repository.loadRepositoryDirectoryTree();


    //list all directory
    String dirnames[] = repository.getDirectoryNames(directory.getObjectId());
    for (int i=0;i<dirnames.length;i++)
    {
    System.out.println(dirnames[i]);
    }

    String jobnames[] = repository.getJobNames(directory.getObjectId(), false);
    for (int i=0;i<jobnames.length;i++)
    {
    System.out.println(jobnames[i]);
    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.