pluginOptions.save(existingProps, getNamespace());
pluginOptions.save(existingProps, getNamespace());
pluginOptions.save(existingProps, getNamespace());
pluginOptions.save(existingProps, getNamespace());
pluginOptions.save(existingProps, getNamespace());
pluginOptions.save(existingProps, getNamespace());
@Override public void execute(OperationParams params) { Properties existingProps = getGeoWaveConfigProperties(params); if (parameters.size() < 2) { throw new ParameterException("Must specify <existing store> <new store> names"); } // This is the new store name. String newStore = parameters.get(1); String newStoreNamespace = DataStorePluginOptions.getStoreNamespace(newStore); // Make sure we're not already in the index. DataStorePluginOptions existPlugin = new DataStorePluginOptions(); if (existPlugin.load(existingProps, newStoreNamespace)) { throw new ParameterException("That store already exists: " + newStore); } // Save the options. newPluginOptions.save(existingProps, newStoreNamespace); // Make default? if (Boolean.TRUE.equals(makeDefault)) { existingProps.setProperty(DataStorePluginOptions.DEFAULT_PROPERTY_NAMESPACE, newStore); } // Write properties file ConfigOptions.writeProperties(getGeoWaveConfigFile(params), existingProps); }
pluginOptions.save(existingProps, getNamespace());
pluginOptions.save(existingProps, getNamespace());
dataStore.save(props, DataStorePluginOptions.getStoreNamespace("test")); final AddStoreCommand addStore = new AddStoreCommand(); addStore.setParameters("test");