本文整理了Java中org.pentaho.di.repository.Repository.getSlaveID
方法的一些代码示例,展示了Repository.getSlaveID
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Repository.getSlaveID
方法的具体详情如下:
包路径:org.pentaho.di.repository.Repository
类名称:Repository
方法名:getSlaveID
暂无
代码示例来源:origin: pentaho/pentaho-kettle
@Override
public ObjectId getSlaveID( String s ) throws KettleException {
return getDelegate().getSlaveID( s );
}
代码示例来源:origin: pentaho/pentaho-kettle
public void delSlaveServer( String slaveName ) {
try {
ObjectId id = rep.getSlaveID( slaveName );
if ( id != null ) {
rep.deleteSlave( id );
}
refreshTree();
} catch ( KettleException e ) {
new ErrorDialog( shell,
BaseMessages.getString( PKG, "RepositoryExplorerDialog.Slave.Delete.UnexpectedError.Title" ),
BaseMessages.getString( PKG, "RepositoryExplorerDialog.Slave.Delete.UnexpectedError.Message" ), e );
}
}
代码示例来源: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
public void newSlaveServer() {
try {
SlaveServer slaveServer = new SlaveServer();
SlaveServerDialog dd = new SlaveServerDialog( shell, slaveServer, rep.getSlaveServers() );
if ( dd.open() ) {
// See if this slave server already exists...
ObjectId idSlave = rep.getSlaveID( slaveServer.getName() );
if ( idSlave == null ) {
rep.insertLogEntry( "Creating new slave server '" + slaveServer.getName() + "'" );
rep.save( slaveServer, Const.VERSION_COMMENT_INITIAL_VERSION, null );
} else {
MessageBox mb = new MessageBox( shell, SWT.ICON_ERROR | SWT.OK );
mb.setMessage( BaseMessages.getString(
PKG, "RepositoryExplorerDialog.Slave.Create.AlreadyExists.Message" ) );
mb.setText( BaseMessages.getString( PKG, "RepositoryExplorerDialog.Slave.Create.AlreadyExists.Title" ) );
mb.open();
}
// Refresh tree...
refreshTree();
}
} catch ( KettleException e ) {
new ErrorDialog( shell,
BaseMessages.getString( PKG, "RepositoryExplorerDialog.Connection.Create.UnexpectedError.Title" ),
BaseMessages.getString( PKG, "RepositoryExplorerDialog.Connection.Create.UnexpectedError.Message" ), e );
}
}
代码示例来源:origin: pentaho/pentaho-kettle
slaveServerName = slaveServer.getName();
ObjectId slaveId = repository.getSlaveID( slaveServer.getName() );
if ( slaveId == null ) {
MessageBox mb = new MessageBox( shell, SWT.ICON_ERROR | SWT.OK );
代码示例来源:origin: pentaho/pentaho-kettle
slaveServerName = slaveServer.getName();
ObjectId slaveId = repository.getSlaveID( slaveServer.getName() );
if ( slaveId == null ) {
MessageBox mb = new MessageBox( shell, SWT.ICON_ERROR | SWT.OK );
代码示例来源:origin: pentaho/pentaho-kettle
ObjectId slaveId = repository.getSlaveID( slaveServer.getName() );
内容来源于网络,如有侵权,请联系作者删除!