Package org.openspaces.admin.pu
Interface ProcessingUnitPartition
- All Known Subinterfaces:
InternalProcessingUnitPartition
- All Known Implementing Classes:
DefaultProcessingUnitPartition
public interface ProcessingUnitPartition
A Space partition mainly make sense with partitioned topologies and holds all the
ProcessingUnitInstances that form the partition.- Author:
- kimchy
-
Method Summary
Modifier and TypeMethodDescriptionIf the processing unit has an embedded space, will return the processing unit instance that holds a the backup space instance.Returns the processing unit instances associated with this partition.intReturns the partition id (starting from 0).If the processing unit has an embedded space, will return the processing unit instance that holds a the primary space instance.Returns the processing unit this partition is part of.
-
Method Details
-
getPartitionId
int getPartitionId()Returns the partition id (starting from 0). Note,ProcessingUnitInstance.getInstanceId()starts from 1. -
getInstances
ProcessingUnitInstance[] getInstances()Returns the processing unit instances associated with this partition. -
getProcessingUnit
ProcessingUnit getProcessingUnit()Returns the processing unit this partition is part of. -
getPrimary
ProcessingUnitInstance getPrimary()If the processing unit has an embedded space, will return the processing unit instance that holds a the primary space instance. -
getBackup
ProcessingUnitInstance getBackup()If the processing unit has an embedded space, will return the processing unit instance that holds a the backup space instance.
-