Examples of JobPartitionStateImpl


Examples of com.hazelcast.mapreduce.impl.task.JobPartitionStateImpl

    private static boolean compareAndSwapPartitionState(int partitionId, JobPartitionState oldPartitionState,
                                                        JobProcessInformationImpl processInformation, Address owner,
                                                        JobPartitionState.State newState) {

        JobPartitionState newPartitionState = new JobPartitionStateImpl(owner, newState);
        if (processInformation.updatePartitionState(partitionId, oldPartitionState, newPartitionState)) {
            return true;
        }
        return false;
    }
View Full Code Here

Examples of com.hazelcast.mapreduce.impl.task.JobPartitionStateImpl

        public JobPartitionStateImpl read(ObjectDataInput in)
                throws IOException {
            if (in.readBoolean()) {
                Address owner = in.readObject();
                JobPartitionState.State state = JobPartitionState.State.byOrdinal(in.readInt());
                return new JobPartitionStateImpl(owner, state);
            }
            return null;
        }
View Full Code Here

Examples of com.hazelcast.mapreduce.impl.task.JobPartitionStateImpl

                JobPartitionState[] partitionStates = new JobPartitionState[length];
                for (int i = 0; i < length; i++) {
                    if (in.readBoolean()) {
                        Address owner = in.readObject();
                        JobPartitionState.State state = JobPartitionState.State.byOrdinal(in.readInt());
                        partitionStates[i] = new JobPartitionStateImpl(owner, state);
                    }
                }
                return partitionStates;
            }
            return null;
View Full Code Here

Examples of com.hazelcast.mapreduce.impl.task.JobPartitionStateImpl

    private static boolean compareAndSwapPartitionState(int partitionId, JobPartitionState oldPartitionState,
                                                        JobProcessInformationImpl processInformation, Address owner,
                                                        JobPartitionState.State newState) {

        JobPartitionState newPartitionState = new JobPartitionStateImpl(owner, newState);
        if (processInformation.updatePartitionState(partitionId, oldPartitionState, newPartitionState)) {
            return true;
        }
        return false;
    }
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.