本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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 );
}
}
示例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;
}
示例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;
}
示例12: getLogLevelString
public String getLogLevelString() {
LogLevel lvl = super.getLogLevelByDesc();
if ( lvl == null ) {
lvl = LogLevel.BASIC;
}
return WriteToLogMeta.logLevelCodes[ lvl.getLevel() ];
}
示例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 );
}
示例14: StreamingService
public StreamingService() {
logLevel = LogLevel.BASIC;
}
示例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 ) );
}