NewShmInfo shmInfo = null; boolean success = false; DomainSocket sock = peer.getDomainSocket(); try { if (sock == null) {
@Override public DomainSocket getDomainSocket() { return enclosedPeer.getDomainSocket(); }
@Override public DomainSocket getDomainSocket() { return enclosedPeer.getDomainSocket(); }
@Override public DomainSocket getDomainSocket() { return enclosedPeer.getDomainSocket(); }
try { try { if (peer.getDomainSocket() == null) { throw new IOException("You cannot pass file descriptors over " + "anything but a UNIX domain socket."); buf[0] = (byte)DO_NOT_USE_RECEIPT_VERIFICATION.getNumber(); DomainSocket sock = peer.getDomainSocket(); sock.sendFileDescriptors(fds, buf, 0, buf.length); if (supportsReceiptVerification) {
NewShmInfo shmInfo = null; boolean success = false; DomainSocket sock = peer.getDomainSocket(); try { if (sock == null) {
private synchronized void putInternal(DatanodeID dnId, Peer peer) { startExpiryDaemon(); if (capacity == multimap.size()) { evictOldest(); } multimap.put(new Key(dnId, peer.getDomainSocket() != null), new Value(peer, Time.monotonicNow())); }
private synchronized void putInternal(DatanodeID dnId, Peer peer) { startExpiryDaemon(); if (capacity == multimap.size()) { evictOldest(); } multimap.put(new Key(dnId, peer.getDomainSocket() != null), new Value(peer, Time.monotonicNow())); }
private synchronized void putInternal(DatanodeID dnId, Peer peer) { startExpiryDaemon(); if (capacity == multimap.size()) { evictOldest(); } multimap.put(new Key(dnId, peer.getDomainSocket() != null), new Value(peer, Time.monotonicNow())); }
try { try { if (peer.getDomainSocket() == null) { throw new IOException("You cannot pass file descriptors over " + "anything but a UNIX domain socket."); buf[0] = (byte)DO_NOT_USE_RECEIPT_VERIFICATION.getNumber(); DomainSocket sock = peer.getDomainSocket(); sock.sendFileDescriptors(fds, buf, 0, buf.length); if (supportsReceiptVerification) {
NewShmInfo shmInfo = null; boolean success = false; DomainSocket sock = peer.getDomainSocket(); try { if (sock == null) {
try { try { if (peer.getDomainSocket() == null) { throw new IOException("You cannot pass file descriptors over " + "anything but a UNIX domain socket."); buf[0] = (byte)DO_NOT_USE_RECEIPT_VERIFICATION.getNumber(); DomainSocket sock = peer.getDomainSocket(); sock.sendFileDescriptors(fds, buf, 0, buf.length); if (supportsReceiptVerification) {
assertTrue(peer.getDomainSocket() != null); peers.remove(peer);
assertTrue(peer.getDomainSocket() != null); peers.remove(peer);