|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.di.job.JobEntryLoader
public class JobEntryLoader
Takes care of loading job-entries or job-entry plugins.
Method Summary | |
---|---|
JobPlugin |
findJobEntriesWithClassName(String cn)
|
JobPlugin |
findJobEntriesWithDescription(String description)
|
JobPlugin |
findJobEntriesWithID(String stepid)
|
JobPlugin |
findJobPluginWithID(String stepid)
|
String[] |
getCategories(int type)
Get a unique list of categories. |
String[] |
getCategories(int type,
String locale)
Get a unique list of categories. |
InputStream |
getInputStreamForFile(String filename)
Search through all jarfiles in all steps and try to find a certain file in it. |
static JobEntryLoader |
getInstance()
|
JobPlugin[] |
getJobEntriesWithType(int type)
|
JobEntryInterface |
getJobEntryClass(JobPlugin sp)
|
JobEntryInterface |
getJobEntryClass(String desc)
|
String |
getJobEntryID(JobEntryInterface jei)
Determine the step's id based upon the StepMetaInterface we get... |
JobPlugin |
getJobEntryWithType(int type,
int index)
|
List<Object[]> |
getPluginInformation()
|
String[] |
getPluginPackages()
|
static void |
init()
Read all native and plug-in job entries |
boolean |
isInitialized()
|
Class<?> |
loadClass(JobPlugin sp,
String className)
|
Class<?> |
loadClass(String desc,
String className)
|
Class<?> |
loadClassByID(String id,
String className)
|
int |
nrJobEntriesWithType(int type)
Count's the number of steps with a certain type. |
boolean |
read()
Deprecated. in favor of static method init() to flag the exception throwing in this method. (change of contract) |
boolean |
readNatives()
|
boolean |
readPlugins()
The 'new' method. |
void |
setInitialized(boolean initialized)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final JobEntryLoader getInstance()
public boolean read() throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleException
- in case an error occurs.public static final void init() throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleException
- In case a plug-in could not be loaded or something else went wrong in the process.public boolean readNatives()
public boolean readPlugins()
public JobEntryInterface getJobEntryClass(String desc) throws org.pentaho.di.core.exception.KettleStepLoaderException
org.pentaho.di.core.exception.KettleStepLoaderException
public Class<?> loadClass(JobPlugin sp, String className) throws org.pentaho.di.core.exception.KettleStepLoaderException
org.pentaho.di.core.exception.KettleStepLoaderException
public Class<?> loadClass(String desc, String className) throws org.pentaho.di.core.exception.KettleStepLoaderException
org.pentaho.di.core.exception.KettleStepLoaderException
public Class<?> loadClassByID(String id, String className) throws org.pentaho.di.core.exception.KettleStepLoaderException
org.pentaho.di.core.exception.KettleStepLoaderException
public JobEntryInterface getJobEntryClass(JobPlugin sp) throws org.pentaho.di.core.exception.KettleStepLoaderException
org.pentaho.di.core.exception.KettleStepLoaderException
public int nrJobEntriesWithType(int type)
type
- One of StepPlugin.TYPE_NATIVE, StepPlugin.TYPE_PLUGIN,
StepPlugin.TYPE_ALL
public JobPlugin getJobEntryWithType(int type, int index)
public JobPlugin findJobPluginWithID(String stepid)
stepid
-
public JobPlugin[] getJobEntriesWithType(int type)
public JobPlugin findJobEntriesWithID(String stepid)
public JobPlugin findJobEntriesWithClassName(String cn)
public JobPlugin findJobEntriesWithDescription(String description)
public String getJobEntryID(JobEntryInterface jei)
jei
- The StepMetaInterface
public boolean isInitialized()
public void setInitialized(boolean initialized)
initialized
- The initialized to set.public InputStream getInputStreamForFile(String filename)
getInputStreamForFile
in interface org.pentaho.di.i18n.LoaderInputStreamProvider
filename
-
public String[] getPluginPackages()
public String[] getCategories(int type)
type
- The type of job entry plugins for which we want to categories...
public String[] getCategories(int type, String locale)
type
- The type of job entry plugins for which we want to categories...
public List<Object[]> getPluginInformation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |