Package com.hazelcast.partition.client

Examples of com.hazelcast.partition.client.GetPartitionsRequest


            case ClientPortableHook.MEMBERSHIP_LISTENER:
                return new AddMembershipListenerRequest();
            case ClientPortableHook.CLIENT_PING:
                return new ClientPingRequest();
            case ClientPortableHook.GET_PARTITIONS:
                return new GetPartitionsRequest();
            case ClientPortableHook.REMOVE_LISTENER:
                return new RemoveDistributedObjectListenerRequest();
            default:
                return null;
        }
View Full Code Here


        throw new IllegalStateException("Cannot get initial partitions!");
    }

    private PartitionsResponse getPartitionsFrom(Address address) {
        try {
            final Future<PartitionsResponse> future = client.getInvocationService().invokeOnTarget(new GetPartitionsRequest(), address);
            return client.getSerializationService().toObject(future.get());
        } catch (Exception e) {
            logger.severe("Error while fetching cluster partition table!", e);
        }
        return null;
View Full Code Here

                break;
            case ClientPortableHook.CLIENT_PING:
                portable = new ClientPingRequest();
                break;
            case ClientPortableHook.GET_PARTITIONS:
                portable = new GetPartitionsRequest();
                break;
            case ClientPortableHook.REMOVE_LISTENER:
                portable = new RemoveDistributedObjectListenerRequest();
                break;
            default:
View Full Code Here

    }

    private PartitionsResponse getPartitionsFrom(Address address) {
        try {
            final Future<PartitionsResponse> future =
                    client.getInvocationService().invokeOnTarget(new GetPartitionsRequest(), address);
            return client.getSerializationService().toObject(future.get());
        } catch (Exception e) {
            LOGGER.severe("Error while fetching cluster partition table!", e);
        }
        return null;
View Full Code Here

                break;
            case ClientPortableHook.CLIENT_PING:
                portable = new ClientPingRequest();
                break;
            case ClientPortableHook.GET_PARTITIONS:
                portable = new GetPartitionsRequest();
                break;
            case ClientPortableHook.REMOVE_LISTENER:
                portable = new RemoveDistributedObjectListenerRequest();
                break;
            case ClientPortableHook.REMOVE_ALL_LISTENERS:
View Full Code Here

    }

    private PartitionsResponse getPartitionsFrom(Address address) {
        try {
            ClientInvocationService invocationService = client.getInvocationService();
            Future<PartitionsResponse> future = invocationService.invokeOnTarget(new GetPartitionsRequest(), address);
            return client.getSerializationService().toObject(future.get());
        } catch (Exception e) {
            if (client.getLifecycleService().isRunning()) {
                LOGGER.severe("Error while fetching cluster partition table!", e);
            }
View Full Code Here

TOP

Related Classes of com.hazelcast.partition.client.GetPartitionsRequest

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.