GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing docs.voltdb.com — @GetYamlConfiguration Using VoltDB@GetYamlConfiguration@GetYamlConfiguration — Returns current configuration settings for one or more properties Synopsis@GetYamlConfiguration String property-list DescriptionThe @GetYamlConfiguration system procedure returns the current values for one or more configuration properties as a
text string in YAML format. You specify the properties in dot notation, separating multiple properties on individual lines.
For example, the following input argument would return the current values for
deployment.cluster.sitesperhost deployment.cluster.kfactor deployment.snapshot In the case of complex properties — those where the value is an array or sequence of subproperties, like
---
deployment:
cluster:
sitesperhost: 8
kfactor: 0
snapshot:
frequency: "24h"
retain: 2
prefix: "AUTOSNAP"
enabled: falseSpecifying an empty string or the string "null" as the input argument returns all of the configuration properties. Return ValuesReturns a string containing the YAML representation of the property or properties requested. ExamplesThe following program example uses @GetYamlConfiguration to retrieve all import and export configuration settings. try {
VoltTable[] results = client.callProcedureSync("@GetYamlConfiguration",
"deployment.import\ndeployment.export").getResults();
String yamloutput = results[0].fetchRow(0).getString(0));
}
catch (Exception e) {
e.printStackTrace();
}
For interactive use, the voltadmin get command performs the same function as @GetYamlConfiguration, except you separate multiple property names with spaces instead of line breaks. For example, the following is the interactive equivalent of the preceding program example: $ voltadmin get deployment.import deployment.export |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |