com.continuent.tungsten.replicator.storage.parallel
Interface PartitionMetadata

All Known Implementing Classes:
ParallelQueueStore.QueueMetadataImpl

public interface PartitionMetadata

Denotes information describing a partition. This information is available to partitioners so that they can assign based on current state of partition themselves (i.e. parallel queues). This allows support for load balancing and other context sensitive decisions.

Version:
1.0
Author:
Robert Hodges

Method Summary
 long getCurrentSize()
          Returns the number of events currently in the partition.
 int getPartitionNumber()
          Returns the number of the partition to which the metadata applies.
 

Method Detail

getPartitionNumber

int getPartitionNumber()
Returns the number of the partition to which the metadata applies.


getCurrentSize

long getCurrentSize()
Returns the number of events currently in the partition. The implementation must be non-blocking and thread-safe. This number may be an estimate.