Package com.hazelcast.client.spi

Examples of com.hazelcast.client.spi.ClientClusterService


    public ClientPrincipal getPrincipal() {
        return principal;
    }

    private boolean isMember(Address target) {
        final ClientClusterService clientClusterService = client.getClientClusterService();
        return clientClusterService.getMember(target) != null;
    }
View Full Code Here


            }
        }
    }

    private void getInitialPartitions() {
        final ClientClusterService clusterService = client.getClientClusterService();
        final Collection<MemberImpl> memberList = clusterService.getMemberList();
        for (MemberImpl member : memberList) {
            final Address target = member.getAddress();
            PartitionsResponse response = getPartitionsFrom(target);
            if (response != null) {
                processPartitionResponse(response);
View Full Code Here

    private class RefreshTask implements Runnable {
        public void run() {
            if (updating.compareAndSet(false, true)) {
                try {
                    final ClientClusterService clusterService = client.getClientClusterService();
                    final Address master = clusterService.getMasterAddress();
                    final PartitionsResponse response = getPartitionsFrom(master);
                    if (response != null) {
                        processPartitionResponse(response);
                    }
                } catch (HazelcastInstanceNotActiveException ignored) {
View Full Code Here

            }
        }
    }

    private void getInitialPartitions() {
        final ClientClusterService clusterService = client.getClientClusterService();
        final Collection<MemberImpl> memberList = clusterService.getMemberList();
        for (MemberImpl member : memberList) {
            final Address target = member.getAddress();
            PartitionsResponse response = getPartitionsFrom(target);
            if (response != null) {
                processPartitionResponse(response);
View Full Code Here

    private class RefreshTask implements Runnable {
        public void run() {
            if (updating.compareAndSet(false, true)) {
                try {
                    final ClientClusterService clusterService = client.getClientClusterService();
                    final Address master = clusterService.getMasterAddress();
                    final PartitionsResponse response = getPartitionsFrom(master);
                    if (response != null) {
                        processPartitionResponse(response);
                    }
                } catch (HazelcastInstanceNotActiveException ignored) {
View Full Code Here

    public ClientPrincipal getPrincipal() {
        return principal;
    }

    private boolean isMember(Address target) {
        final ClientClusterService clientClusterService = client.getClientClusterService();
        return clientClusterService.getMember(target) != null;
    }
View Full Code Here

        EventHandler<PortableMessage> handler = new EventHandler<PortableMessage>() {
            @Override
            public void handle(PortableMessage event) {
                SerializationService serializationService = getContext().getSerializationService();
                ClientClusterService clusterService = getContext().getClusterService();

                E messageObject = serializationService.toObject(event.getMessage());
                Member member = clusterService.getMember(event.getUuid());
                Message<E> message = new Message<E>(name, messageObject, event.getPublishTime(), member);
                listener.onMessage(message);
            }

            @Override
View Full Code Here

        final ClientPrincipal cp = principal;
        return cp != null ? cp.getUuid() : null;
    }

    private boolean isMember(Address target) {
        final ClientClusterService clientClusterService = client.getClientClusterService();
        return clientClusterService.getMember(target) != null;
    }
View Full Code Here

            EmptyStatement.ignore(ignored);
        }
    }

    private void getInitialPartitions() {
        ClientClusterService clusterService = client.getClientClusterService();
        Collection<MemberImpl> memberList = clusterService.getMemberList();
        for (MemberImpl member : memberList) {
            Address target = member.getAddress();
            PartitionsResponse response = getPartitionsFrom(target);
            if (response != null) {
                processPartitionResponse(response);
View Full Code Here

            if (!updating.compareAndSet(false, true)) {
                return;
            }

            try {
                ClientClusterService clusterService = client.getClientClusterService();
                Address master = clusterService.getMasterAddress();
                PartitionsResponse response = getPartitionsFrom(master);
                if (response != null) {
                    processPartitionResponse(response);
                }
            } catch (HazelcastInstanceNotActiveException ignored) {
View Full Code Here

TOP

Related Classes of com.hazelcast.client.spi.ClientClusterService

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.