當前位置: 首頁>>代碼示例>>Java>>正文


Java Repository.getJobEntryAttributeString方法代碼示例

本文整理匯總了Java中org.pentaho.di.repository.Repository.getJobEntryAttributeString方法的典型用法代碼示例。如果您正苦於以下問題:Java Repository.getJobEntryAttributeString方法的具體用法?Java Repository.getJobEntryAttributeString怎麽用?Java Repository.getJobEntryAttributeString使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.pentaho.di.repository.Repository的用法示例。


在下文中一共展示了Repository.getJobEntryAttributeString方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: loadRep

import org.pentaho.di.repository.Repository; //導入方法依賴的package包/類
public void loadRep(Repository rep, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers) throws KettleException
{
	try
	{
		filename = rep.getJobEntryAttributeString(id_jobentry, "filename");
		maximumTimeout = rep.getJobEntryAttributeString(id_jobentry, "maximum_timeout");
		checkCycleTime = rep.getJobEntryAttributeString(id_jobentry, "check_cycle_time");
		successOnTimeout = rep.getJobEntryAttributeBoolean(id_jobentry, "success_on_timeout");
		fileSizeCheck = rep.getJobEntryAttributeBoolean(id_jobentry, "file_size_check");
		addFilenameToResult = rep.getJobEntryAttributeBoolean(id_jobentry, "add_filename_result");
	}
	catch(KettleException dbe)
	{
		throw new KettleException("Unable to load job entry of type 'wait for file' from the repository for id_jobentry="+id_jobentry, dbe);
	}
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:17,代碼來源:JobEntryWaitForFile.java

示例2: loadRep

import org.pentaho.di.repository.Repository; //導入方法依賴的package包/類
public void loadRep(Repository rep, long id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers)
throws KettleException
 { 
try
{
	super.loadRep(rep, id_jobentry, databases, slaveServers);

      	port          = rep.getJobEntryAttributeString(id_jobentry, "port");
		serverName    = rep.getJobEntryAttributeString(id_jobentry, "servername");
		oid           = rep.getJobEntryAttributeString(id_jobentry, "oid");
		message       = rep.getJobEntryAttributeString(id_jobentry, "message");
		comString     = rep.getJobEntryAttributeString(id_jobentry, "comstring");
		timeout       = rep.getJobEntryAttributeString(id_jobentry, "timeout");
		nrretry       = rep.getJobEntryAttributeString(id_jobentry, "nrretry");
		targettype       = rep.getJobEntryAttributeString(id_jobentry, "targettype");
		user       = rep.getJobEntryAttributeString(id_jobentry, "user");
		passphrase       = rep.getJobEntryAttributeString(id_jobentry, "passphrase");
		engineid       = rep.getJobEntryAttributeString(id_jobentry, "engineid");
		
	}
	catch(KettleException dbe)
	{
		throw new KettleException("Unable to load job entry of type 'SNMPTrap' from the repository for id_jobentry="+id_jobentry, dbe);
	}
}
 
開發者ID:icholy,項目名稱:geokettle-2.0,代碼行數:26,代碼來源:JobEntrySNMPTrap.java

示例3: loadRep

import org.pentaho.di.repository.Repository; //導入方法依賴的package包/類
public void loadRep(Repository rep, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers) throws KettleException
{
try
{
     argFromPrevious = rep.getJobEntryAttributeBoolean(id_jobentry, "arg_from_previous"); //$NON-NLS-1$
     includeSubfolders = rep.getJobEntryAttributeBoolean(id_jobentry, "include_subfolders"); //$NON-NLS-1$

     // How many arguments?
     int argnr = rep.countNrJobEntryAttributes(id_jobentry, "name"); //$NON-NLS-1$
     arguments = new String[argnr];
     filemasks = new String[argnr];

     // Read them all...
     for (int a = 0; a < argnr; a++) {
       arguments[a] = rep.getJobEntryAttributeString(id_jobentry, a, "name"); //$NON-NLS-1$
       filemasks[a] = rep.getJobEntryAttributeString(id_jobentry, a, "filemask"); //$NON-NLS-1$
     }
   } catch (KettleException dbe) {
     throw new KettleException(BaseMessages.getString(PKG, "JobEntryCheckFilesLocked.UnableToLoadFromRepo", String.valueOf(id_jobentry)), dbe); //$NON-NLS-1$
   }
 }
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:22,代碼來源:JobEntryCheckFilesLocked.java

示例4: loadRep

import org.pentaho.di.repository.Repository; //導入方法依賴的package包/類
public void loadRep(Repository rep, long id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers)
	throws KettleException
{
	try
	{
		super.loadRep(rep, id_jobentry, databases, slaveServers);
		isspecificrep = rep.getJobEntryAttributeBoolean(id_jobentry, "isspecificrep"); 
		repname = rep.getJobEntryAttributeString(id_jobentry, "repname"); 
		isspecificuser = rep.getJobEntryAttributeBoolean(id_jobentry, "isspecificuser"); 
		username = rep.getJobEntryAttributeString(id_jobentry, "username"); 
		
	}
	catch(KettleDatabaseException dbe)
	{
		throw new KettleException(Messages.getString("JobEntryConnectedToRepository.Meta.UnableToLoadFromRep")+id_jobentry, dbe);


	}
}
 
開發者ID:icholy,項目名稱:geokettle-2.0,代碼行數:20,代碼來源:JobEntryConnectedToRepository.java

示例5: loadRep

import org.pentaho.di.repository.Repository; //導入方法依賴的package包/類
public void loadRep(Repository rep, long id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers)
	throws KettleException
{
	try
	{
		super.loadRep(rep, id_jobentry, databases, slaveServers);
		xmlfilename = rep.getJobEntryAttributeString(id_jobentry, "xmlfilename");
		xslfilename = rep.getJobEntryAttributeString(id_jobentry, "xslfilename");
		outputfilename = rep.getJobEntryAttributeString(id_jobentry, "outputfilename");
		iffileexists=(int) rep.getJobEntryAttributeInteger(id_jobentry, "iffileexists");
		addfiletoresult=rep.getJobEntryAttributeBoolean(id_jobentry, "addfiletoresult");
		xsltfactory = rep.getJobEntryAttributeString(id_jobentry, "xsltfactory");
		if(xsltfactory==null) xsltfactory=FACTORY_JAXP;
	}
	catch(KettleException dbe)
	{
		throw new KettleException("Unable to load job entry of type 'xslt' from the repository for id_jobentry="+id_jobentry, dbe);
	}
}
 
開發者ID:icholy,項目名稱:geokettle-2.0,代碼行數:20,代碼來源:JobEntryXSLT.java

示例6: loadRep

import org.pentaho.di.repository.Repository; //導入方法依賴的package包/類
public void loadRep(Repository rep, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers) throws KettleException
{
	try
	{
		connection = rep.loadDatabaseMetaFromJobEntryAttribute(id_jobentry, "connection", "id_database", databases);
		
		schemaname = rep.getJobEntryAttributeString(id_jobentry, "schemaname");
		tablename = rep.getJobEntryAttributeString(id_jobentry, "tablename");
		successCondition = getSuccessConditionByCode(Const.NVL(rep.getJobEntryAttributeString(id_jobentry,"success_condition"), ""));
		limit = rep.getJobEntryAttributeString(id_jobentry, "limit");
		iscustomSQL = rep.getJobEntryAttributeBoolean(id_jobentry, "is_custom_sql");
		isUseVars = rep.getJobEntryAttributeBoolean(id_jobentry, "is_usevars");
		isAddRowsResult = rep.getJobEntryAttributeBoolean(id_jobentry, "add_rows_result");
		isClearResultList = rep.getJobEntryAttributeBoolean(id_jobentry, "clear_result_rows");
		
		
		customSQL = rep.getJobEntryAttributeString(id_jobentry, "custom_sql");
	}
	catch(KettleDatabaseException dbe)
	{
		throw new KettleException(BaseMessages.getString(PKG, "JobEntryEvalTableContent.UnableLoadRep",""+id_jobentry), dbe);
	}
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:24,代碼來源:JobEntryEvalTableContent.java

示例7: loadRep

import org.pentaho.di.repository.Repository; //導入方法依賴的package包/類
public void loadRep(Repository rep, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers) throws KettleException
 { 
	try
	{
		valuetype = getValueTypeByCode(Const.NVL(rep.getJobEntryAttributeString(id_jobentry,"valuetype"), ""));
		fieldname  = rep.getJobEntryAttributeString(id_jobentry, "fieldname");
		variablename  = rep.getJobEntryAttributeString(id_jobentry, "variablename");
		fieldtype = getFieldTypeByCode(Const.NVL(rep.getJobEntryAttributeString(id_jobentry,"fieldtype"), ""));
		mask  = rep.getJobEntryAttributeString(id_jobentry, "mask");
		comparevalue  = rep.getJobEntryAttributeString(id_jobentry, "comparevalue");
		minvalue  = rep.getJobEntryAttributeString(id_jobentry, "minvalue");
		maxvalue  = rep.getJobEntryAttributeString(id_jobentry, "maxvalue");
		successcondition = getSuccessConditionByCode(Const.NVL(rep.getJobEntryAttributeString(id_jobentry,"successcondition"), ""));
		successnumbercondition = getSuccessNumberConditionByCode(Const.NVL(rep.getJobEntryAttributeString(id_jobentry,"successnumbercondition"), ""));
		successbooleancondition = getSuccessBooleanConditionByCode(Const.NVL(rep.getJobEntryAttributeString(id_jobentry,"successbooleancondition"), ""));
		successwhenvarset  = rep.getJobEntryAttributeBoolean(id_jobentry, "successwhenvarset");
	}
	catch(KettleException dbe)
	{
		throw new KettleException(BaseMessages.getString(PKG, "JobEntrySimple.Error.Exception.UnableLoadRep")+id_jobentry, dbe);
	}
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:23,代碼來源:JobEntrySimpleEval.java

示例8: loadRep

import org.pentaho.di.repository.Repository; //導入方法依賴的package包/類
public void loadRep(Repository rep, IMetaStore metaStore,
        ObjectId id_jobentry, List<DatabaseMeta> databases,
        List<SlaveServer> slaveServers) throws KettleException {
    try {
        configInfo = rep.getJobEntryAttributeString(id_jobentry,
                "configInfo");
        className = rep
                .getJobEntryAttributeString(id_jobentry, "className");
    } catch (KettleDatabaseException dbe) {
        throw new KettleException(BaseMessages.getString(PKG,
                "JobEntryKettleUtil.UnableToLoadFromRepo",
                String.valueOf(id_jobentry)), dbe);
    }
}
 
開發者ID:majinju,項目名稱:KettleEasyExpand,代碼行數:15,代碼來源:JobEntryEasyExpand.java

示例9: loadRep

import org.pentaho.di.repository.Repository; //導入方法依賴的package包/類
public void loadRep(Repository rep, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers) throws KettleException
{
	try
	{
		tablename  = rep.getJobEntryAttributeString(id_jobentry, "tablename");
		schemaname  = rep.getJobEntryAttributeString(id_jobentry, "schemaname");
		
		connection = rep.loadDatabaseMetaFromJobEntryAttribute(id_jobentry, "connection", "id_database", databases);
	}
	catch(KettleDatabaseException dbe)
	{
		throw new KettleException(BaseMessages.getString(PKG, "TableExists.Meta.UnableLoadRep",""+id_jobentry), dbe);
	}
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:15,代碼來源:JobEntryTableExists.java

示例10: loadRep

import org.pentaho.di.repository.Repository; //導入方法依賴的package包/類
public void loadRep(Repository rep, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers) throws KettleException
{
	try
	{
		xmlfilename = rep.getJobEntryAttributeString(id_jobentry, "xmlfilename");
		xsdfilename = rep.getJobEntryAttributeString(id_jobentry, "xsdfilename");
	}
	catch(KettleException dbe)
	{
		throw new KettleException("Unable to load job entry of type 'xsdvalidator' from the repository for id_jobentry="+id_jobentry, dbe);
	}
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:13,代碼來源:JobEntryXSDValidator.java

示例11: loadRep

import org.pentaho.di.repository.Repository; //導入方法依賴的package包/類
public void loadRep(Repository rep, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers) throws KettleException
 {
	try
	{
		serverName      = rep.getJobEntryAttributeString(id_jobentry, "servername");
		int intServerPort = (int)rep.getJobEntryAttributeInteger(id_jobentry, "serverport");
           serverPort = rep.getJobEntryAttributeString(id_jobentry, "serverport"); // backward compatible.
           if (intServerPort>0 && Const.isEmpty(serverPort)) serverPort = Integer.toString(intServerPort);

		userName        = rep.getJobEntryAttributeString(id_jobentry, "username");
		password = Encr.decryptPasswordOptionallyEncrypted( rep.getJobEntryAttributeString(id_jobentry, "password") );
		remoteDirectory   = rep.getJobEntryAttributeString(id_jobentry, "remoteDirectory");
		localDirectory = rep.getJobEntryAttributeString(id_jobentry, "localDirectory");
		wildcard        = rep.getJobEntryAttributeString(id_jobentry, "wildcard");
		binaryMode          = rep.getJobEntryAttributeBoolean(id_jobentry, "binary");
		timeout             = (int)rep.getJobEntryAttributeInteger(id_jobentry, "timeout");
           remove              = rep.getJobEntryAttributeBoolean(id_jobentry, "remove");
           onlyPuttingNewFiles = rep.getJobEntryAttributeBoolean(id_jobentry, "only_new");
           activeConnection    = rep.getJobEntryAttributeBoolean(id_jobentry, "active");

           
	    proxyHost	= rep.getJobEntryAttributeString(id_jobentry, "proxy_host"); //$NON-NLS-1$
	    proxyPort	= rep.getJobEntryAttributeString(id_jobentry, "proxy_port"); //$NON-NLS-1$
	    proxyUsername	= rep.getJobEntryAttributeString(id_jobentry, "proxy_username"); //$NON-NLS-1$
	    proxyPassword = rep.getJobEntryAttributeString(id_jobentry, "proxy_password"); //$NON-NLS-1$
	    connectionType = FTPSConnection.getConnectionTypeByCode(Const.NVL(rep.getJobEntryAttributeString(id_jobentry,"connection_type"), ""));
	}
	catch(KettleException dbe)
	{
		throw new KettleException(BaseMessages.getString(PKG, "JobFTPSPUT.UnableToLoadFromRepo", String.valueOf(id_jobentry)), dbe);
	}
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:33,代碼來源:JobEntryFTPSPUT.java

示例12: loadRep

import org.pentaho.di.repository.Repository; //導入方法依賴的package包/類
public void loadRep(Repository rep, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers) throws KettleException
  {
    try
    {
		foldername = rep.getJobEntryAttributeString(id_jobentry, "foldername");
		specifywildcard = rep.getJobEntryAttributeBoolean(id_jobentry, "specify_wildcard");  
		wildcard = rep.getJobEntryAttributeString(id_jobentry, "wildcard");
		wildcardexclude = rep.getJobEntryAttributeString(id_jobentry, "wildcardexclude");
	}
	catch(KettleException dbe)
	{
		throw new KettleXMLException(BaseMessages.getString(PKG, "JobEntryDeleteResultFilenames.CanNotLoadFromRep",""+id_jobentry, dbe.getMessage()));
	}
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:15,代碼來源:JobEntryDeleteResultFilenames.java

示例13: loadRep

import org.pentaho.di.repository.Repository; //導入方法依賴的package包/類
public void loadRep(Repository rep, long id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers) throws KettleException
{
  try
  {
    super.loadRep(rep, id_jobentry, databases, slaveServers);

    maximumTimeout = rep.getJobEntryAttributeString(id_jobentry, "maximumTimeout"); //$NON-NLS-1$
    scaleTime = (int) rep.getJobEntryAttributeInteger(id_jobentry, "scaletime"); //$NON-NLS-1$
  } catch (KettleDatabaseException dbe)
  {
    throw new KettleException(Messages.getString("JobEntryDelay.UnableToLoadFromRepo.Label") //$NON-NLS-1$
        + id_jobentry, dbe);
  }
}
 
開發者ID:icholy,項目名稱:geokettle-2.0,代碼行數:15,代碼來源:JobEntryDelay.java

示例14: loadRep

import org.pentaho.di.repository.Repository; //導入方法依賴的package包/類
public void loadRep(Repository rep, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers) throws KettleException {
  try {
     script = rep.getJobEntryAttributeString(id_jobentry, "script"); //$NON-NLS-1$
  } catch (KettleDatabaseException dbe) {
    throw new KettleException(
        BaseMessages.getString(PKG, "JobEntryEval.UnableToLoadFromRepo", String.valueOf(id_jobentry)), dbe); //$NON-NLS-1$
  }
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:9,代碼來源:JobEntryEval.java

示例15: loadRep

import org.pentaho.di.repository.Repository; //導入方法依賴的package包/類
public void loadRep(Repository rep, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers) throws KettleException
{
	try
	{
		filename = rep.getJobEntryAttributeString(id_jobentry, "filename"); //$NON-NLS-1$
		failIfFileNotExists = rep.getJobEntryAttributeBoolean(id_jobentry, "fail_if_file_not_exists"); //$NON-NLS-1$
	}
	catch(KettleException dbe)
	{
		throw new KettleException(BaseMessages.getString(PKG, "JobEntryDeleteFile.ERROR_0002_Unable_To_Load_From_Repository", id_jobentry ), dbe); //$NON-NLS-1$
	}
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:13,代碼來源:JobEntryDeleteFile.java


注:本文中的org.pentaho.di.repository.Repository.getJobEntryAttributeString方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。