|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.optimizationservices.oscommon.localinterface.OSRegistry
public class OSRegistry
The OSRegistry class is a local interface for storing Optimization Services
registry. Its design follows the Optimization Services Registry Language (OSRegistry).
All the data structures in this class are standards specified in the OSRegistry schema.
OSEntity,
OSProcess,
OSBenchmark| Field Summary | |
|---|---|
java.lang.String |
description
description holds the general description of the os registry. |
News |
news
news holds the news for the os registry. |
ServiceEntry[] |
service
service holds an array of registered services in the os registry. |
| Constructor Summary | |
|---|---|
OSRegistry()
Default constructor. |
|
| Method Summary | |
|---|---|
boolean |
addNews(NewsElement newsElement)
Add an OSRegistry news element. |
boolean |
addService(ServiceEntry service)
Add an OSRegistry service. |
boolean |
deleteService(java.lang.String serviceURI)
Delete an OSRegistry service. |
java.lang.String |
getDescription()
Get the OSRegistry description. |
NewsElement[] |
getNews()
Get the OSRegistry news. |
ServiceEntry |
getService(java.lang.String serviceURI)
Get an OSRegistry service. |
ServiceEntry[] |
getServices()
Get the OSRegistry services. |
static void |
main(java.lang.String[] args)
main for test purposes. |
OSRegistry |
readOSRegistry(java.lang.String osRegistry,
boolean isFile,
boolean validate)
read an OSRegistry instance and return and OSRegistry object. |
boolean |
setDescription(java.lang.String description)
Set the OSRegistry description. |
boolean |
setNews(NewsElement[] newsElements)
Set the OSRegistry news. |
boolean |
setServices(ServiceEntry[] services)
Set the OSRegistry services. |
java.lang.String |
writeOSRegistry()
write the OSRegistry to an osRegistry xml string. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.lang.String description
public News news
public ServiceEntry[] service
| Constructor Detail |
|---|
public OSRegistry()
| Method Detail |
|---|
public OSRegistry readOSRegistry(java.lang.String osRegistry,
boolean isFile,
boolean validate)
throws java.lang.Exception
osRegistry - holds the optimization registry in a string which format follows the
Optimization Services registry Language (OSRegistry) schema.isFile - holds whether the osRegistry string is a file name or a string that literally holds the osRegistry contents.validate - holds whether the reader should be validating against the schema or not.
java.lang.Exception - if there are errors in reading the string or setting the OSRegistry.
public java.lang.String writeOSRegistry()
throws java.lang.Exception
java.lang.Exception - if there are errors in writing the osRegistry string.public java.lang.String getDescription()
public boolean setDescription(java.lang.String description)
description - holds the OSRegistry description.
public NewsElement[] getNews()
NewsElementpublic boolean setNews(NewsElement[] newsElements)
NewsElementpublic boolean addNews(NewsElement newsElement)
NewsElementpublic ServiceEntry[] getServices()
ServiceEntrypublic ServiceEntry getService(java.lang.String serviceURI)
ServiceEntrypublic boolean setServices(ServiceEntry[] services)
ServiceEntrypublic boolean addService(ServiceEntry service)
ServiceEntrypublic boolean deleteService(java.lang.String serviceURI)
ServiceEntrypublic static void main(java.lang.String[] args)
argv - command line arguments.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||