Interface Space

All Superinterfaces:
Iterable<SpaceInstance>, StatisticsMonitor
All Known Subinterfaces:
InternalSpace
All Known Implementing Classes:
DefaultSpace

public interface Space extends Iterable<SpaceInstance>, StatisticsMonitor
A space is composed of several SpaceInstances the form a topology.

There are two main logical of topologies, one that has backups to each space instance, and one that is without backups. For example, a partitioned topology of 2 partitions, each with one backup will return 2 for getNumberOfInstances() and 1 for getNumberOfBackups(). A replicated topology of 4 will return 4 for getNumberOfInstances() and 0 for getNumberOfBackups().

A Space will be discovered once one of its SpaceInstance have been discovered. It will be removed once there are no SpaceInstances running.

Provides the ability to start a statistics monitor on all current SpaceInstances using StatisticsMonitor.startStatisticsMonitor(). Newly discovered space instances will automatically use the statistics monitor as well.

Author:
kimchy