ea
Class RemoteEntityConnectionEA

java.lang.Object
  extended byea.RemoteEntityConnectionEA

public class RemoteEntityConnectionEA
extends java.lang.Object

The class responsible for starting the RMI Registry as well as handling interaction with the registry.

Author:
bent

Constructor Summary
RemoteEntityConnectionEA(int port)
          Starts a new RMI registry at the given port.
 
Method Summary
 ElectionServer bindElectionServer(ElectionProperties ep, PublicKey pk, KeyShare[] ks)
          Binds the ElectionServer to the registry.
 BulletinBoard getBulletinBoard()
          Returns a stub to the remote object BulletinBoard
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteEntityConnectionEA

public RemoteEntityConnectionEA(int port)
                         throws java.rmi.RemoteException
Starts a new RMI registry at the given port.

Parameters:
port -
Throws:
java.rmi.RemoteException
Method Detail

getBulletinBoard

public BulletinBoard getBulletinBoard()
                               throws java.rmi.AccessException,
                                      java.rmi.RemoteException,
                                      java.rmi.NotBoundException
Returns a stub to the remote object BulletinBoard

Returns:
The stub of the BulletinBoard
Throws:
java.rmi.AccessException
java.rmi.RemoteException
java.rmi.NotBoundException

bindElectionServer

public ElectionServer bindElectionServer(ElectionProperties ep,
                                         PublicKey pk,
                                         KeyShare[] ks)
                                  throws java.rmi.RemoteException
Binds the ElectionServer to the registry.

Parameters:
ep - The parameters for the election.
pk - The public key for the election.
ks - The array of KeyShares for the decryption servers.
Returns:
The stub of the ElectionServer
Throws:
java.rmi.RemoteException