本文整理汇总了Java中org.pentaho.di.core.logging.LogChannel.GENERAL属性的典型用法代码示例。如果您正苦于以下问题:Java LogChannel.GENERAL属性的具体用法?Java LogChannel.GENERAL怎么用?Java LogChannel.GENERAL使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.pentaho.di.core.logging.LogChannel
的用法示例。
在下文中一共展示了LogChannel.GENERAL属性的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: EditRowsDialog
public EditRowsDialog( Shell parent, int style,
String title, String message, RowMetaInterface rowMeta, List<Object[]> rowBuffer ) {
this.title = title;
this.message = message;
this.rowBuffer = rowBuffer;
this.rowMeta = rowMeta;
this.parentShell = parent;
this.style = ( style != SWT.None ) ? style : this.style;
props = PropsUI.getInstance();
bounds = null;
hscroll = -1;
vscroll = -1;
title = null;
message = null;
this.log = LogChannel.GENERAL;
}
示例2: clear
/**
* Clears or reinitializes many of the JobMeta properties.
*/
@Override
public void clear() {
jobcopies = new ArrayList<JobEntryCopy>();
jobhops = new ArrayList<JobHopMeta>();
jobLogTable = JobLogTable.getDefault( this, this );
jobEntryLogTable = JobEntryLogTable.getDefault( this, this );
extraLogTables = new ArrayList<LogTableInterface>();
List<PluginInterface> plugins = PluginRegistry.getInstance().getPlugins( LogTablePluginType.class );
for ( PluginInterface plugin : plugins ) {
try {
LogTablePluginInterface logTablePluginInterface = (LogTablePluginInterface) PluginRegistry.getInstance()
.loadClass( plugin );
if ( logTablePluginInterface.getType() == TableType.JOB ) {
logTablePluginInterface.setContext( this, this );
extraLogTables.add( logTablePluginInterface );
}
} catch ( Exception e ) {
LogChannel.GENERAL.logError( "Error loading log table plugin with ID " + plugin.getIds()[0], e );
}
}
arguments = null;
super.clear();
loopCache = new HashMap<String, Boolean>();
addDefaults();
jobStatus = -1;
jobVersion = null;
// setInternalKettleVariables(); Don't clear the internal variables for
// ad-hoc jobs, it's ruins the previews
// etc.
log = LogChannel.GENERAL;
}
示例3: getNamedClusterEmbedManager
@Override
public NamedClusterEmbedManager getNamedClusterEmbedManager( ) {
if ( namedClusterEmbedManager == null ) {
namedClusterEmbedManager = new NamedClusterEmbedManager( this, LogChannel.GENERAL );
}
return namedClusterEmbedManager;
}
示例4: Trans
/**
* Instantiates a new transformation using any of the provided parameters including the variable bindings, a
* repository, a name, a repository directory name, and a filename. This is a multi-purpose method that supports
* loading a transformation from a file (if the filename is provided but not a repository object) or from a repository
* (if the repository object, repository directory name, and transformation name are specified).
*
* @param parent
* the parent variable space and named params
* @param rep
* the repository
* @param name
* the name of the transformation
* @param dirname
* the dirname the repository directory name
* @param filename
* the filename containing the transformation definition
* @throws KettleException
* if any error occurs during loading, parsing, or creation of the transformation
*/
public <Parent extends VariableSpace & NamedParams> Trans( Parent parent, Repository rep, String name, String dirname,
String filename ) throws KettleException {
this();
try {
if ( rep != null ) {
RepositoryDirectoryInterface repdir = rep.findDirectory( dirname );
if ( repdir != null ) {
this.transMeta = rep.loadTransformation( name, repdir, null, false, null ); // reads last version
} else {
throw new KettleException( BaseMessages.getString( PKG, "Trans.Exception.UnableToLoadTransformation", name,
dirname ) );
}
} else {
transMeta = new TransMeta( filename, false );
}
this.log = LogChannel.GENERAL;
transMeta.initializeVariablesFrom( parent );
initializeVariablesFrom( parent );
// PDI-3064 do not erase parameters from meta!
// instead of this - copy parameters to actual transformation
this.copyParametersFrom( parent );
this.activateParameters();
this.setDefaultLogCommitSize();
// Get a valid transactionId in case we run database transactional.
transactionId = calculateTransactionId();
threadName = transactionId; // / backward compatibility but deprecated!
} catch ( KettleException e ) {
throw new KettleException( BaseMessages.getString( PKG, "Trans.Exception.UnableToOpenTransformation", name ), e );
}
}
示例5: clear
/**
* Clears the transformation's meta-data, including the lists of databases, steps, hops, notes, dependencies,
* partition schemas, slave servers, and cluster schemas. Logging information and timeouts are reset to defaults, and
* recent connection info is cleared.
*/
@Override
public void clear() {
setObjectId( null );
steps = new ArrayList<>();
hops = new ArrayList<>();
dependencies = new ArrayList<>();
partitionSchemas = new ArrayList<>();
clusterSchemas = new ArrayList<>();
namedParams = new NamedParamsDefault();
stepChangeListeners = new ArrayList<>();
slaveStepCopyPartitionDistribution = new SlaveStepCopyPartitionDistribution();
trans_status = -1;
trans_version = null;
transLogTable = TransLogTable.getDefault( this, this, steps );
performanceLogTable = PerformanceLogTable.getDefault( this, this );
stepLogTable = StepLogTable.getDefault( this, this );
metricsLogTable = MetricsLogTable.getDefault( this, this );
sizeRowset = Const.ROWS_IN_ROWSET;
sleepTimeEmpty = Const.TIMEOUT_GET_MILLIS;
sleepTimeFull = Const.TIMEOUT_PUT_MILLIS;
maxDateConnection = null;
maxDateTable = null;
maxDateField = null;
maxDateOffset = 0.0;
maxDateDifference = 0.0;
undo = new ArrayList<>();
max_undo = Const.MAX_UNDO;
undo_position = -1;
counters = new Hashtable<>();
resultRows = null;
super.clear();
// LOAD THE DATABASE CACHE!
dbCache = DBCache.getInstance();
resultRows = new ArrayList<>();
resultFiles = new ArrayList<>();
feedbackShown = true;
feedbackSize = Const.ROWS_UPDATE;
// Thread priority:
// - set to false in version 2.5.0
// - re-enabling in version 3.0.1 to prevent excessive locking (PDI-491)
//
usingThreadPriorityManagment = true;
// The performance monitoring options
//
capturingStepPerformanceSnapShots = false;
stepPerformanceCapturingDelay = 1000; // every 1 seconds
stepPerformanceCapturingSizeLimit = "100"; // maximum 100 data points
stepsFieldsCache = new HashMap<>();
loopCache = new HashMap<>();
previousStepCache = new HashMap<>();
transformationType = TransformationType.Normal;
log = LogChannel.GENERAL;
}
示例6: getGeneralLogger
/**
* For testing
*/
protected LogChannelInterface getGeneralLogger() {
return LogChannel.GENERAL;
}
示例7: AbstractDelegate
public AbstractDelegate() {
log = LogChannel.GENERAL;
}