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

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

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

Repository.getClusterID介绍

暂无

代码示例

代码示例来源:origin: pentaho/pentaho-kettle

@Override
public ObjectId getClusterID( String s ) throws KettleException {
 return getDelegate().getClusterID( s );
}

代码示例来源:origin: pentaho/pentaho-kettle

public void delCluster( String clusterName ) {
 try {
  ObjectId id = rep.getClusterID( clusterName );
  if ( id != null ) {
   rep.deleteClusterSchema( id );
  }
  refreshTree();
 } catch ( KettleException e ) {
  new ErrorDialog( shell,
   BaseMessages.getString( PKG, "RepositoryExplorerDialog.Cluster.Delete.UnexpectedError.Title" ),
   BaseMessages.getString( PKG, "RepositoryExplorerDialog.Cluster.Delete.UnexpectedError.Message" ), e );
 }
}

代码示例来源:origin: pentaho/pentaho-kettle

public void editCluster( String clusterName ) {
 try {
  ObjectId id = rep.getClusterID( clusterName );
  ClusterSchema cluster = rep.loadClusterSchema( id, rep.getSlaveServers(), null ); // Load the last version
  ClusterSchemaDialog dd = new ClusterSchemaDialog( shell, cluster, rep.getSlaveServers() );
  if ( dd.open() ) {
   rep.insertLogEntry( "Updating cluster '" + cluster.getName() + "'" );
   rep.save( cluster, Const.VERSION_COMMENT_EDIT_VERSION, null );
   if ( !clusterName.equalsIgnoreCase( cluster.getName() ) ) {
    refreshTree();
   }
  }
 } catch ( KettleException e ) {
  //CHECKSTYLE:LineLength:OFF
  new ErrorDialog( shell,
   BaseMessages.getString( PKG, "RepositoryExplorerDialog.Cluster.Edit.UnexpectedError.Title" ),
   BaseMessages.getString( PKG, "RepositoryExplorerDialog.Cluster.Edit.UnexpectedError.Message" ) + clusterName + "]", e );
 }
}

代码示例来源:origin: pentaho/pentaho-kettle

public void newCluster() {
 try {
  ClusterSchema cluster = new ClusterSchema();
  ClusterSchemaDialog dd = new ClusterSchemaDialog( shell, cluster, rep.getSlaveServers() );
  if ( dd.open() ) {
   // See if this slave server already exists...
   ObjectId idCluster = rep.getClusterID( cluster.getName() );
   if ( idCluster == null ) {
    rep.insertLogEntry( "Creating new cluster '" + cluster.getName() + "'" );
    rep.save( cluster, Const.VERSION_COMMENT_INITIAL_VERSION, null );
   } else {
    MessageBox mb = new MessageBox( shell, SWT.ICON_ERROR | SWT.OK );
    mb.setMessage( BaseMessages.getString(
     PKG, "RepositoryExplorerDialog.Cluster.Create.AlreadyExists.Message" ) );
    mb
     .setText( BaseMessages
      .getString( PKG, "RepositoryExplorerDialog.Cluster.Create.AlreadyExists.Title" ) );
    mb.open();
   }
   // Refresh tree...
   refreshTree();
  }
 } catch ( KettleException e ) {
  new ErrorDialog( shell,
   BaseMessages.getString( PKG, "RepositoryExplorerDialog.Cluster.Create.UnexpectedError.Title" ),
   BaseMessages.getString( PKG, "RepositoryExplorerDialog.Cluster.Create.UnexpectedError.Message" ), e );
 }
}

代码示例来源:origin: pentaho/pentaho-kettle

clusterSchemaName = clusterSchema.getName();
ObjectId clusterId = repository.getClusterID( clusterSchema.getName() );
if ( clusterId == null ) {
 MessageBox mb = new MessageBox( shell, SWT.ICON_ERROR | SWT.OK );

代码示例来源:origin: pentaho/pentaho-kettle

clusterSchemaName = clusterSchema.getName();
ObjectId clusterId = repository.getClusterID( clusterSchema.getName() );
if ( clusterId == null ) {
 MessageBox mb = new MessageBox( shell, SWT.ICON_ERROR | SWT.OK );

代码示例来源:origin: pentaho/pentaho-kettle

if ( clusterDialog.open() ) {
 ObjectId idCluster = repository.getClusterID( cluster.getName() );
 if ( idCluster == null ) {
  if ( cluster.getName() != null && !cluster.getName().equals( "" ) ) {

相关文章

Repository类方法