public interface InternalPartitionService extends IPartitionService
| Modifier and Type | Field and Description | 
|---|---|
| static long | DEFAULT_REPLICA_SYNC_DELAYDelay for anti-entropy replica synchronization. | 
| static String | MIGRATION_EVENT_TOPICStatic constant for dispatching and listening migration events | 
| static int | MIGRATION_RETRY_COUNTRetry count for migration operations. | 
| static long | MIGRATION_RETRY_PAUSERetry pause for migration operations. | 
| static String | PARTITION_LOST_EVENT_TOPICStatic constant for dispatching and listening internal partition lost events | 
| static long | REPLICA_SYNC_RETRY_DELAYRetry delay for replica synchronization. | 
SERVICE_NAME| Modifier and Type | Method and Description | 
|---|---|
| PartitionRuntimeState | createPartitionState() | 
| void | firstArrangement() | 
| InternalPartition[] | getInternalPartitions() | 
| int | getMemberGroupsSize() | 
| InternalPartition | getPartition(int partitionId)Returns the IPartition for a given partitionId. | 
| InternalPartition | getPartition(int partitionId,
            boolean triggerOwnerAssignment)Returns the IPartition for a given partitionId. | 
| long[] | getPartitionReplicaVersions(int partitionId) | 
| long[] | incrementPartitionReplicaVersions(int partitionId,
                                 int totalBackupCount) | 
| boolean | isMemberAllowedToJoin(Address address) | 
| boolean | isPartitionReplicaVersionStale(int partitionId,
                              long[] versions,
                              int replicaIndex) | 
| void | memberAdded(MemberImpl newMember) | 
| void | memberRemoved(MemberImpl deadMember) | 
| void | pauseMigration() | 
| boolean | prepareToSafeShutdown(long timeout,
                     TimeUnit seconds) | 
| void | resumeMigration() | 
| void | updatePartitionReplicaVersions(int partitionId,
                              long[] replicaVersions,
                              int replicaIndex) | 
addLocalPartitionLostListener, addMigrationListener, addPartitionLostListener, getMaxAllowedBackupCount, getMemberPartitions, getMemberPartitionsMap, getMigrationQueueSize, getPartitionCount, getPartitionId, getPartitionId, getPartitionOwner, getPartitionOwnerOrWait, getPartitions, getPartitionStateVersion, hasOnGoingMigration, hasOnGoingMigrationLocal, isMemberStateSafe, isPartitionOwner, removeMigrationListener, removePartitionLostListenerstatic final int MIGRATION_RETRY_COUNT
static final long MIGRATION_RETRY_PAUSE
static final long DEFAULT_REPLICA_SYNC_DELAY
static final long REPLICA_SYNC_RETRY_DELAY
static final String MIGRATION_EVENT_TOPIC
static final String PARTITION_LOST_EVENT_TOPIC
InternalPartition getPartition(int partitionId)
IPartitionServicegetPartition in interface IPartitionServicepartitionId - the partitionIdInternalPartition getPartition(int partitionId, boolean triggerOwnerAssignment)
IPartitionServicetriggerOwnerAssignment is true,
 it will trigger partition assignment.
 
 The IPartition for a given partitionId will never change, so it can be cached safely.getPartition in interface IPartitionServicepartitionId - the partitionIdtriggerOwnerAssignment - flag to trigger partition assignmentint getMemberGroupsSize()
void pauseMigration()
void resumeMigration()
boolean isMemberAllowedToJoin(Address address)
void memberAdded(MemberImpl newMember)
void memberRemoved(MemberImpl deadMember)
boolean prepareToSafeShutdown(long timeout,
                            TimeUnit seconds)
InternalPartition[] getInternalPartitions()
void firstArrangement()
PartitionRuntimeState createPartitionState()
boolean isPartitionReplicaVersionStale(int partitionId,
                                     long[] versions,
                                     int replicaIndex)
long[] getPartitionReplicaVersions(int partitionId)
void updatePartitionReplicaVersions(int partitionId,
                                  long[] replicaVersions,
                                  int replicaIndex)
long[] incrementPartitionReplicaVersions(int partitionId,
                                       int totalBackupCount)
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.