getConfiguration()およびsetConfiguration()メソッドを使用して、レコード・ストア・インスタンス構成およびレコード・ストア・インスタンスの構成設定を取得します。
レコード・ストア・インスタンス構成を取得および設定するには:
ServiceAddress address = new ServiceAddress(host, port, contextPath); RecordStoreLocator locator = RecordStoreLocator.create(address, instanceName); RecordStore recordStore = locator.getService(); RecordStoreConfiguration config = recordStore.getConfiguration(false); config.setRecordCompressionEnabled(true); recordStore.setConfiguration(config);