|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectno.ubicollab.osgi.PluginList
public class PluginList
The Class PluginList
is used to represent all service discovery plugins which
have registered with the Service Discovery Manager.
The class provide the methods neccessary to handle Plugin
related tasks.
Constructor Summary | |
---|---|
PluginList()
The Constructor. |
Method Summary | |
---|---|
boolean |
addClientRequest(ClientRequest clientRequest)
Adds a client request to the list of ClientRequest belonging
to this Plugin . |
int |
addNewPlugin(java.lang.String name)
Creates a new plugin and returns the unique identifier for this plugin. |
void |
decreaseTimeToLive(int time)
Decrease the time to live for all plugins. |
java.lang.String |
getClientRequest(int pluginID)
Gets a xml-string containing the client request list. |
java.lang.String |
getPluginList()
Returns a list containing all registered plugins in XML-format. |
java.lang.String |
getPluginName(int pluginID)
Method to get the name of a plugin based on the id. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PluginList()
Method Detail |
---|
public boolean addClientRequest(ClientRequest clientRequest)
ClientRequest
belonging
to this Plugin
.
clientRequest
- the client request to add
true
, if the ClientRequest
is
successfullt appended, false
otherwise.public java.lang.String getClientRequest(int pluginID)
The returned string is a well formed XML-document with a structure
as defined in ServiceDiscovery#getClientRequest
pluginID
- the plugin ID
String
with the client request list.ServiceDiscovery.getClientRequest(int)
public int addNewPlugin(java.lang.String name)
public java.lang.String getPluginList()
The list returned is a well-formed xml-document stored in a
String
, with the following structure:
<Pluginlist> <Plugin Name="String" Id="int" />
... more Plugin elements ...
</Pluginlist>
String
containing Plugin
objects.public java.lang.String getPluginName(int pluginID)
pluginID
- the plugin ID to search for
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 |