GigaSpaces XAP 7.0 API

org.openspaces.admin.space
Interface SpacePartition

All Superinterfaces:
Iterable<SpaceInstance>

public interface SpacePartition
extends Iterable<SpaceInstance>

A Space partition mainly make sense with partitioned topologies and holds all the SpaceInstances that form the partition.

Author:
kimchy

Method Summary
 SpaceInstance getBackup()
          Returns the (first) backup space instance, null if currently there is no backup.
 SpaceInstance[] getInstances()
          Returns all the space instances that form the partition.
 int getPartitiondId()
          Returns the partition id (starting from 0).
 SpaceInstance getPrimary()
          Returns the primary space instance, null if currently there is no primary.
 Space getSpace()
          Returns the Space this Space Partition is part of.
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

getPartitiondId

int getPartitiondId()
Returns the partition id (starting from 0). Note, SpaceInstance.getInstanceId() starts from 1.


getInstances

SpaceInstance[] getInstances()
Returns all the space instances that form the partition.


getSpace

Space getSpace()
Returns the Space this Space Partition is part of.


getPrimary

SpaceInstance getPrimary()
Returns the primary space instance, null if currently there is no primary.


getBackup

SpaceInstance getBackup()
Returns the (first) backup space instance, null if currently there is no backup.


GigaSpaces XAP 7.0 API

Copyright © GigaSpaces.