本文整理汇总了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);
}
}
示例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);
}
}
示例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$
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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()));
}
}
示例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);
}
}
示例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$
}
}
示例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$
}
}