sg.edu.nus.peer.event
Class SPLoadBalance

java.lang.Object
  extended by sg.edu.nus.peer.event.SPLoadBalance

public class SPLoadBalance
extends java.lang.Object

Used for doing local load balancing between adjacent nodes

Version:
1.0 2006-2-22
Author:
Vu Quang Hieu, (Modified by) Xu Linhao

Constructor Summary
SPLoadBalance(ServerPeer serverpeer, TreeNode treeNode)
          Constructor
 
Method Summary
 void balanceLoad()
          Balance load between adjacent nodes
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SPLoadBalance

public SPLoadBalance(ServerPeer serverpeer,
                     TreeNode treeNode)
Constructor

Parameters:
serverpeer - the handler of ServerPeer
treeNode -
Method Detail

balanceLoad

public void balanceLoad()
                 throws EventHandleException
Balance load between adjacent nodes

Throws:
EventHandleException