|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectbootstrapP.MessageServersDatabase
public class MessageServersDatabase
A database containing all the Message servers managed by this BS and part of this Gossip system.
| Field Summary | |
|---|---|
private static java.util.List<ManagedMessageServer> |
vector
|
| Constructor Summary | |
|---|---|
MessageServersDatabase()
|
|
| Method Summary | |
|---|---|
static void |
addMessageServer(java.net.InetAddress ip,
int RMIPort,
int UDPPort,
java.lang.String pw)
Adds a Message Server to the list of managed servers. |
static java.util.List<ManagedMessageServer> |
getAllMS()
|
static ManagedMessageServer |
getMS(java.net.InetAddress ip,
int UDPPort)
Returns a MS with the IP address and UDP port passed by arguments from the Managed message servers list. |
static ManagedMessageServer |
getMS(int id)
Returns a MS from the Managed message servers list. |
static int |
getMS(ManagedMessageServer managerMS)
Searches the list for a specified MS and returns its id. |
static java.util.Iterator<ManagedMessageServer> |
getMSIterator()
|
static int |
getMSNumber()
|
static boolean |
removeMS(int id)
Removes a message server from the managed message servers list. |
static void |
reorder()
Reorders the Message Server by their load. |
static void |
restoreData(java.util.List<ManagedMessageServer> mmss)
Restores the list replacing it with the one given as arguments. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static java.util.List<ManagedMessageServer> vector
| Constructor Detail |
|---|
public MessageServersDatabase()
| Method Detail |
|---|
public static void addMessageServer(java.net.InetAddress ip,
int RMIPort,
int UDPPort,
java.lang.String pw)
throws java.rmi.RemoteException
ip - the MS IP address.RMIPort - the MS RMI port.UDPPort - the MS UDP port.pw - the MS password.
java.rmi.RemoteException - if the message server could not be reached.public static void reorder()
public static ManagedMessageServer getMS(int id)
id - the MS id
public static ManagedMessageServer getMS(java.net.InetAddress ip,
int UDPPort)
ip - the MS ip addressUDPPort - the MS UDP port
public static boolean removeMS(int id)
id - the ms id.
public static int getMSNumber()
public static java.util.List<ManagedMessageServer> getAllMS()
public static int getMS(ManagedMessageServer managerMS)
managerMS - the ms to search for.
public static void restoreData(java.util.List<ManagedMessageServer> mmss)
mmss - the message servers list.public static java.util.Iterator<ManagedMessageServer> getMSIterator()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||