本文整理汇总了Java中org.pentaho.di.core.logging.ChannelLogTable类的典型用法代码示例。如果您正苦于以下问题:Java ChannelLogTable类的具体用法?Java ChannelLogTable怎么用?Java ChannelLogTable使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ChannelLogTable类属于org.pentaho.di.core.logging包,在下文中一共展示了ChannelLogTable类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: TransDialog
import org.pentaho.di.core.logging.ChannelLogTable; //导入依赖的package包/类
public TransDialog(Shell parent, int style, TransMeta transMeta, Repository rep)
{
super(parent, style);
this.props = PropsUI.getInstance();
this.transMeta = transMeta;
this.rep = rep;
this.newDirectory = null;
directoryChangeAllowed=true;
changed=false;
// Create a copy of the trans log table object
//
transLogTable = (TransLogTable) transMeta.getTransLogTable().clone();
performanceLogTable = (PerformanceLogTable) transMeta.getPerformanceLogTable().clone();
channelLogTable = (ChannelLogTable) transMeta.getChannelLogTable().clone();
stepLogTable = (StepLogTable) transMeta.getStepLogTable().clone();
}
示例2: JobDialog
import org.pentaho.di.core.logging.ChannelLogTable; //导入依赖的package包/类
public JobDialog(Shell parent, int style, JobMeta jobMeta, Repository rep)
{
super(parent, style);
this.jobMeta=jobMeta;
this.props=PropsUI.getInstance();
this.rep=rep;
this.newDirectory = null;
directoryChangeAllowed=true;
jobLogTable = (JobLogTable) jobMeta.getJobLogTable().clone();
channelLogTable = (ChannelLogTable) jobMeta.getChannelLogTable().clone();
jobEntryLogTable = (JobEntryLogTable) jobMeta.getJobEntryLogTable().clone();
checkpointLogTable = (CheckpointLogTable) jobMeta.getCheckpointLogTable().clone();
}
示例3: TransDialog
import org.pentaho.di.core.logging.ChannelLogTable; //导入依赖的package包/类
public TransDialog(Shell parent, int style, TransMeta transMeta, Repository rep)
{
super(parent, style);
this.props = PropsUI.getInstance();
this.transMeta = transMeta;
this.rep = rep;
this.newDirectory = null;
directoryChangeAllowed=true;
changed=false;
// Create a copy of the trans log table object
//
transLogTable = (TransLogTable) transMeta.getTransLogTable().clone();
performanceLogTable = (PerformanceLogTable) transMeta.getPerformanceLogTable().clone();
channelLogTable = (ChannelLogTable) transMeta.getChannelLogTable().clone();
stepLogTable = (StepLogTable) transMeta.getStepLogTable().clone();
metricsLogTable = (MetricsLogTable) transMeta.getMetricsLogTable().clone();
}
示例4: 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;
}
示例5: getLogInfo
import org.pentaho.di.core.logging.ChannelLogTable; //导入依赖的package包/类
private void getLogInfo( int previousLogTableIndex ) {
if ( previousLogTableIndex < 0 ) {
return;
}
// Remember the that was entered data...
//
LogTableInterface modifiedLogTable = logTables.get( previousLogTableIndex );
LogTableUserInterface logTableUserInterface = logTableUserInterfaces.get( previousLogTableIndex );
if ( logTableUserInterface != null ) {
logTableUserInterface.retrieveLogTableOptions( modifiedLogTable );
} else {
if ( modifiedLogTable instanceof JobLogTable ) {
getJobLogTableOptions( (JobLogTable) modifiedLogTable );
} else if ( modifiedLogTable instanceof ChannelLogTable ) {
getChannelLogTableOptions( (ChannelLogTable) modifiedLogTable );
} else if ( modifiedLogTable instanceof JobEntryLogTable ) {
getJobEntryLogTableOptions( (JobEntryLogTable) modifiedLogTable );
}
}
}
示例6: getChannelLogTableOptions
import org.pentaho.di.core.logging.ChannelLogTable; //导入依赖的package包/类
private void getChannelLogTableOptions( ChannelLogTable channelLogTable ) {
// The connection...
//
channelLogTable.setConnectionName( wLogconnection.getText() );
channelLogTable.setSchemaName( wLogSchema.getText() );
channelLogTable.setTableName( wLogTable.getText() );
channelLogTable.setTimeoutInDays( wLogTimeout.getText() );
for ( int i = 0; i < channelLogTable.getFields().size(); i++ ) {
TableItem item = wOptionFields.table.getItem( i );
LogTableField field = channelLogTable.getFields().get( i );
field.setEnabled( item.getChecked() );
field.setFieldName( item.getText( 1 ) );
}
}
示例7: TransDialog
import org.pentaho.di.core.logging.ChannelLogTable; //导入依赖的package包/类
public TransDialog( Shell parent, int style, TransMeta transMeta, Repository rep ) {
super( parent, style );
this.props = PropsUI.getInstance();
this.transMeta = transMeta;
this.rep = rep;
this.newDirectory = null;
directoryChangeAllowed = true;
changed = false;
// Create a copy of the trans log table object
//
transLogTable = (TransLogTable) transMeta.getTransLogTable().clone();
performanceLogTable = (PerformanceLogTable) transMeta.getPerformanceLogTable().clone();
channelLogTable = (ChannelLogTable) transMeta.getChannelLogTable().clone();
stepLogTable = (StepLogTable) transMeta.getStepLogTable().clone();
metricsLogTable = (MetricsLogTable) transMeta.getMetricsLogTable().clone();
}
示例8: saveTransAsXmlFile
import org.pentaho.di.core.logging.ChannelLogTable; //导入依赖的package包/类
private boolean saveTransAsXmlFile( TransMeta transMeta, boolean export ) {
TransLogTable origTransLogTable = transMeta.getTransLogTable();
StepLogTable origStepLogTable = transMeta.getStepLogTable();
PerformanceLogTable origPerformanceLogTable = transMeta.getPerformanceLogTable();
ChannelLogTable origChannelLogTable = transMeta.getChannelLogTable();
MetricsLogTable origMetricsLogTable = transMeta.getMetricsLogTable();
try {
XmlExportHelper.swapTables( transMeta );
return saveXMLFile( transMeta, export );
} finally {
transMeta.setTransLogTable( origTransLogTable );
transMeta.setStepLogTable( origStepLogTable );
transMeta.setPerformanceLogTable( origPerformanceLogTable );
transMeta.setChannelLogTable( origChannelLogTable );
transMeta.setMetricsLogTable( origMetricsLogTable );
}
}
示例9: saveJobAsXmlFile
import org.pentaho.di.core.logging.ChannelLogTable; //导入依赖的package包/类
private boolean saveJobAsXmlFile( JobMeta jobMeta, boolean export ) {
JobLogTable origJobLogTable = jobMeta.getJobLogTable();
JobEntryLogTable originEntryLogTable = jobMeta.getJobEntryLogTable();
ChannelLogTable originChannelLogTable = jobMeta.getChannelLogTable();
List<LogTableInterface> originExtraLogTables = jobMeta.getExtraLogTables();
try {
XmlExportHelper.swapTables( jobMeta );
return saveXMLFile( jobMeta, export );
} finally {
jobMeta.setJobLogTable( origJobLogTable );
jobMeta.setJobEntryLogTable( originEntryLogTable );
jobMeta.setChannelLogTable( originChannelLogTable );
jobMeta.setExtraLogTables( originExtraLogTables );
}
}
示例10: savingJobToXmlNotChangesLogTables
import org.pentaho.di.core.logging.ChannelLogTable; //导入依赖的package包/类
@Test
public void savingJobToXmlNotChangesLogTables() {
JobMeta jobMeta = new JobMeta();
initTables( jobMeta );
JobLogTable originJobLogTable = jobMeta.getJobLogTable();
JobEntryLogTable originJobEntryLogTable = jobMeta.getJobEntryLogTable();
ChannelLogTable originChannelLogTable = jobMeta.getChannelLogTable();
when( spoon.getActiveTransformation() ).thenReturn( null );
when( spoon.getActiveJob() ).thenReturn( jobMeta );
when( spoon.saveXMLFile( any( JobMeta.class ), anyBoolean() ) ).thenReturn( true );
when( spoon.saveXMLFile( anyBoolean() ) ).thenCallRealMethod();
spoon.saveXMLFile( true );
tablesCommonValuesEqual( originJobLogTable, jobMeta.getJobLogTable() );
assertEquals( originJobLogTable.getLogInterval(), jobMeta.getJobLogTable().getLogInterval() );
assertEquals( originJobLogTable.getLogSizeLimit(), jobMeta.getJobLogTable().getLogSizeLimit() );
tablesCommonValuesEqual( originJobEntryLogTable, jobMeta.getJobEntryLogTable() );
tablesCommonValuesEqual( originChannelLogTable, jobMeta.getChannelLogTable() );
}
示例11: 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 );
}
示例12: 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.
}
示例13: JobDialog
import org.pentaho.di.core.logging.ChannelLogTable; //导入依赖的package包/类
public JobDialog(Shell parent, int style, JobMeta jobMeta, Repository rep)
{
super(parent, style);
this.jobMeta=jobMeta;
this.props=PropsUI.getInstance();
this.rep=rep;
this.newDirectory = null;
directoryChangeAllowed=true;
jobLogTable = (JobLogTable) jobMeta.getJobLogTable().clone();
channelLogTable = (ChannelLogTable) jobMeta.getChannelLogTable().clone();
jobEntryLogTable = (JobEntryLogTable) jobMeta.getJobEntryLogTable().clone();
}
示例14: writeLogChannelInformation
import org.pentaho.di.core.logging.ChannelLogTable; //导入依赖的package包/类
/**
* Write log channel information.
*
* @throws KettleException the kettle exception
*/
protected void writeLogChannelInformation() throws KettleException {
Database db = null;
ChannelLogTable channelLogTable = jobMeta.getChannelLogTable();
// PDI-7070: If parent job has the same channel logging info, don't duplicate log entries
Job j = getParentJob();
if(j != null) {
if(channelLogTable.equals(j.getJobMeta().getChannelLogTable()))
return;
}
// end PDI-7070
try {
db = new Database(this, channelLogTable.getDatabaseMeta());
db.shareVariablesWith(this);
db.connect();
db.setCommit(logCommitSize);
List<LoggingHierarchy> loggingHierarchyList = getLoggingHierarchy();
for (LoggingHierarchy loggingHierarchy : loggingHierarchyList) {
db.writeLogRecord(channelLogTable, LogStatus.START, loggingHierarchy, null);
}
// Also time-out the log records in here...
//
db.cleanupLogRecords(channelLogTable);
} catch(Exception e) {
throw new KettleException(BaseMessages.getString(PKG, "Trans.Exception.UnableToWriteLogChannelInformationToLogTable"), e);
} finally {
if (!db.isAutoCommit()) db.commit(true);
db.disconnect();
}
}
示例15: 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.
}