{"id":1912,"date":"2012-12-13T19:18:11","date_gmt":"2012-12-14T00:18:11","guid":{"rendered":"http:\/\/hstore.cs.brown.edu\/?page_id=1912"},"modified":"2013-01-05T15:48:16","modified_gmt":"2013-01-05T20:48:16","slug":"setconfiguration","status":"publish","type":"page","link":"https:\/\/hstore.cs.brown.edu\/documentation\/system-procedures\/setconfiguration\/","title":{"rendered":"@SetConfiguration"},"content":{"rendered":"

\u00ab<\/B> @GetConfiguration<\/a><\/div>
@LoadMultipartitionTable<\/a> \u00bb<\/B><\/div>
<\/div><\/p>\n

@SetConfiguration<\/h2>\n

Change the value of a list of HStoreConf parameters in the entire H-Store cluster. The changes will be sent to each HStoreSite and then validate that the current value is the same at all of them.<\/p>\n

Please note that this operation is primarily used for benchmarking experiments and is not guaranteed to be consistent. That is, if the system procedure transaction fails at one HStoreSite, the HStoreConf changes made will not be rolled back at each site. Furthermore, the changes made by this procedure are not durable. When the system is restarted, the HStoreConf parameters will revert back to their default values and the values defined in the H-Store configuration file.<\/p>\n

Not all parameters support being changed dynamically at run time, as this could put the database in an invalid state. Any class that implements the internal Configurable<\/a> interface will be changed by this system procedure but not all of their parameters will updated.<\/p>\n

Input Parameters<\/h3>\n\n\n\n\n
Name<\/th>\nType<\/th>\nDescription<\/th>\n<\/tr>\n
CONF_NAMES<\/td>\nString[]<\/td>\nThe list of the HStoreConf parameter to modify at each node in the cluster.<\/td>\n<\/tr>\n
CONF_VALUES<\/td>\nString[]<\/td>\nThe list of the HStoreConf parameter values to assign to the confNames<\/tt>.<\/td>\n<\/tr>\n<\/table>\n

Return Values<\/h3>\n\n\n\n\n\n
Name<\/th>\nType<\/th>\nDescription<\/th>\n<\/tr>\n
CONF_NAME<\/td>\nString<\/td>\nThe name of the HStoreConf parameter in this record.<\/td>\n<\/tr>\n
CONF_VALUE<\/td>\nString<\/td>\nA string representation of the value for this HStoreConf parameter.<\/td>\n<\/tr>\n
UPDATED<\/td>\nTimestamp<\/td>\nThe timestamp of when this HStoreConf parameter was updated.<\/td>\n<\/tr>\n<\/table>\n

Java Example<\/h3>\n\n
Client client =<\/span> ClientFactory.createClient<\/span>(<\/span>)<\/span>;<\/span>\nclient =<\/span> client.createConnection<\/span>(<\/span>hostname, port)<\/span>;<\/span>\nString<\/span> confNames[<\/span>]<\/span> =<\/span> {<\/span> "site.exec_validate_work"<\/span>, "site.specexec_enable"<\/span> }<\/span>;<\/span>\nString<\/span> confValues[<\/span>]<\/span> =<\/span> {<\/span> "true"<\/span>, "true"<\/span> }<\/span>;<\/span>\nClientResponse cresponse =<\/span> client.callProcedure<\/span>(<\/span>"@SetConfiguration"<\/span>, confNames, confValues)<\/span>;<\/span><\/pre><\/td><\/tr><\/table><\/div>\n\n

Command-Line Example<\/h3>\n

Not supported at this time<\/em><\/p>\n

\u00ab<\/B> @GetConfiguration<\/a><\/div>
@LoadMultipartitionTable<\/a> \u00bb<\/B><\/div>
<\/div><\/p>\n","protected":false},"excerpt":{"rendered":"

@SetConfiguration Change the value of a list of HStoreConf parameters in the entire H-Store cluster. The changes will be sent to each HStoreSite and then validate that the current value is the same at all of them. Please note that this operation is primarily used for benchmarking experiments and is not guaranteed to be consistent. […]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":1891,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/hstore.cs.brown.edu\/wp-json\/wp\/v2\/pages\/1912"}],"collection":[{"href":"https:\/\/hstore.cs.brown.edu\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/hstore.cs.brown.edu\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/hstore.cs.brown.edu\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hstore.cs.brown.edu\/wp-json\/wp\/v2\/comments?post=1912"}],"version-history":[{"count":9,"href":"https:\/\/hstore.cs.brown.edu\/wp-json\/wp\/v2\/pages\/1912\/revisions"}],"predecessor-version":[{"id":2043,"href":"https:\/\/hstore.cs.brown.edu\/wp-json\/wp\/v2\/pages\/1912\/revisions\/2043"}],"up":[{"embeddable":true,"href":"https:\/\/hstore.cs.brown.edu\/wp-json\/wp\/v2\/pages\/1891"}],"wp:attachment":[{"href":"https:\/\/hstore.cs.brown.edu\/wp-json\/wp\/v2\/media?parent=1912"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}