本文整理了Java中org.pentaho.di.repository.Repository.getLog
方法的一些代码示例,展示了Repository.getLog
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Repository.getLog
方法的具体详情如下:
包路径:org.pentaho.di.repository.Repository
类名称:Repository
方法名:getLog
暂无
代码示例来源:origin: pentaho/pentaho-kettle
public RepositoryExportProgressDialog( Shell shell, Repository rep, RepositoryDirectoryInterface dir,
String filename, ImportRules importRules ) {
this.shell = shell;
this.rep = rep;
this.dir = dir;
this.filename = filename;
this.importRules = importRules;
this.log = rep.getLog();
}
代码示例来源:origin: pentaho/pentaho-kettle
/**
* @param repository
*/
public RepositoryExporter( Repository repository ) {
this.log = repository.getLog();
this.repository = repository;
this.importRules = new ImportRules();
}
代码示例来源:origin: pentaho/pentaho-kettle
@Override
public LogChannelInterface getLog() {
return getDelegate().getLog();
}
代码示例来源:origin: pentaho/pentaho-kettle
private void logMessage() {
String url = baseUrl + "/kettle/status";
String message = "[" + url + "](" + url + ")";
repository.getLog().logBasic( BaseMessages.getString( PKG, "SchedulerRequest.submit.message" ), message );
}
代码示例来源:origin: pentaho/pentaho-kettle
@Override
public OverwritePrompter getOverwritePrompter() {
return DisplayInvocationHandler.forObject( OverwritePrompter.class, new PopupOverwritePrompter( shell, props ),
display, rep.getLog(), true );
}
}
代码示例来源:origin: pentaho/pentaho-kettle
@Override
public void run() {
IRepositoryImporter importer = rep.getImporter();
importer.setImportRules( importRules );
importer.importAll( DisplayInvocationHandler.forObject( RepositoryImportFeedbackInterface.class,
RepositoryImportProgressDialog.this, display, rep.getLog(), true ), fileDirectory, filenames,
baseDirectory, false, false, versionComment );
if ( !shell.isDisposed() ) {
display.asyncExec( new Runnable() {
@Override
public void run() {
wClose.setEnabled( true );
}
} );
}
}
} );
代码示例来源:origin: pentaho/pentaho-kettle
private RepositoryExplorerDialog( Shell par, int style, Repository rep, VariableSpace variableSpace ) {
super( par, style );
this.props = PropsUI.getInstance();
this.rep = rep;
this.log = rep.getLog();
this.variableSpace = variableSpace;
sortColumn = 0;
ascending = false;
objectMap = new HashMap<String, RepositoryElementMetaInterface>();
repositoryMeta = rep.getRepositoryMeta();
capabilities = repositoryMeta.getRepositoryCapabilities();
securityProvider = rep.getSecurityProvider();
securityManager = rep.getSecurityManager();
readonly = securityProvider.isReadOnly();
includeDeleted = false;
}
代码示例来源:origin: pentaho/pentaho-kettle
@Before
public void beforeTest() throws IOException, KettleException {
MockitoAnnotations.initMocks( this );
Mockito.when( repository.getLog() ).thenReturn( log );
ObjectId id = new ObjectId() {
@Override
代码示例来源:origin: pentaho/pentaho-kettle
public Repository establishRepositoryConnection( RepositoryMeta repositoryMeta, final String username, final String password,
final RepositoryOperation... operations ) throws KettleException, KettleSecurityException {
Repository rep = PluginRegistry.getInstance().loadClass( RepositoryPluginType.class, repositoryMeta, Repository.class );
rep.init( repositoryMeta );
rep.getLog().setLogLevel( getLog().getLogLevel() );
rep.connect( username != null ? username : null, password != null ? password : null );
if ( operations != null ) {
// throws KettleSecurityException if username does does have permission for given operations
rep.getSecurityProvider().validateAction( operations );
}
return rep;
}
代码示例来源:origin: pentaho/pentaho-kettle
PluginRegistry.getInstance().loadClass( RepositoryPluginType.class, repositoryMeta, Repository.class );
repository.init( repositoryMeta );
repository.getLog().setLogLevel( log.getLogLevel() );
} catch ( Exception e ) {
log.logError( BaseMessages.getString( PKG, "Import.Error.UnableToLoadOrInitializeRepository" ) );
内容来源于网络,如有侵权,请联系作者删除!