org.pentaho.di.repository.Repository.loadSlaveServer()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(100)

本文整理了Java中org.pentaho.di.repository.Repository.loadSlaveServer方法的一些代码示例,展示了Repository.loadSlaveServer的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Repository.loadSlaveServer方法的具体详情如下:
包路径:org.pentaho.di.repository.Repository
类名称:Repository
方法名:loadSlaveServer

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 );

相关文章

Repository类方法