Package com.hazelcast.mapreduce.impl.task

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


        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

                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

    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

Related Classes of com.hazelcast.mapreduce.impl.task.JobPartitionStateImpl

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.