|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
public interface Configuration
AR System Service: Inspect and alter the configuration of the AstroRuntime. Allows the setting of key-value pairs, which are automatically persisted between executions. As well as altering configuration settings, this is also useful for storing bits of state that should persist between script invocations (e.g. preferences, window positions and sizes), plus configuration information (e.g. username, service endpoints)
| Method Summary | |
|---|---|
String |
getKey(String key)
get the value of a key. |
Map |
list()
list the contents of the store. |
String[] |
listKeys()
list the keys present in the store. |
void |
removeKey(String string)
remove a previously defined key. |
void |
reset()
Reset the configuration back to factory settings. |
boolean |
setKey(String key,
String value)
Set the value of a new or existing key. |
| Method Detail |
|---|
boolean setKey(String key,
String value)
key - name of keyvalue - new value of key
String getKey(String key)
key - the name of the key
String[] listKeys()
throws ACRException
ACRException - in unlikely case of the backing store being unreadable.
Map list()
throws ACRException
List all configuration keys (python) # connect to the AR from xmlrpc import Server from os.path import expanduser ar = Server(file(expanduser('~/.astrogrid-desktop')).next().strip() +'xmlrpc') for (i, j) in ar.system.configuration.list().iteritems(): print i,
:", j
performance.showProgressDialogueAfter : 5 org.astrogrid.registry.query.endpoint : http://registry.astrogrid.org/astrogrid-registry/services/RegistryQueryv1_0 votech.jackdaw.endpoint : http://thor.roe.ac.uk/jackdaw/like cds.vizier.endpoint : http://cdsws.u-strasbg.fr/axis/services/VizieR votech.vomon.endpoint : http://vomon.roe.ac.uk/status.xml system.rmi.endScanPort : 2099 system.webserver.endScanPort : 8800 last.upgraded.to : unreleased network.proxyPort : 80 ...
ACRException - in unlikely case of the backing store being unreadablevoid removeKey(String string)
string -
void reset()
throws ServiceException
ServiceException
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||