本文整理汇总了Java中org.pentaho.di.core.logging.ChannelLogTable.getDefault方法的典型用法代码示例。如果您正苦于以下问题:Java ChannelLogTable.getDefault方法的具体用法?Java ChannelLogTable.getDefault怎么用?Java ChannelLogTable.getDefault使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.pentaho.di.core.logging.ChannelLogTable
的用法示例。
在下文中一共展示了ChannelLogTable.getDefault方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: clear
import org.pentaho.di.core.logging.ChannelLogTable; //导入方法依赖的package包/类
public void clear() {
setName( null );
setFilename( null );
notes = new ArrayList<NotePadMeta>();
databases = new ArrayList<DatabaseMeta>();
slaveServers = new ArrayList<SlaveServer>();
channelLogTable = ChannelLogTable.getDefault( this, this );
attributesMap = new HashMap<String, Map<String, String>>();
max_undo = Const.MAX_UNDO;
clearUndo();
clearChanged();
setChanged( false );
channelLogTable = ChannelLogTable.getDefault( this, this );
createdUser = "-";
createdDate = new Date();
modifiedUser = "-";
modifiedDate = new Date();
directory = new RepositoryDirectory();
description = null;
extendedDescription = null;
}
示例2: initTables
import org.pentaho.di.core.logging.ChannelLogTable; //导入方法依赖的package包/类
private void initTables( TransMeta transMeta ) {
TransLogTable transLogTable = TransLogTable.getDefault( mockedVariableSpace, mockedHasDbInterface, null );
initTableWithSampleParams( transLogTable );
transLogTable.setLogInterval( GLOBAL_PARAM );
transLogTable.setLogSizeLimit( GLOBAL_PARAM );
transMeta.setTransLogTable( transLogTable );
StepLogTable stepLogTable = StepLogTable.getDefault( mockedVariableSpace, mockedHasDbInterface );
initTableWithSampleParams( stepLogTable );
transMeta.setStepLogTable( stepLogTable );
PerformanceLogTable performanceLogTable =
PerformanceLogTable.getDefault( mockedVariableSpace, mockedHasDbInterface );
initTableWithSampleParams( performanceLogTable );
performanceLogTable.setLogInterval( GLOBAL_PARAM );
transMeta.setPerformanceLogTable( performanceLogTable );
ChannelLogTable channelLogTable = ChannelLogTable.getDefault( mockedVariableSpace, mockedHasDbInterface );
initTableWithSampleParams( channelLogTable );
transMeta.setChannelLogTable( channelLogTable );
MetricsLogTable metricsLogTable = MetricsLogTable.getDefault( mockedVariableSpace, mockedHasDbInterface );
initTableWithSampleParams( metricsLogTable );
transMeta.setMetricsLogTable( metricsLogTable );
}
示例3: clear
import org.pentaho.di.core.logging.ChannelLogTable; //导入方法依赖的package包/类
public void clear() {
setName( null );
setFilename( null );
jobcopies = new ArrayList<JobEntryCopy>();
jobhops = new ArrayList<JobHopMeta>();
notes = new ArrayList<NotePadMeta>();
databases = new ArrayList<DatabaseMeta>();
slaveServers = new ArrayList<SlaveServer>();
jobLogTable = JobLogTable.getDefault(this, this);
channelLogTable = ChannelLogTable.getDefault(this, this);
jobEntryLogTable = JobEntryLogTable.getDefault(this, this);
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;
// setInternalKettleVariables(); Don't clear the internal variables for
// ad-hoc jobs, it's ruins the previews
// etc.
}
示例4: clear
import org.pentaho.di.core.logging.ChannelLogTable; //导入方法依赖的package包/类
/**
* Clears or reinitializes many of the JobMeta properties.
*/
public void clear() {
setName( null );
setFilename( null );
jobcopies = new ArrayList<JobEntryCopy>();
jobhops = new ArrayList<JobHopMeta>();
notes = new ArrayList<NotePadMeta>();
databases = new ArrayList<DatabaseMeta>();
slaveServers = new ArrayList<SlaveServer>();
jobLogTable = JobLogTable.getDefault(this, this);
channelLogTable = ChannelLogTable.getDefault(this, this);
jobEntryLogTable = JobEntryLogTable.getDefault(this, this);
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;
// setInternalKettleVariables(); Don't clear the internal variables for
// ad-hoc jobs, it's ruins the previews
// etc.
}
示例5: clear
import org.pentaho.di.core.logging.ChannelLogTable; //导入方法依赖的package包/类
/**
* Clears or reinitializes many of the JobMeta properties.
*/
public void clear() {
setName( null );
setFilename( null );
jobcopies = new ArrayList<JobEntryCopy>();
jobhops = new ArrayList<JobHopMeta>();
notes = new ArrayList<NotePadMeta>();
databases = new ArrayList<DatabaseMeta>();
slaveServers = new ArrayList<SlaveServer>();
jobLogTable = JobLogTable.getDefault(this, this);
channelLogTable = ChannelLogTable.getDefault(this, this);
jobEntryLogTable = JobEntryLogTable.getDefault(this, this);
checkpointLogTable = CheckpointLogTable.getDefault(this, this);
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;
// setInternalKettleVariables(); Don't clear the internal variables for
// ad-hoc jobs, it's ruins the previews
// etc.
}
示例6: createJobMeta
import org.pentaho.di.core.logging.ChannelLogTable; //导入方法依赖的package包/类
protected JobMeta createJobMeta( String jobName ) throws Exception {
RepositoryDirectoryInterface rootDir = loadStartDirectory();
JobMeta jobMeta = new JobMeta();
jobMeta.setName( jobName );
jobMeta.setDescription( EXP_JOB_DESC );
jobMeta.setExtendedDescription( EXP_JOB_EXTENDED_DESC );
jobMeta.setRepositoryDirectory( rootDir.findDirectory( DIR_JOBS ) );
jobMeta.setJobversion( EXP_JOB_VERSION );
jobMeta.setJobstatus( EXP_JOB_STATUS );
jobMeta.setCreatedUser( EXP_JOB_CREATED_USER );
jobMeta.setCreatedDate( EXP_JOB_CREATED_DATE );
jobMeta.setModifiedUser( EXP_JOB_MOD_USER );
jobMeta.setModifiedDate( EXP_JOB_MOD_DATE );
jobMeta.addParameterDefinition( EXP_JOB_PARAM_1_NAME, EXP_JOB_PARAM_1_DEF, EXP_JOB_PARAM_1_DESC );
// TODO mlowery other jobLogTable fields could be set for testing here
JobLogTable jobLogTable = JobLogTable.getDefault( jobMeta, jobMeta );
jobLogTable.setConnectionName( EXP_JOB_LOG_TABLE_CONN_NAME );
jobLogTable.setLogInterval( EXP_JOB_LOG_TABLE_INTERVAL );
jobLogTable.setSchemaName( EXP_JOB_LOG_TABLE_SCHEMA_NAME );
jobLogTable.setLogSizeLimit( EXP_JOB_LOG_TABLE_SIZE_LIMIT );
jobLogTable.setTableName( EXP_JOB_LOG_TABLE_TABLE_NAME );
jobLogTable.setTimeoutInDays( EXP_JOB_LOG_TABLE_TIMEOUT_IN_DAYS );
jobMeta.setJobLogTable( jobLogTable );
// TODO mlowery other jobEntryLogTable fields could be set for testing here
JobEntryLogTable jobEntryLogTable = JobEntryLogTable.getDefault( jobMeta, jobMeta );
jobEntryLogTable.setConnectionName( EXP_JOB_LOG_TABLE_CONN_NAME );
jobEntryLogTable.setSchemaName( EXP_JOB_LOG_TABLE_SCHEMA_NAME );
jobEntryLogTable.setTableName( EXP_JOB_LOG_TABLE_TABLE_NAME );
jobEntryLogTable.setTimeoutInDays( EXP_JOB_LOG_TABLE_TIMEOUT_IN_DAYS );
jobMeta.setJobEntryLogTable( jobEntryLogTable );
// TODO mlowery other channelLogTable fields could be set for testing here
ChannelLogTable channelLogTable = ChannelLogTable.getDefault( jobMeta, jobMeta );
channelLogTable.setConnectionName( EXP_JOB_LOG_TABLE_CONN_NAME );
channelLogTable.setSchemaName( EXP_JOB_LOG_TABLE_SCHEMA_NAME );
channelLogTable.setTableName( EXP_JOB_LOG_TABLE_TABLE_NAME );
channelLogTable.setTimeoutInDays( EXP_JOB_LOG_TABLE_TIMEOUT_IN_DAYS );
jobMeta.setChannelLogTable( channelLogTable );
jobMeta.setBatchIdPassed( EXP_JOB_BATCH_ID_PASSED );
jobMeta.setSharedObjectsFile( EXP_JOB_SHARED_OBJECTS_FILE );
DatabaseMeta entryDbMeta = createDatabaseMeta( EXP_DBMETA_NAME_JOB.concat( jobName ) );
repository.save( entryDbMeta, VERSION_COMMENT_V1, null );
deleteStack.push( entryDbMeta );
JobEntryCopy jobEntryCopy1 = createJobEntry1Copy( entryDbMeta );
jobMeta.addJobEntry( jobEntryCopy1 );
JobEntryCopy jobEntryCopy2 = createJobEntry2Copy( entryDbMeta );
jobMeta.addJobEntry( jobEntryCopy2 );
jobMeta.addJobHop( createJobHopMeta( jobEntryCopy1, jobEntryCopy2 ) );
jobMeta.addNote( createNotePadMeta( jobName ) );
return jobMeta;
}