/*
* Copyright 2015-2016 OpenCB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.opencb.opencga.storage.core.config;
import org.opencb.commons.datastore.core.ObjectMap;
/**
* Created by imedina on 01/05/15.
*/
public class StorageEngineConfiguration {
private String id;
// private String conf;
/*
* options parameter defines database-specific parameters
*/
// private Map<String, String> options;
@Deprecated
private ObjectMap options;
private StorageEtlConfiguration alignment;
private StorageEtlConfiguration variant;
public StorageEngineConfiguration() {
}
public StorageEngineConfiguration(String id, StorageEtlConfiguration alignment, StorageEtlConfiguration variant,
ObjectMap options) {
this.id = id;
this.alignment = alignment;
this.variant = variant;
// this.conf = conf;
this.options = options;
}
@Override
public String toString() {
final StringBuilder sb = new StringBuilder("StorageEngineConfiguration{");
sb.append("id='").append(id).append('\'');
sb.append(", options=").append(options);
sb.append(", alignment=").append(alignment);
sb.append(", variant=").append(variant);
sb.append('}');
return sb.toString();
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
// public String getConf() {
// return conf;
// }
//
// public void setConf(String conf) {
// this.conf = conf;
// }
public ObjectMap getOptions() {
return options;
}
public void setOptions(ObjectMap options) {
this.options = options;
}
public StorageEtlConfiguration getAlignment() {
return alignment;
}
public void setAlignment(StorageEtlConfiguration alignment) {
this.alignment = alignment;
}
public StorageEtlConfiguration getVariant() {
return variant;
}
public void setVariant(StorageEtlConfiguration variant) {
this.variant = variant;
}
}