Package org.gradle.messaging.remote.internal.inet

Examples of org.gradle.messaging.remote.internal.inet.MultiChoiceAddress


        try {
            OutputStream outputStream = new EncodedStream.EncodedOutput(target);
            FlushableEncoder encoder = new OutputStreamBackedEncoder(outputStream);
            encoder.writeNullableString(pid == null ? null : pid.toString());
            encoder.writeString(uid);
            MultiChoiceAddress multiChoiceAddress = (MultiChoiceAddress) address;
            UUID canonicalAddress = (UUID) multiChoiceAddress.getCanonicalAddress();
            encoder.writeLong(canonicalAddress.getMostSignificantBits());
            encoder.writeLong(canonicalAddress.getLeastSignificantBits());
            encoder.writeInt(multiChoiceAddress.getPort());
            encoder.writeSmallInt(multiChoiceAddress.getCandidates().size());
            for (InetAddress inetAddress : multiChoiceAddress.getCandidates()) {
                encoder.writeBinary(inetAddress.getAddress());
            }
            encoder.writeString(daemonLog.getPath());
            encoder.flush();
        } catch (IOException e) {
View Full Code Here


            List<InetAddress> addresses = new ArrayList<InetAddress>(addressCount);
            for (int i = 0; i < addressCount; i++) {
                InetAddress address = InetAddress.getByAddress(decoder.readBinary());
                addresses.add(address);
            }
            Address address = new MultiChoiceAddress(canonicalAddress, port, addresses);
            File daemonLog = new File(decoder.readString());
            return new DaemonStartupInfo(uid, address, new DaemonDiagnostics(daemonLog, pid));
        } catch (IOException e) {
            throw new UncheckedIOException(e);
        }
View Full Code Here

        private DiscoveryMessage readChannelAvailable() throws IOException {
            MessageOriginator originator = readMessageOriginator();
            String group = input.readString();
            String channel = input.readString();
            MultiChoiceAddress address = readAddress();
            address = address.addAddresses(remoteAddress.getCandidates());
            return new ChannelAvailable(originator, group, channel, address);
        }
View Full Code Here

                int length = input.readInt(true);
                byte[] binAddress = input.readBytes(length);
                InetAddress inetAddress = InetAddress.getByAddress(binAddress);
                addresses.add(inetAddress);
            }
            return new MultiChoiceAddress(uuid, port, addresses);
        }
View Full Code Here

TOP

Related Classes of org.gradle.messaging.remote.internal.inet.MultiChoiceAddress

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.