|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DomainManager
An interface for UbiCollab Service Domain Manager. Provides management functionality for services/bundles through web service calls.
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()
Return a list of the services which have been installed on this UbiNode through the Service Domain Manager. |
java.lang.String |
installService(java.lang.String url,
java.lang.String friendlyName)
Installs a service. |
boolean |
removeService(java.lang.Long bundleID)
Removes the service proxy which is provided through the bundle represented by 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. |
Method Detail |
---|
java.lang.String getServiceList()
The xml-structure used to represent the returned service list is:
<?xml version='1.0'?> <Servicelist> <Service ID="int" ServiceUri="String" Name="String" Space="String" SpaceID="int" State="String" DescriptionUri="String" Type="String" Description="String"/>
... more services ...
</Servicelist>
String
with a XML-document
which contains all installed services.java.lang.String getInfoAboutService(java.lang.Long bundleID)
The xml-structure used to represent the returned service is:
<?xml version='1.0'?> <Service> <Service ID="int" ServiceUri="String" Name="String" Space="String" SpaceID="int" State="String" DescriptionUri="String" Type="String" Description="String"/>
</Service>
bundleID
- the bundle ID the bundle is registered with.
String
containg information about the service,
or "INVALID BUNDLE ID" if invalid bundle id is provided.java.lang.String installService(java.lang.String url, java.lang.String friendlyName)
friendlyName
- the friendly name of the serviceurl
- The Url to the service bundle.
boolean checkIfServiceExist(java.lang.String uri)
uri
- the service uri
boolean removeService(java.lang.Long bundleID)
bundleID
- The URI for the service which is to be removed
true if the service exist and are successfully removed,
false othervise
boolean updateServiceProperties(long bundleID, java.lang.String friendlyName, java.lang.String space, int spaceID, java.lang.String type, java.lang.String description)
friendlyName
- The service friendly namedescription
- the textual description of the servicespace
- The space this service will be active inbundleID
- the bundle ID
true if URI is found and update is OK,
false othervise
boolean startService(java.lang.Long bundleID)
bundleID
- the bundle ID for the bundle providing the service
true if the service is sucessfully started,
false othervise
boolean stopService(java.lang.Long bundleID)
bundleID
- the bundle ID for the bundle providing the service
true if the service is sucessfully stopped,
false othervise
java.lang.String getLogItems(int logLevel, int numItems)
The xml-structure used to represent the returned log is:
<?xml version='1.0'?> <Log> <Logitem Date="dd.mm.yyyy" Time="hh:mm:ss" Level="String" Message="String"/>
... more log items ...
</Log>
logLevel
- The log level to include in the report. Valid arguments are:
'DEBUG', 'INFO', 'WARNING', 'ERROR', 'FATAL' and 'ALL' for all types.numItems
- The number of log items to include in the report
String
containg the resulting XMLboolean setActiveSpace(int SpaceID, boolean stopOtherServices)
SpaceID
- the ID for the Space to activatestopOtherServices
- true to stop the other service proxies, false othervise
true if all proxies adhering to the space ID is started,
false othervise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |