|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectno.ubicollab.osgi.Client
public class Client
The Class Client
is used to represent a client which
are registered with the Service Discovery Manager.
Constructor Summary | |
---|---|
Client(int id)
The Constructor for the Client class. |
Method Summary | |
---|---|
boolean |
addService(Service s)
Adds a service to the clients service queue. |
int |
getId()
Gets the unique id. |
java.lang.String |
getServiceList()
Returns the service list in XML-fromat and clear the list at the same time. |
int |
getTimeToLive()
Gets the time to live remaining. |
void |
resetTimeToLive()
Reset the time to live to a full lifetime, as defined by GlobalSettings . |
void |
setId(int id)
Sets the unique id. |
void |
setTimeToLive(int timeToLive)
Sets the time to live. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Client(int id)
id
- the unique id for identifying the clientMethod Detail |
---|
public boolean addService(Service s)
s
- the service to add
public java.lang.String getServiceList()
public void resetTimeToLive()
GlobalSettings
.
public int getId()
public void setId(int id)
id
- the idpublic int getTimeToLive()
public void setTimeToLive(int timeToLive)
timeToLive
- the time to live
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |