• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java UISlave类的典型用法和代码示例

java 2次浏览

本文整理汇总了Java中org.pentaho.di.ui.repository.repositoryexplorer.model.UISlave的典型用法代码示例。如果您正苦于以下问题:Java UISlave类的具体用法?Java UISlave怎么用?Java UISlave使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

UISlave类属于org.pentaho.di.ui.repository.repositoryexplorer.model包,在下文中一共展示了UISlave类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: refreshSlaves

点赞 3

import org.pentaho.di.ui.repository.repositoryexplorer.model.UISlave; //导入依赖的package包/类
public void refreshSlaves() {
  if(repository != null) {
    final List<UISlave> tmpList = new ArrayList<UISlave>();
    Runnable r = new Runnable() {
      public void run() {
        try {
          ObjectId[] slaveIdList = repository.getSlaveIDs(false);
          
          for(ObjectId slaveId : slaveIdList) {
            SlaveServer slave = repository.loadSlaveServer(slaveId, null);
            // Add the database slave to the list
            tmpList.add(new UISlave(slave));
          }
        } catch (KettleException e) {
          // convert to runtime exception so it bubbles up through the UI
          throw new RuntimeException(e);
        }
      
      }
    };
    doWithBusyIndicator(r);
    slaveList.setChildren(tmpList);
  }
}
 

开发者ID:yintaoxue,
项目名称:read-open-source-code,
代码行数:25,
代码来源:SlavesController.java

示例2: refreshSlaves

点赞 3

import org.pentaho.di.ui.repository.repositoryexplorer.model.UISlave; //导入依赖的package包/类
public void refreshSlaves() {
  if ( repository != null ) {
    final List<UISlave> tmpList = new ArrayList<UISlave>();
    Runnable r = new Runnable() {
      public void run() {
        try {
          ObjectId[] slaveIdList = repository.getSlaveIDs( false );

          for ( ObjectId slaveId : slaveIdList ) {
            SlaveServer slave = repository.loadSlaveServer( slaveId, null );
            // Add the database slave to the list
            tmpList.add( new UISlave( slave ) );
          }
        } catch ( KettleException e ) {
          if ( mainController == null || !mainController.handleLostRepository( e ) ) {
            // convert to runtime exception so it bubbles up through the UI
            throw new RuntimeException( e );
          }
        }

      }
    };
    doWithBusyIndicator( r );
    slaveList.setChildren( tmpList );
  }
}
 

开发者ID:pentaho,
项目名称:pentaho-kettle,
代码行数:27,
代码来源:SlavesController.java

示例3: setEnableButtons

点赞 2

import org.pentaho.di.ui.repository.repositoryexplorer.model.UISlave; //导入依赖的package包/类
public void setEnableButtons(List<UISlave> slaves) {
  boolean enableEdit = false;
  boolean enableRemove = false;
  if(slaves != null && slaves.size() > 0) {
    enableRemove = true;
    if(slaves.size() == 1) {
      enableEdit = true;
    }
  }
  // Convenience - Leave 'new' enabled, modify 'edit' and 'remove'
  enableButtons(true, enableEdit, enableRemove);
}
 

开发者ID:yintaoxue,
项目名称:read-open-source-code,
代码行数:13,
代码来源:SlavesController.java

示例4: setEnableButtons

点赞 2

import org.pentaho.di.ui.repository.repositoryexplorer.model.UISlave; //导入依赖的package包/类
public void setEnableButtons( List<UISlave> slaves ) {
  boolean enableEdit = false;
  boolean enableRemove = false;
  if ( slaves != null && slaves.size() > 0 ) {
    enableRemove = true;
    if ( slaves.size() == 1 ) {
      enableEdit = true;
    }
  }
  // Convenience - Leave 'new' enabled, modify 'edit' and 'remove'
  enableButtons( true, enableEdit, enableRemove );
}
 

开发者ID:pentaho,
项目名称:pentaho-kettle,
代码行数:13,
代码来源:SlavesController.java

示例5: setEnableButtons

点赞 2

import org.pentaho.di.ui.repository.repositoryexplorer.model.UISlave; //导入依赖的package包/类
@Override
public void setEnableButtons( List<UISlave> slaves ) {
  if ( isAllowed ) {
    super.setEnableButtons( slaves );
  } else {
    enableButtons( false, false, false );
  }
}
 

开发者ID:pentaho,
项目名称:pentaho-kettle,
代码行数:9,
代码来源:AbsSlavesController.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)