コード例 #1
0
  private void checkTopology(
      final HornetQServer serverParameter,
      final String clusterName,
      final String nodeId1,
      final String nodeId2,
      final TransportConfiguration cfg1,
      final TransportConfiguration cfg2) {
    Topology topology =
        serverParameter.getClusterManager().getClusterConnection(clusterName).getTopology();

    TopologyMemberImpl member1 = topology.getMember(nodeId1);
    TopologyMemberImpl member2 = topology.getMember(nodeId2);
    Assert.assertEquals(member1.getLive().getParams().toString(), cfg1.getParams().toString());
    Assert.assertEquals(member2.getLive().getParams().toString(), cfg2.getParams().toString());
  }
コード例 #2
0
ファイル: QuorumManager.java プロジェクト: dcaillia/hornetq
 /**
  * @param tm
  * @return
  */
 private boolean useIt(TopologyMemberImpl tm) {
   return tm.getLive() != null && !targetServerID.equals(tm.getLive().getName());
 }