Class InformationCenter
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--InformationCenter
- All Implemented Interfaces:
- InformationCenterInterface, java.rmi.Remote, java.io.Serializable
- public class InformationCenter
- extends java.rmi.server.UnicastRemoteObject
- implements InformationCenterInterface
The InformaionCenter which stores information about existing MeetingPlaces.
- See Also:
- Serialized Form
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone,
exportObject,
exportObject,
exportObject,
unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost,
getLog,
setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals,
getRef,
hashCode,
toString,
toStub |
Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
InformationCenter
public InformationCenter()
throws java.rmi.RemoteException
- Constructor of an new InformationCenter.
registerMP
public boolean registerMP(MeetingPlaceInterface mpi)
- Register a meeting place.
- Specified by:
- registerMP in interface InformationCenterInterface
- Parameters:
mp
- the MeetingPlace.
unregisterMP
public boolean unregisterMP(MeetingPlaceInterface mpi)
- Unregister a meeting place.
- Specified by:
- unregisterMP in interface InformationCenterInterface
- Parameters:
mp
- the meeting place.
listMP
public java.util.Vector listMP()
- Gives a list of existing meeting places.
- Specified by:
- listMP in interface InformationCenterInterface
- Returns:
- the MeetingPlace Vector.
main
public static final void main(java.lang.String[] argv)
- Main, creates a new InformationCenter.