|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectno.ubicollab.osgi.Plugin
public class Plugin
The Class Plugin
is used to represent a service discovery plugin which
have registered with the Service Discovery Manager.
Constructor Summary | |
---|---|
Plugin()
This constructor creates a new plugin object with no values set. |
|
Plugin(java.lang.String name,
int id)
This Constructor is used to create a new plugin and give it a name and id. |
Method Summary | |
---|---|
boolean |
addClientRequest(ClientRequest clientRequest)
Adds a client request to the list of ClientRequest belonging
to this Plugin . |
java.lang.String |
getClientRequestList()
Gets a xml-string containing the client request list. |
int |
getId()
Gets the unique identifier for the plugin. |
java.lang.String |
getName()
Gets the plugins name. |
int |
getTimeToLive()
Gets the remaining time to live for the plugin. |
java.lang.String |
getXML()
Gets the XML representation for this plugin. |
void |
resetTimeToLive()
Reset the time to live to a full lifetime, as defined by GlobalSettings . |
void |
setId(int id)
Sets the unique identifier for the plugin. |
void |
setName(java.lang.String name)
Sets the name of the plugin. |
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 Plugin(java.lang.String name, int id)
name
- the plugin nameid
- the unique idpublic Plugin()
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 getClientRequestList()
The returned string is a well formatted XML-string with the following structure:
<?xml version='1.0'?> <ClientRequestList> <ClientRequest ClientID="int" Name="String" Type="String" Location="String" Owner="String" Description="String"/> ... more ClientRequest items ...
</ClientRequestList>
String
with the client request list.public int getId()
public void setId(int id)
id
- the unique idpublic java.lang.String getName()
public void setName(java.lang.String name)
name
- the name of the pluginpublic void setTimeToLive(int timeToLive)
timeToLive
- the time to livepublic int getTimeToLive()
public void resetTimeToLive()
GlobalSettings
.
public java.lang.String getXML()
The format for the xml-string is as follows
<Plugin Name="String" Id="int" />
Plugin
in a
string
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |