コード例 #1
0
ファイル: ClusterManagerImpl.java プロジェクト: alesj/hornetq
  public synchronized void deploy() throws Exception {
    if (clustered) {
      for (BroadcastGroupConfiguration config : configuration.getBroadcastGroupConfigurations()) {
        deployBroadcastGroup(config);
      }

      for (ClusterConnectionConfiguration config : configuration.getClusterConfigurations()) {
        deployClusterConnection(config);
      }
    }
  }
コード例 #2
0
ファイル: ClusterManager.java プロジェクト: ravib777/hornetq
  public synchronized void deploy() throws Exception {
    if (state == State.STOPPED) {
      state = State.DEPLOYED;
    } else {
      throw new IllegalStateException();
    }

    for (BroadcastGroupConfiguration config : configuration.getBroadcastGroupConfigurations()) {
      deployBroadcastGroup(config);
    }

    for (ClusterConnectionConfiguration config : configuration.getClusterConfigurations()) {
      deployClusterConnection(config);
    }
  }