/** * Copyright 2014 Flipkart Internet Pvt. Ltd. * * 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 com.flipkart.foxtrot.server.config; import com.fasterxml.jackson.annotation.JsonProperty; import com.flipkart.foxtrot.core.common.DataDeletionManagerConfig; import com.flipkart.foxtrot.core.datastore.impl.hbase.HbaseConfig; import com.flipkart.foxtrot.core.querystore.impl.ClusterConfig; import com.flipkart.foxtrot.core.querystore.impl.ElasticsearchConfig; import com.yammer.dropwizard.config.Configuration; import net.sourceforge.cobertura.CoverageIgnore; import javax.validation.Valid; /** * User: Santanu Sinha (santanu.sinha@flipkart.com) * Date: 15/03/14 * Time: 9:26 PM */ @CoverageIgnore public class FoxtrotServerConfiguration extends Configuration { @Valid private final HbaseConfig hbase; @Valid private final ElasticsearchConfig elasticsearch; @Valid private final ClusterConfig cluster; @Valid @JsonProperty("deletionconfig") private final DataDeletionManagerConfig deletionManagerConfig; public FoxtrotServerConfiguration() { this.hbase = new HbaseConfig(); this.elasticsearch = new ElasticsearchConfig(); this.cluster = new ClusterConfig(); this.deletionManagerConfig = new DataDeletionManagerConfig(); } public HbaseConfig getHbase() { return hbase; } public ElasticsearchConfig getElasticsearch() { return elasticsearch; } public ClusterConfig getCluster() { return cluster; } public DataDeletionManagerConfig getTableDataManagerConfig() { return deletionManagerConfig; } }