public interface PartitionedService extends Service
| Modifier and Type | Interface and Description | 
|---|---|
static interface  | 
PartitionedService.PartitionedAction
PartitionedAction represents a type of action taken by a PartitionedService. 
 | 
static class  | 
PartitionedService.PartitionRecoveryAction
A PartitionedAction representing the recovery of orphaned partitions from the persistent storage, or the assignment of empty partitions if the persistent storage is unavailable or lost. 
 | 
Service.MemberJoinAction| Modifier and Type | Method and Description | 
|---|---|
void | 
addPartitionListener(PartitionListener listener)
Add a PartitionListener to this service. 
 | 
int | 
getBackupCount()
Determine the configured redundancy count that this service has been configured to maintain. 
 | 
Member | 
getBackupOwner(int nPartition, int nBackup)
Determine the backup owner of the specified partition. 
 | 
KeyAssociator | 
getKeyAssociator()
Determine the key associator that this service has been configured to use. 
 | 
Member | 
getKeyOwner(Object oKey)
Determine the primary owner of the specified key, as determined by the combination of the KeyPartitioningStrategy and the PartitionAssignmentStrategy. 
 | 
KeyPartitioningStrategy | 
getKeyPartitioningStrategy()
Determine the strategy for key partitioning that this service has been configured to use. 
 | 
PartitionSet | 
getOwnedPartitions(Member member)
Determine the PartitionSet that is currently owned by a cluster Member. 
 | 
Set<Member> | 
getOwnershipEnabledMembers()
Return a Set of Member objects, one for each Member that has registered this PartitionedService and is partition ownership-enabled. 
 | 
Member | 
getOwnershipSenior()
Return the senior ownership-enabled member in the service. 
 | 
int | 
getOwnershipVersion(int nPartition)
Determine the primary owner's version of the specified partition. 
 | 
PartitionAssignmentStrategy | 
getPartitionAssignmentStrategy()
Determine the strategy for assigning partitions to cluster members that this service has been configured to use. 
 | 
int | 
getPartitionCount()
Determine the number of partitions that the service has been configured to "break up" the conceptual "key set" into. 
 | 
Member | 
getPartitionOwner(int nPartition)
Determine the primary owner of the specified partition. 
 | 
void | 
removePartitionListener(PartitionListener listener)
Remove a PartitionListener from this service. 
 | 
addMemberListener, getCluster, getDependencies, getInfo, getResourceRegistry, getSerializer, getUserContext, removeMemberListener, setDependencies, setUserContextaddServiceListener, removeServiceListenerconfigure, isRunning, shutdown, start, stopgetContextClassLoader, setContextClassLoaderint getPartitionCount()
The value of this property is in the range [1..n] where n is an arbitrarily large integer value that does not exceed Integer.MAX_VALUE.
int getBackupCount()
The value of this property is in the range [0..n] where n is an arbitrarily large integer value that does not exceed Integer.MAX_VALUE.
KeyAssociator getKeyAssociator()
KeyPartitioningStrategy getKeyPartitioningStrategy()
PartitionAssignmentStrategy getPartitionAssignmentStrategy()
Member getKeyOwner(Object oKey)
oKey - a key in its Object formMember getPartitionOwner(int nPartition)
nPartition - a partition IDIllegalArgumentException - if the partition number is negative or greater than the partition count for this partitioned serviceint getOwnershipVersion(int nPartition)
nPartition - a partition IDIllegalArgumentException - if the partition number is negative or greater than the partition count for this partitioned serviceMember getBackupOwner(int nPartition, int nBackup)
nPartition - a partition IDnBackup - the backup number (one-based)IllegalArgumentException - if the partition number is negative or greater than the partition count or if the backup number is non-positive or greater than the backup count for this partitioned servicePartitionSet getOwnedPartitions(Member member)
Note: the returned PartitionSet represents a "snapshot" of the ownership information at a time of the call and may change at any moment.
member - the cluster MemberSet<Member> getOwnershipEnabledMembers()
Member getOwnershipSenior()
void addPartitionListener(PartitionListener listener)
listener - the listener to addvoid removePartitionListener(PartitionListener listener)
listener - the listener to remove