|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectno.ubicollab.osgi.DomainManagerImpl
public class DomainManagerImpl
The Class DomainManagerImpl
implements the DomainManager
interface and provides the neccessary functionality for service management on
UbiNodes. The public members of this class will be accessible through a SOAP/Web-
Service interface.
Constructor Summary | |
---|---|
DomainManagerImpl(org.osgi.framework.BundleContext bc)
This Constructor creates a new instance of DomainManagerImpl , and
reads the service list from file. |
Method Summary | |
---|---|
boolean |
checkIfServiceExist(java.lang.String uri)
Check if a given service exist. |
java.lang.String |
getInfoAboutService(java.lang.Long bundleID)
Gets all registered information about the specified service. |
java.lang.String |
getLogItems(int logLevel,
int numItems)
Read from the log and return selected log items in a XML-formatted string. |
java.lang.String |
getServiceList()
Searches for services installed on this UbiNode and returns handles to theese. |
java.lang.String |
installService(java.lang.String url,
java.lang.String friendlyName)
Installs a service. |
boolean |
removeService(java.lang.Long bundleID)
Removes the service provided by the bunde matching the provided bundleId. |
boolean |
setActiveSpace(int SpaceID,
boolean stopOtherServices)
Activates all services belonging to the space identified by the provided id. |
boolean |
startService(java.lang.Long bundleID)
Method to start a service installed on the UbiNode. |
boolean |
stopService(java.lang.Long bundleID)
Method to stop a service installed on the UbiNode |
boolean |
updateServiceProperties(long bundleID,
java.lang.String friendlyName,
java.lang.String space,
int spaceID,
java.lang.String type,
java.lang.String description)
Method to update the properties of the service identified by serviceUri. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DomainManagerImpl(org.osgi.framework.BundleContext bc)
DomainManagerImpl
, and
reads the service list from file.
bc
- the BundleContext
in which this bundle runs.Method Detail |
---|
public boolean removeService(java.lang.Long bundleID)
removeService
in interface DomainManager
bundleID
- the bundle ID of the service to remove
DomainManager.removeService(java.lang.Long)
public java.lang.String getServiceList()
The xml-structure used to represent the returned service is described in
DomainManager#getServiceList
.
getServiceList
in interface DomainManager
DomainManager.getServiceList()
public java.lang.String installService(java.lang.String url, java.lang.String friendlyName)
installService
in interface DomainManager
friendlyName
- the friendly name of the serviceurl
- The Url to the service bundle.
public boolean updateServiceProperties(long bundleID, java.lang.String friendlyName, java.lang.String space, int spaceID, java.lang.String type, java.lang.String description)
updateServiceProperties
in interface DomainManager
spaceID
- the space ID for the space the service is placed infriendlyName
- The service friendly nametype
- the type of servicedescription
- the service descriptionspace
- The space this service will be active inbundleID
- The ID for the bundle which hosts the requested service
DomainManager.updateServiceProperties(long, String, String, int, String, String)
public boolean startService(java.lang.Long bundleID)
startService
in interface DomainManager
bundleID
- the bundle ID
public boolean stopService(java.lang.Long bundleID)
stopService
in interface DomainManager
bundleID
- the bundle ID
public java.lang.String getLogItems(int logLevel, int numItems)
The xml-structure used to represent the returned service is described in
DomainManager#getLogItems
.
getLogItems
in interface DomainManager
logLevel
- The log level to include in the report.numItems
- The number of log items to include in the report
DomainManager.getLogItems(int, int)
,
DomainManager.getLogItems(int, int)
public java.lang.String getInfoAboutService(java.lang.Long bundleID)
The xml-structure used to represent the returned service is described in
DomainManager#getInfoAboutService
.
getInfoAboutService
in interface DomainManager
bundleID
- the bundle ID the bundle is registered with.
String
containg information about the service.DomainManager.getInfoAboutService(java.lang.Long)
public boolean checkIfServiceExist(java.lang.String uri)
checkIfServiceExist
in interface DomainManager
uri
- the service uri
public boolean setActiveSpace(int SpaceID, boolean stopOtherServices)
setActiveSpace
in interface DomainManager
SpaceID
- the ID for the Space to activatestopOtherServices
- true to stop the other service proxies, false othervise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |