|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvoter.RemoteEntityConnectionC
The class responsible for interacting with the RMI Registry and returning stubs for the remote objects for use in the application.
Constructor Summary | |
RemoteEntityConnectionC(java.lang.String host,
int port)
Creates a connection to the RMI Registry at the given host and port |
Method Summary | |
BulletinBoard |
getBulletinBoard()
Returns the stub for the remote object BulletinBoard |
ElectionServer |
getElectionServer()
Returns the stub for the remote object ElectionServer |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RemoteEntityConnectionC(java.lang.String host, int port) throws java.rmi.RemoteException
host
- port
-
java.rmi.RemoteException
- If the RMI Registry can not be contacted.Method Detail |
public ElectionServer getElectionServer() throws java.rmi.AccessException, java.rmi.RemoteException, java.rmi.NotBoundException
java.rmi.AccessException
- If access is denied
java.rmi.RemoteException
java.rmi.NotBoundException
- If the object was not bound to the registry.public BulletinBoard getBulletinBoard() throws java.rmi.AccessException, java.rmi.RemoteException, java.rmi.NotBoundException
java.rmi.AccessException
- If access is denied
java.rmi.RemoteException
java.rmi.NotBoundException
- If the object was not bound to the registry.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |