当前位置: 首页>>代码示例>>Java>>正文


Java LogChannel.GENERAL属性代码示例

本文整理汇总了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;
}
 
开发者ID:mattcasters,项目名称:pentaho-pdi-dataset,代码行数:18,代码来源:EditRowsDialog.java

示例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;
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:40,代码来源:JobMeta.java

示例3: getNamedClusterEmbedManager

@Override
public NamedClusterEmbedManager getNamedClusterEmbedManager( ) {
  if ( namedClusterEmbedManager == null ) {
    namedClusterEmbedManager = new NamedClusterEmbedManager( this, LogChannel.GENERAL );
  }
  return namedClusterEmbedManager;
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:7,代码来源:JobMeta.java

示例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 );
  }
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:53,代码来源:Trans.java

示例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;
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:74,代码来源:TransMeta.java

示例6: getGeneralLogger

/**
 * For testing
 */
protected LogChannelInterface getGeneralLogger() {
  return LogChannel.GENERAL;
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:6,代码来源:DatabaseMeta.java

示例7: AbstractDelegate

public AbstractDelegate() {
  log = LogChannel.GENERAL;
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:3,代码来源:AbstractDelegate.java


注:本文中的org.pentaho.di.core.logging.LogChannel.GENERAL属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。