Package com.hazelcast.partition.impl

Examples of com.hazelcast.partition.impl.SafeStateCheckOperation


            return true;
        }
        final Collection<Future> futures = new ArrayList<Future>(memberList.size());
        for (MemberImpl member : memberList) {
            final Address target = member.getAddress();
            final Operation operation = new SafeStateCheckOperation();
            final InternalCompletableFuture future = node.getNodeEngine().getOperationService()
                    .invokeOnTarget(InternalPartitionService.SERVICE_NAME, operation, target);
            futures.add(future);
        }
        // todo this max wait is appropriate?
View Full Code Here


        final MemberImpl localMember = getNode().getLocalMember();
        if (localMember.equals(member)) {
            return isLocalMemberSafe();
        }
        final Address target = ((MemberImpl) member).getAddress();
        final Operation operation = new SafeStateCheckOperation();
        final InternalCompletableFuture future = getNode().getNodeEngine().getOperationService()
                .invokeOnTarget(InternalPartitionService.SERVICE_NAME, operation, target);
        boolean safe;
        try {
            final Object result = future.get(10, TimeUnit.SECONDS);
View Full Code Here

TOP

Related Classes of com.hazelcast.partition.impl.SafeStateCheckOperation

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.