/** * returns the membership socket of the old * distributed system, if available, when * isReconnectingDS returns true. This is * used to connect the new DM to the distributed * system through RemoteTransportConfig. */ public Object oldDSMembershipInfo() { if (this.quorumChecker != null) { return this.quorumChecker.getMembershipInfo(); } return null; }
/** * returns the membership socket of the old * distributed system, if available, when * isReconnectingDS returns true. This is * used to connect the new DM to the distributed * system through RemoteTransportConfig. */ public Object oldDSMembershipInfo() { if (this.quorumChecker != null) { return this.quorumChecker.getMembershipInfo(); } return null; }
@Override public void releaseQuorumChecker(QuorumChecker checker) { ((QuorumCheckerImpl)checker).teardown(); InternalDistributedSystem system = InternalDistributedSystem.getAnyInstance(); if (system == null || !system.isConnected()) { DatagramSocket sock = (DatagramSocket)checker.getMembershipInfo(); if (sock != null && !sock.isClosed()) { sock.close(); } } }