|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectno.ubicollab.osgi.ClientList
public class ClientList
The Class ClientList
is used to represent all clients which
have registered with the Service Discovery Manager.
The class provide the methods neccessary to handle Client
related tasks.
Constructor Summary | |
---|---|
ClientList()
A Constructor which creates an instance with a empty client list and a reset client counter. |
Method Summary | |
---|---|
boolean |
addServiceToQueue(int clientID,
Service s)
Adds a service to the client queue for the client identified by clientID. |
int |
createNewClient()
Creates a new client and returns the unique identifier for this client. |
void |
decreaseTimeToLive(int time)
Decrease the time to live for all clients. |
java.lang.String |
getServiceQueue(int clientID)
Gets the service queue for the given clientID in XML-format, and clears the queue at the same time. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClientList()
Method Detail |
---|
public int createNewClient()
public java.lang.String getServiceQueue(int clientID)
clientID
- the client ID
public boolean addServiceToQueue(int clientID, Service s)
clientID = 1
.
clientID
- the client ID, or -1 for all clientss
- the service to add
public void decreaseTimeToLive(int time)
time
- the time in millisecounds to decrease
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |