|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectno.ubicollab.osgi.PluginServiceRegistryImpl
public class PluginServiceRegistryImpl
Constructor Summary | |
---|---|
PluginServiceRegistryImpl()
This Constructor creates Web-service proxies for Service Registry and Service Discovery Manager, and conects to Discovery Manager. |
Method Summary | |
---|---|
int |
connectToDiscoveryManager()
Connects to discovery manager and returns a subscriber id. |
java.util.ArrayList<ClientRequest> |
getClientRequests()
This method is used to query the Service Domain Manager for any new Client Requests. |
int |
getSdID()
Gets the service discovery ID (subscriber id). |
java.util.ArrayList<Service> |
getServiceList(java.lang.String name,
java.lang.String type,
java.lang.String location,
java.lang.String owner,
java.lang.String description)
Method to parse a provided String to a
java.io.InputStream object. |
boolean |
registerService(int searchRequestorID,
int protocolID,
java.lang.String descriptionURI,
java.lang.String serviceURI,
java.lang.String friendlyName,
java.lang.String type,
java.lang.String description,
java.lang.String owner,
java.lang.String location)
This method will register the provided service parameters with the Service Domain Manager. |
void |
setSdID(int sdID)
Sets the service discovery ID (subscriber id). |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PluginServiceRegistryImpl()
TimeKeeper
Thread is started.
Method Detail |
---|
public int connectToDiscoveryManager()
int
that is the subscriber id on the Service
Discovery Manager or -1 if unable to connect.
java.rmi.RemoteException
- the remote exception received from the Service
Discovery Managerpublic java.util.ArrayList<ClientRequest> getClientRequests()
ClientRequest
objects are returned.
ClientRequest
in a typed ArrayList
java.rmi.RemoteException
- the remote exception received from the host.public java.util.ArrayList<Service> getServiceList(java.lang.String name, java.lang.String type, java.lang.String location, java.lang.String owner, java.lang.String description) throws java.rmi.RemoteException
String
to a
java.io.InputStream
object.
xml
- the xml to parse
java.rmi.RemoteException
public boolean registerService(int searchRequestorID, int protocolID, java.lang.String descriptionURI, java.lang.String serviceURI, java.lang.String friendlyName, java.lang.String type, java.lang.String description, java.lang.String owner, java.lang.String location)
friendlyName
- The user-friendly name of the servicetype
- The service type (classification)descriptionURI
- URI for service description (e.g. the URL to a WSDL-file).owner
- The person/company/responsible for the service.description
- Tags (words or short sentences) describing the service.location
- Location where the service can be foundprotocolID
- The id for the service discovery protocol plugin.searchRequestorID
- the ID for the search request queue to add this service toserviceURI
- The URI to invoke the service
public int getSdID()
public void setSdID(int sdID)
the
- service discovery ID
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |