ds
Class RemoteEntityConnectionDS

java.lang.Object
  extended byds.RemoteEntityConnectionDS

public class RemoteEntityConnectionDS
extends java.lang.Object

The class used for retrieving the stubs for the remote objects used by the decryption servers.

Author:
bent

Constructor Summary
RemoteEntityConnectionDS(java.lang.String host, int port)
          Connects to the RMI registry at the given host and port.
 
Method Summary
 BulletinBoard getBulletinBoard()
          Gets the BulletinBoard stub
 ElectionServer getElectionServer()
          Gets the ElectionServer stub
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteEntityConnectionDS

public RemoteEntityConnectionDS(java.lang.String host,
                                int port)
                         throws java.rmi.RemoteException
Connects to the RMI registry at the given host and port.

Parameters:
host -
port -
Throws:
java.rmi.RemoteException - If the RMI registry can't be found
Method Detail

getElectionServer

public ElectionServer getElectionServer()
                                 throws java.rmi.AccessException,
                                        java.rmi.RemoteException,
                                        java.rmi.NotBoundException
Gets the ElectionServer stub

Returns:
The stub for the remote object ElectionServer
Throws:
java.rmi.AccessException - If access was denied
java.rmi.RemoteException
java.rmi.NotBoundException - If the object can't be found at the registry

getBulletinBoard

public BulletinBoard getBulletinBoard()
                               throws java.rmi.AccessException,
                                      java.rmi.RemoteException,
                                      java.rmi.NotBoundException
Gets the BulletinBoard stub

Returns:
The stub for the remote object BulletinBoard
Throws:
java.rmi.AccessException - If access was denied
java.rmi.RemoteException
java.rmi.NotBoundException - If the object can't be found at the registry