当前位置: 首页>>代码示例>>Java>>正文


Java JobEntryInterface类代码示例

本文整理汇总了Java中org.pentaho.di.job.entry.JobEntryInterface的典型用法代码示例。如果您正苦于以下问题:Java JobEntryInterface类的具体用法?Java JobEntryInterface怎么用?Java JobEntryInterface使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


JobEntryInterface类属于org.pentaho.di.job.entry包,在下文中一共展示了JobEntryInterface类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getJobEntryDialog

import org.pentaho.di.job.entry.JobEntryInterface; //导入依赖的package包/类
public JobEntryDialogInterface getJobEntryDialog(JobEntryInterface jei, JobMeta jobMeta)
{

	String dialogClassName = jei.getDialogClassName();
	try
	{
		Class<?> dialogClass;
		Class<?>[] paramClasses = new Class[] { spoon.getShell().getClass(), JobEntryInterface.class,
				Repository.class, JobMeta.class };
		Object[] paramArgs = new Object[] { spoon.getShell(), jei, spoon.getRepository(), jobMeta };
		Constructor<?> dialogConstructor;
		dialogClass = jei.getPluginID()!=null?
				JobEntryLoader.getInstance().loadClassByID(jei.getPluginID(),dialogClassName):
					JobEntryLoader.getInstance().loadClass(jei.getJobEntryType().getDescription(), dialogClassName);
		dialogConstructor = dialogClass.getConstructor(paramClasses);
		return (JobEntryDialogInterface) dialogConstructor.newInstance(paramArgs);
	} catch (Throwable t)
	{
		t.printStackTrace();
		spoon.getLog().logError(spoon.toString(), "Could not create dialog for " + dialogClassName, t);
	}
	return null;
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:24,代码来源:SpoonJobDelegate.java

示例2: getJobEntryDialog

import org.pentaho.di.job.entry.JobEntryInterface; //导入依赖的package包/类
public JobEntryDialogInterface getJobEntryDialog(JobEntryInterface jobEntryInterface, JobMeta jobMeta)
{
	PluginRegistry registry = PluginRegistry.getInstance();
	String dialogClassName = jobEntryInterface.getDialogClassName();
	try
	{
		Class<?> dialogClass;
		Class<?>[] paramClasses = new Class[] { spoon.getShell().getClass(), JobEntryInterface.class,
				Repository.class, JobMeta.class };
		Object[] paramArgs = new Object[] { spoon.getShell(), jobEntryInterface, spoon.getRepository(), jobMeta };
		Constructor<?> dialogConstructor;
		
		PluginInterface plugin = registry.getPlugin(JobEntryPluginType.class, jobEntryInterface);
		dialogClass = PluginRegistry.getInstance().getClass(plugin, dialogClassName);
		dialogConstructor = dialogClass.getConstructor(paramClasses);
		return (JobEntryDialogInterface) dialogConstructor.newInstance(paramArgs);
	} catch (Throwable t)
	{
		t.printStackTrace();
		spoon.getLog().logError(spoon.toString(), "Could not create dialog for " + dialogClassName, t);
	}
	return null;
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:24,代码来源:SpoonJobDelegate.java

示例3: findStart

import org.pentaho.di.job.entry.JobEntryInterface; //导入依赖的package包/类
/**
* 查找JOB的开始控件 <br/>
* @author jingma
* @param jobMeta JOB元数据
* @return 开始控件
*/
public static JobEntrySpecial findStart(JobMeta jobMeta) {
    for (int i = 0; i < jobMeta.nrJobEntries(); i++) {
        JobEntryCopy jec = jobMeta.getJobEntry(i);
        JobEntryInterface je = jec.getEntry();
        if (je.getPluginId().equals("SPECIAL")) {
            return (JobEntrySpecial) je;
        }
    }
    return null;
}
 
开发者ID:majinju,项目名称:KettleEasyExpand,代码行数:17,代码来源:KettleUtils.java

示例4: JobEntryEasyExpandDialog

import org.pentaho.di.job.entry.JobEntryInterface; //导入依赖的package包/类
public JobEntryEasyExpandDialog( Shell parent, JobEntryInterface jobEntryInt, Repository rep, JobMeta jobMeta ) {
  super( parent, jobEntryInt, rep, jobMeta );
  jobEntry = (JobEntryEasyExpand) jobEntryInt;
  if ( this.jobEntry.getName() == null ) {
    this.jobEntry.setName( BaseMessages.getString( PKG, "JobEntryKettleUtil.Name.Default" ) );
  }
}
 
开发者ID:majinju,项目名称:KettleEasyExpand,代码行数:8,代码来源:JobEntryEasyExpandDialog.java

示例5: getJobEntryID

import org.pentaho.di.job.entry.JobEntryInterface; //导入依赖的package包/类
/**
 * Determine the step's id based upon the StepMetaInterface we get...
 * 
 * @param jei
 *            The StepMetaInterface
 * @return the step's id or null if we couldn't find anything.
 */
public String getJobEntryID(JobEntryInterface jei)
{
	for (int i = 0; i < nrJobEntriesWithType(JobPlugin.TYPE_ALL); i++)
	{
		JobPlugin sp = getJobEntryWithType(JobPlugin.TYPE_ALL, i);
		if (jei.getClass().getName().equals(sp.getClassname()))
			return sp.getID();
	}
	return null;
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:18,代码来源:JobEntryLoader.java

示例6: clear

import org.pentaho.di.job.entry.JobEntryInterface; //导入依赖的package包/类
public void clear() {
	setName( null );
	setFilename( null );

	jobcopies = new ArrayList<JobEntryCopy>();
	jobentries = new ArrayList<JobEntryInterface>();
	jobhops = new ArrayList<JobHopMeta>();
	notes = new ArrayList<NotePadMeta>();
	databases = new ArrayList<DatabaseMeta>();
	slaveServers = new ArrayList<SlaveServer>();

	logConnection = null;
	logTable = null;
	arguments = null;

	max_undo = Const.MAX_UNDO;

	undo = new ArrayList<TransAction>();
	undo_position = -1;

	addDefaults();
	setChanged(false);

	created_user = "-"; //$NON-NLS-1$
	created_date = new Date();

	modifiedUser = "-"; //$NON-NLS-1$
	modifiedDate = new Date();
	directory = new RepositoryDirectory();
	description = null;
	jobStatus = -1;
	jobVersion = null;
	extendedDescription = null;
	useBatchId = true;
	logfieldUsed = true;

	// setInternalKettleVariables(); Don't clear the internal variables for
	// ad-hoc jobs, it's ruins the previews
	// etc.
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:41,代码来源:JobMeta.java

示例7: findJobEntry

import org.pentaho.di.job.entry.JobEntryInterface; //导入依赖的package包/类
public JobEntryCopy findJobEntry(String full_name_nr) {
	int i;
	for (i = 0; i < nrJobEntries(); i++) {
		JobEntryCopy jec = getJobEntry(i);
		JobEntryInterface je = jec.getEntry();
		if (je.toString().equalsIgnoreCase(full_name_nr)) {
			return jec;
		}
	}
	return null;
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:12,代码来源:JobMeta.java

示例8: checkJobEntries

import org.pentaho.di.job.entry.JobEntryInterface; //导入依赖的package包/类
/**
 * Check all job entries within the job. Each Job Entry has the opportunity
 * to check their own settings.
 * 
 * @param remarks
 *            List of CheckResult remarks inserted into by each JobEntry
 * @param only_selected
 *            true if you only want to check the selected jobs
 * @param monitor
 *            Progress monitor (not presently in use)
 */
public void checkJobEntries(List<CheckResultInterface> remarks, boolean only_selected, ProgressMonitorListener monitor) {
	remarks.clear(); // Empty remarks
	if (monitor != null)
		monitor.beginTask(Messages.getString("JobMeta.Monitor.VerifyingThisJobEntryTask.Title"), jobcopies.size() + 2); //$NON-NLS-1$
	boolean stop_checking = false;
	for (int i = 0; i < jobcopies.size() && !stop_checking; i++) {
		JobEntryCopy copy = jobcopies.get(i); // get the job entry copy
		if ((!only_selected) || (only_selected && copy.isSelected())) {
			JobEntryInterface entry = copy.getEntry();
			if (entry != null) {
				if (monitor != null)
					monitor.subTask(Messages.getString("JobMeta.Monitor.VerifyingJobEntry.Title", entry.getName())); //$NON-NLS-1$ //$NON-NLS-2$
				entry.check(remarks, this);
				if (monitor != null) {
					monitor.worked(1); // progress bar...
					if (monitor.isCanceled()) {
						stop_checking = true;
					}
				}
			}
		}
		if (monitor != null) {
			monitor.worked(1);
		}
	}
	if (monitor != null) {
		monitor.done();
	}
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:41,代码来源:JobMeta.java

示例9: getResourceDependencies

import org.pentaho.di.job.entry.JobEntryInterface; //导入依赖的package包/类
public List<ResourceReference> getResourceDependencies() {
	List<ResourceReference> resourceReferences = new ArrayList<ResourceReference>();
	JobEntryCopy copy = null;
	JobEntryInterface entry = null;
	for (int i = 0; i < jobcopies.size(); i++) {
		copy = jobcopies.get(i); // get the job entry copy
		entry = copy.getEntry();
		resourceReferences.addAll(entry.getResourceDependencies(this));
	}

	return resourceReferences;
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:13,代码来源:JobMeta.java

示例10: JobEntryCheckFilesLockedDialog

import org.pentaho.di.job.entry.JobEntryInterface; //导入依赖的package包/类
public JobEntryCheckFilesLockedDialog(Shell parent, JobEntryInterface jobEntryInt, Repository rep, JobMeta jobMeta)
  {
      super(parent, jobEntryInt, rep, jobMeta);
      jobEntry = (JobEntryCheckFilesLocked) jobEntryInt;

if (this.jobEntry.getName() == null) 
	this.jobEntry.setName(BaseMessages.getString(PKG, "JobCheckFilesLocked.Name.Default"));
  }
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:9,代码来源:JobEntryCheckFilesLockedDialog.java

示例11: JobEntryFTPSGetDialog

import org.pentaho.di.job.entry.JobEntryInterface; //导入依赖的package包/类
public JobEntryFTPSGetDialog(Shell parent, JobEntryInterface jobEntryInt, Repository rep, JobMeta jobMeta)
{
    super(parent, jobEntryInt, rep, jobMeta);
    jobEntry = (JobEntryFTPSGet) jobEntryInt;
    if (this.jobEntry.getName() == null)
        this.jobEntry.setName(BaseMessages.getString(PKG, "JobFTPS.Name.Default"));
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:8,代码来源:JobEntryFTPSGetDialog.java

示例12: JobEntryUnZipDialog

import org.pentaho.di.job.entry.JobEntryInterface; //导入依赖的package包/类
public JobEntryUnZipDialog(Shell parent, JobEntryInterface jobEntryInt, Repository rep, JobMeta jobMeta)
 {
     super(parent, jobEntryInt, rep, jobMeta);
     jobEntry = (JobEntryUnZip) jobEntryInt;
     if (this.jobEntry.getName() == null) 
this.jobEntry.setName(Messages.getString("JobUnZip.Name.Default"));
 }
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:8,代码来源:JobEntryUnZipDialog.java

示例13: JobEntrySyslogDialog

import org.pentaho.di.job.entry.JobEntryInterface; //导入依赖的package包/类
public JobEntrySyslogDialog(Shell parent, JobEntryInterface jobEntryInt, Repository rep, JobMeta jobMeta)
{
    super(parent, jobEntryInt, rep, jobMeta);
    jobEntry = (JobEntrySyslog) jobEntryInt;
    if (this.jobEntry.getName() == null)
        this.jobEntry.setName(BaseMessages.getString(PKG, "JobEntrySyslog.Name.Default"));
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:8,代码来源:JobEntrySyslogDialog.java

示例14: JobEntryWaitForSQLDialog

import org.pentaho.di.job.entry.JobEntryInterface; //导入依赖的package包/类
public JobEntryWaitForSQLDialog(Shell parent, JobEntryInterface jobEntryInt, Repository rep, JobMeta jobMeta)
{
    super(parent, jobEntryInt, rep, jobMeta);
    jobEntry = (JobEntryWaitForSQL) jobEntryInt;
    if (this.jobEntry.getName() == null)
        this.jobEntry.setName(Messages.getString("JobEntryWaitForSQL.Name.Default"));
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:8,代码来源:JobEntryWaitForSQLDialog.java

示例15: JobEntryFTPDeleteDialog

import org.pentaho.di.job.entry.JobEntryInterface; //导入依赖的package包/类
public JobEntryFTPDeleteDialog(Shell parent, JobEntryInterface jobEntryInt, Repository rep, JobMeta jobMeta)
{
    super(parent, jobEntryInt, rep, jobMeta);
    jobEntry = (JobEntryFTPDelete) jobEntryInt;
    if (this.jobEntry.getName() == null)
        this.jobEntry.setName(BaseMessages.getString(PKG, "JobFTPDelete.Name.Default"));
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:8,代码来源:JobEntryFTPDeleteDialog.java


注:本文中的org.pentaho.di.job.entry.JobEntryInterface类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。