fr.inria.peerunit.btree
Class BootstrapperImpl

java.lang.Object
  extended by fr.inria.peerunit.btree.BootstrapperImpl
All Implemented Interfaces:
Bootstrapper, java.io.Serializable, java.lang.Runnable, java.rmi.Remote

public class BootstrapperImpl
extends java.lang.Object
implements Bootstrapper, java.io.Serializable, java.lang.Runnable

Since:
1.0
Version:
1.0
Author:
Eduardo Almeida, Veronique PELLEAU
See Also:
Serialized Form

Constructor Summary
BootstrapperImpl(TesterUtil tu)
           
 
Method Summary
 int getRegistered()
          Returns the current number of registered nodes
 void quit()
          Makes the boostrapper leave the system.
 int register(Tester t)
          Registers a tester to this Bootstrapper.
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BootstrapperImpl

public BootstrapperImpl(TesterUtil tu)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

register

public int register(Tester t)
             throws java.rmi.RemoteException
Description copied from interface: Bootstrapper
Registers a tester to this Bootstrapper.

Specified by:
register in interface Bootstrapper
Parameters:
t - The Tester to be registered.
Returns:
the generated ID for the added node, or Integer.MAX_VALUE if all nodes have already been registered
Throws:
java.rmi.RemoteException - When a communication error occurs.

getRegistered

public int getRegistered()
Returns the current number of registered nodes

Returns:
the current number of registered nodes

quit

public void quit()
          throws java.rmi.RemoteException
Description copied from interface: Bootstrapper
Makes the boostrapper leave the system.

Specified by:
quit in interface Bootstrapper
Throws:
java.rmi.RemoteException


Copyright © 2010. All Rights Reserved.