コード例 #1
0
ファイル: UNICAST2.java プロジェクト: pulasthi/JGroups
  /**
   * This method is public only so it can be invoked by unit testing, but should not otherwise be
   * used !
   */
  @ManagedOperation(
      description = "Trashes all connections to other nodes. This is only used for testing")
  public void removeAllConnections() {
    for (SenderEntry entry : send_table.values()) entry.reset();
    send_table.clear();

    sendStableMessages();
    for (ReceiverEntry entry2 : recv_table.values()) entry2.reset();
    recv_table.clear();
  }
コード例 #2
0
ファイル: UNICAST2.java プロジェクト: pulasthi/JGroups
 public void removeSendConnection(Address mbr) {
   SenderEntry entry = send_table.remove(mbr);
   if (entry != null) entry.reset();
 }