org.codehaus.wadi.dindex
Interface PartitionManager

All Known Implementing Classes:
SimplePartitionManager

public interface PartitionManager

A PartitionManager is responsible for unambiguously renegotiating Partition ownership every time that there is a change in Cluster membership and exposing these Partitions to the rest of the program, whether local or Remote. A lot of work needed here...

Author:
jules

Method Summary
 void evacuate()
           
 int getNumPartitions()
           
 PartitionFacade getPartition(int partition)
           
 PartitionFacade getPartition(Object key)
           
 PartitionKeys getPartitionKeys()
           
 void init(PartitionManagerConfig config)
           
 void localise()
           
 void regenerateMissingPartitions(Node[] living, Node[] leaving)
           
 void start()
           
 void stop()
           
 void update(Node node)
           
 

Method Detail

getPartition

public PartitionFacade getPartition(int partition)

getPartition

public PartitionFacade getPartition(Object key)

getPartitionKeys

public PartitionKeys getPartitionKeys()

getNumPartitions

public int getNumPartitions()

init

public void init(PartitionManagerConfig config)

start

public void start()
           throws Exception
Throws:
Exception

evacuate

public void evacuate()
              throws Exception
Throws:
Exception

stop

public void stop()
          throws Exception
Throws:
Exception

update

public void update(Node node)

regenerateMissingPartitions

public void regenerateMissingPartitions(Node[] living,
                                        Node[] leaving)

localise

public void localise()


Copyright © 2004-2006 Core Developers Network Ltd.. All Rights Reserved.