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


Java LogLevel.BASIC属性代码示例

本文整理汇总了Java中org.pentaho.di.core.logging.LogLevel.BASIC属性的典型用法代码示例。如果您正苦于以下问题:Java LogLevel.BASIC属性的具体用法?Java LogLevel.BASIC怎么用?Java LogLevel.BASIC使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.pentaho.di.core.logging.LogLevel的用法示例。


在下文中一共展示了LogLevel.BASIC属性的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: logger

public static LogLevel logger(String level) {
	LogLevel logLevel = null;
	if ("basic".equals(level)) {
		logLevel = LogLevel.BASIC;
	} else if ("detail".equals(level)) {
		logLevel = LogLevel.DETAILED;
	} else if ("error".equals(level)) {
		logLevel = LogLevel.ERROR;
	} else if ("debug".equals(level)) {
		logLevel = LogLevel.DEBUG;
	} else if ("minimal".equals(level)) {
		logLevel = LogLevel.MINIMAL;
	} else if ("rowlevel".equals(level)) {
		logLevel = LogLevel.ROWLEVEL;
	} else {
		logLevel = KETTLE_LOGLEVEL;
	}
	return logLevel;
}
 
开发者ID:jiangzongyao,项目名称:kettle_support_kettle8.0,代码行数:19,代码来源:Constant.java

示例2: clear

public void clear()
{
	super.clear();

	specificationMethod = ObjectLocationSpecificationMethod.FILENAME;
	transname=null;
	filename=null;
	directory = null;
	arguments=null;
	argFromPrevious=false;
       execPerRow=false;
	addDate=false;
	addTime=false;
	logfile=null;
	logext=null;
	setLogfile=false;
	clearResultRows=false;
	clearResultFiles=false;
	remoteSlaveServerName=null;
	setAppendLogfile=false;
	waitingToFinish=true;
	followingAbortRemotely=false; // backward compatibility reasons
	createParentFolder=false;
	logFileLevel = LogLevel.BASIC;
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:25,代码来源:JobEntryTrans.java

示例3: getLogLevelByDesc

public LogLevel getLogLevelByDesc()
{
	if(loglevel==null) return LogLevel.BASIC;
	LogLevel retval;
	if(loglevel.equals(logLevelCodes[0]))
		retval=LogLevel.NOTHING;
	else if(loglevel.equals(logLevelCodes[1]))
		retval=LogLevel.ERROR;
	else if(loglevel.equals(logLevelCodes[2]))
		retval=LogLevel.MINIMAL;
	else if(loglevel.equals(logLevelCodes[3]))
		retval=LogLevel.BASIC;
	else if(loglevel.equals(logLevelCodes[4]))
		retval=LogLevel.DETAILED;
	else if(loglevel.equals(logLevelCodes[5]))
		retval=LogLevel.DEBUG;
	else
		retval=LogLevel.ROWLEVEL;
	return retval;
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:20,代码来源:WriteToLogMeta.java

示例4: TransExecutionConfiguration

public TransExecutionConfiguration()
{
	executingLocally = true;
	
    clusterPosting = true;
    clusterPreparing = true;
    clusterStarting = true;
    clusterShowingTransformation = false;
    
    passingExport = false;
    
    arguments = new HashMap<String, String>();
    params = new HashMap<String, String>();
    variables = new HashMap<String, String>();
    
    transDebugMeta = null;
    
    logLevel = LogLevel.BASIC;
    
    clearingLog = true;
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:21,代码来源:TransExecutionConfiguration.java

示例5: TransExecutionConfiguration

public TransExecutionConfiguration()
{
	executingLocally = true;
	
    clusterPosting = true;
    clusterPreparing = true;
    clusterStarting = true;
    clusterShowingTransformation = false;
    
    passingExport = false;
    
    arguments = new HashMap<String, String>();
    params = new HashMap<String, String>();
    variables = new HashMap<String, String>();
    
    transDebugMeta = null;
    
    logLevel = LogLevel.BASIC;
    
    clearingLog = true;
    
    gatheringMetrics=false;
    showingSubComponents=true;
}
 
开发者ID:jjeb,项目名称:kettle-trunk,代码行数:24,代码来源:TransExecutionConfiguration.java

示例6: clear

@Override
public void clear() {
  super.clear();

  specificationMethod = ObjectLocationSpecificationMethod.FILENAME;
  transname = null;
  filename = null;
  directory = null;
  arguments = null;
  argFromPrevious = false;
  execPerRow = false;
  addDate = false;
  addTime = false;
  logfile = null;
  logext = null;
  setLogfile = false;
  clearResultRows = false;
  clearResultFiles = false;
  remoteSlaveServerName = null;
  setAppendLogfile = false;
  waitingToFinish = true;
  followingAbortRemotely = false; // backward compatibility reasons
  createParentFolder = false;
  logFileLevel = LogLevel.BASIC;
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:25,代码来源:JobEntryTrans.java

示例7: getLogLevelByDesc

public LogLevel getLogLevelByDesc() {
  if ( loglevel == null ) {
    return LogLevel.BASIC;
  }
  LogLevel retval;
  if ( loglevel.equals( logLevelCodes[0] ) ) {
    retval = LogLevel.NOTHING;
  } else if ( loglevel.equals( logLevelCodes[1] ) ) {
    retval = LogLevel.ERROR;
  } else if ( loglevel.equals( logLevelCodes[2] ) ) {
    retval = LogLevel.MINIMAL;
  } else if ( loglevel.equals( logLevelCodes[3] ) ) {
    retval = LogLevel.BASIC;
  } else if ( loglevel.equals( logLevelCodes[4] ) ) {
    retval = LogLevel.DETAILED;
  } else if ( loglevel.equals( logLevelCodes[5] ) ) {
    retval = LogLevel.DEBUG;
  } else {
    retval = LogLevel.ROWLEVEL;
  }
  return retval;
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:22,代码来源:WriteToLogMeta.java

示例8: TransExecutionConfiguration

public TransExecutionConfiguration() {
  executingLocally = true;

  clusterPosting = true;
  clusterPreparing = true;
  clusterStarting = true;
  clusterShowingTransformation = false;

  passingExport = false;

  arguments = new HashMap<String, String>();
  params = new HashMap<String, String>();
  variables = new HashMap<String, String>();

  transDebugMeta = null;

  logLevel = LogLevel.BASIC;

  clearingLog = true;

  gatheringMetrics = false;
  showingSubComponents = true;
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:23,代码来源:TransExecutionConfiguration.java

示例9: getData

@Override
public void getData( TransMeta transMeta ) throws KettleException {
  try {

    String serviceName = transMeta.getAttribute( StreamingConst.STREAMING_GROUP, StreamingConst.STREAMING_SERVICE_NAME );
    if ( Const.isEmpty( serviceName ) ) {
      return;
    }
    MetaStoreFactory<StreamingService> rtFactory = new MetaStoreFactory<StreamingService>( StreamingService.class, transMeta.getMetaStore(), PentahoDefaults.NAMESPACE );
    StreamingService streamingService = rtFactory.loadElement( serviceName );
    if ( streamingService == null ) {
      return;
    }

    wServiceName.setText( Const.NVL( streamingService.getName(), "" ) );
    wServiceStep.setText( Const.NVL( streamingService.getStepname(), "" ) );
    wServiceCacheDuration.setText( Const.NVL( streamingService.getCacheDuration(), "" ) );
    wServiceCacheSize.setText( Const.NVL( streamingService.getCacheSize(), "" ) );
    wPreloadService.setSelection( streamingService.isPreloaded() );
    wClearOnStart.setSelection( streamingService.isClearingOnStart() );
    wReplaceAtTransEnd.setSelection(streamingService.isCacheFlipping());
    LogLevel logLevel = streamingService.getLogLevel()==null ? LogLevel.BASIC : streamingService.getLogLevel();
    wLogLevel.select( logLevel.getLevel() );

  } catch ( Exception e ) {
    throw new KettleException( "Unable to load streaming service", e );
  }
}
 
开发者ID:mattcasters,项目名称:pentaho-pdi-streaming,代码行数:28,代码来源:StreamingTransDialogTab.java

示例10: JobExecutionConfiguration

public JobExecutionConfiguration()
{
	executingLocally = true;
	executingRemotely = false;
	passingExport = false;
	        
    arguments = new HashMap<String, String>();
    params = new HashMap<String, String>();
    variables = new HashMap<String, String>();
    
    logLevel = LogLevel.BASIC;
    
    clearingLog = true;
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:14,代码来源:JobExecutionConfiguration.java

示例11: JobExecutionConfiguration

public JobExecutionConfiguration() {
  executingLocally = true;
  executingRemotely = false;
  passingExport = false;

  arguments = new HashMap<String, String>();
  params = new HashMap<String, String>();
  variables = new HashMap<String, String>();
  extensionOptions = new HashMap<String, String>();

  logLevel = LogLevel.BASIC;

  clearingLog = true;
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:14,代码来源:JobExecutionConfiguration.java

示例12: getLogLevelString

public String getLogLevelString() {
  LogLevel lvl = super.getLogLevelByDesc();
  if ( lvl == null ) {
    lvl = LogLevel.BASIC;
  }
  return WriteToLogMeta.logLevelCodes[ lvl.getLevel() ];
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:7,代码来源:WriteToLogMetaSymmetric.java

示例13: testLogBasic

@Test
public void testLogBasic() {
  streamLogger = new ConfigurableStreamLogger( log, is, LogLevel.BASIC, PREFIX );
  streamLogger.run();

  Mockito.verify( log ).logBasic( OUT1 );
  Mockito.verify( log ).logBasic( OUT2 );
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:8,代码来源:ConfigurableStreamLoggerTest.java

示例14: StreamingService

public StreamingService() {
  logLevel = LogLevel.BASIC;
}
 
开发者ID:mattcasters,项目名称:pentaho-pdi-streaming,代码行数:3,代码来源:StreamingService.java

示例15: testLogfileWritesFromRemote

@Test
public void testLogfileWritesFromRemote() throws Exception {
  JobEntryJob job = spy( new JobEntryJob( JOB_ENTRY_JOB_NAME ) );
  doCallRealMethod().when( job ).execute( any( Result.class ), anyInt() );

  Job parentJob = mock( Job.class );
  JobMeta parentJobMeta = mock( JobMeta.class );
  JobMeta jobMeta = mock( JobMeta.class );
  SlaveServer slaveServer = mock( SlaveServer.class );
  LogChannelInterface log = mock( LogChannelInterface.class );
  SlaveServerJobStatus status = mock( SlaveServerJobStatus.class );

  when( parentJob.getLogLevel() ).thenReturn( LogLevel.BASIC );
  when( parentJobMeta.getRepositoryDirectory() ).thenReturn( null );
  when( jobMeta.getRepositoryDirectory() ).thenReturn( mock( RepositoryDirectoryInterface.class ) );
  when( jobMeta.getName() ).thenReturn( JOB_META_NAME );
  when( parentJob.getJobMeta() ).thenReturn( parentJobMeta );
  when( parentJobMeta.findSlaveServer( REMOTE_SLAVE_SERVER_NAME ) ).thenReturn( slaveServer );
  when( slaveServer.getLogChannel() ).thenReturn( log );
  when( log.getLogLevel() ).thenReturn( LogLevel.BASIC );
  when( slaveServer.sendXML( anyString(), anyString() ) ).thenReturn( REPLY );
  when( slaveServer.execService( anyString() ) ).thenReturn( REPLY );
  when( slaveServer.getJobStatus( anyString(), anyString(), anyInt() ) ).thenReturn( status );
  when( status.getResult() ).thenReturn( mock( Result.class ) );
  when( status.getLoggingString() ).thenReturn( LOG );

  file = Files.createTempFile( "file", "" );

  doReturn( LOG_FILE_NAME ).when( job ).getLogFilename();
  doReturn( file.toString() ).when( job ).environmentSubstitute( LOG_FILE_NAME );
  doReturn( REMOTE_SLAVE_SERVER_NAME ).when( job ).environmentSubstitute( REMOTE_SLAVE_SERVER_NAME );
  doReturn( jobMeta ).when( job ).getJobMeta( any( Repository.class ), any( VariableSpace.class ) );
  doNothing().when( job ).copyVariablesFrom( anyObject() );
  doNothing().when( job ).setParentVariableSpace( anyObject() );

  job.setLogfile = true;
  job.createParentFolder = false;
  job.logFileLevel = LogLevel.BASIC;
  job.execPerRow = false;
  job.paramsFromPrevious = false;
  job.argFromPrevious = false;
  job.waitingToFinish = true;
  job.setSpecificationMethod( ObjectLocationSpecificationMethod.FILENAME );
  job.setRemoteSlaveServerName( REMOTE_SLAVE_SERVER_NAME );
  job.setParentJob( parentJob );
  job.setParentJobMeta( parentJobMeta );

  job.execute( new Result(), 0 );
  String result = Files.lines( file ).collect( Collectors.joining( "" ) );
  assertTrue( result.contains( LOG ) );
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:51,代码来源:JobEntryJobIT.java


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