|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface InternalPartition
Represents a Partition. It is comparable to the Partition but it is optimized for internal
usage, so it exposes method not meant for regular Hazelcast users.
| Field Summary | |
|---|---|
static int |
MAX_BACKUP_COUNT
|
static int |
MAX_REPLICA_COUNT
|
static int |
SYNC_WAITING
Indicates that a replica index is waiting for a backup sync |
| Method Summary | |
|---|---|
Address |
getOwnerOrNull()
Returns the Address of the owner of this partition. |
int |
getPartitionId()
Returns the partition id. |
Address |
getReplicaAddress(int replicaIndex)
Returns Address of the replica. |
boolean |
isLocal()
Checks if the partition is local. |
boolean |
isMigrating()
Checks if there currently is a migration going on in this partition. |
boolean |
isOwnerOrBackup(Address address)
Checks if given address is owner of primary or backup of this partition. |
| Field Detail |
|---|
static final int MAX_REPLICA_COUNT
static final int MAX_BACKUP_COUNT
static final int SYNC_WAITING
| Method Detail |
|---|
boolean isLocal()
getOwnerOrNull() returns the same address as 'this' address of the
ClusterService.getThisAddress(). If the address is null or a different address, false
is returned.
int getPartitionId()
Address getOwnerOrNull()
boolean isMigrating()
Address getReplicaAddress(int replicaIndex)
replicaIndex - the index of the replica.
ArrayIndexOutOfBoundsException - when replica index is out of boundsboolean isOwnerOrBackup(Address address)
address - owner address
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||