Examples of SafeStateCheckOperation


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

Examples of com.hazelcast.partition.impl.SafeStateCheckOperation

        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
Copyright © 2018 www.massapi.com. 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.