本文整理了Java中org.pentaho.di.repository.Repository.loadSlaveServer
方法的一些代码示例,展示了Repository.loadSlaveServer
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Repository.loadSlaveServer
方法的具体详情如下:
包路径:org.pentaho.di.repository.Repository
类名称:Repository
方法名:loadSlaveServer
暂无
代码示例来源:origin: pentaho/pentaho-kettle
@Override
public SlaveServer loadSlaveServer( ObjectId objectId, String s ) throws KettleException {
return getDelegate().loadSlaveServer( objectId, s );
}
代码示例来源:origin: pentaho/pentaho-kettle
public void editSlaveServer( String slaveName ) {
try {
ObjectId id = rep.getSlaveID( slaveName );
SlaveServer slaveServer = rep.loadSlaveServer( id, null ); // Load the last version
SlaveServerDialog dd = new SlaveServerDialog( shell, slaveServer );
if ( dd.open() ) {
rep.insertLogEntry( "Updating slave server '" + slaveServer.getName() + "'" );
rep.save( slaveServer, Const.VERSION_COMMENT_EDIT_VERSION, null );
if ( !slaveName.equalsIgnoreCase( slaveServer.getName() ) ) {
refreshTree();
}
}
} catch ( KettleException e ) {
new ErrorDialog(
shell,
BaseMessages.getString( PKG, "RepositoryExplorerDialog.Slave.Edit.UnexpectedError.Title" ), BaseMessages
.getString( PKG, "RepositoryExplorerDialog.Slave.Edit.UnexpectedError.Message" )
+ slaveName + "]", e );
}
}
代码示例来源:origin: pentaho/pentaho-kettle
List<SlaveServer> slaveServers = new ArrayList<SlaveServer>( slaveIDs.length );
for ( ObjectId id : slaveIDs ) {
SlaveServer slaveServer = rep.loadSlaveServer( id, null );
validateImportedElement( importRules, slaveServer );
sharedObjects.storeObject( slaveServer );
内容来源于网络,如有侵权,请联系作者删除!