/*
 * Copyright 2016-2018 shardingsphere.io.
 * <p>
 * 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.
 * </p>
 */

package io.shardingsphere.jdbc.orchestration.internal;

import io.shardingsphere.core.orche.config.ProxyBasicRule;
import io.shardingsphere.core.rule.DataSourceParameter;
import io.shardingsphere.jdbc.orchestration.yaml.YamlOrchestrationConfiguration;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.HashMap;
import java.util.Map;

/**
 * Orchestration proxy configuration.
 *
 * @author panjuan
 */
@NoArgsConstructor
@Getter
@Setter
public final class OrchestrationProxyConfiguration {
    
    private Map<String, DataSourceParameter> dataSources = new HashMap<>();
    
    private ProxyBasicRule proxyBasicRule;
    
    private YamlOrchestrationConfiguration orchestration;
    
    public OrchestrationProxyConfiguration(final Map<String, DataSourceParameter> dataSources, final ProxyBasicRule proxyBasicRule) {
        this.dataSources = dataSources;
        this.proxyBasicRule = proxyBasicRule;
    }
}

@@ -788,89 +788,8 @@
 er;%0A
-import io.shardingsphere.jdbc.orchestration.yaml.YamlOrchestrationConfiguration;%0A
 impo
@@ -820,18 +820,24 @@
  lombok.
-No
+Required
 ArgsCons
@@ -849,56 +849,8 @@
 or;%0A
-import lombok.Setter;%0A%0Aimport java.util.HashMap;
 %0Aimp
@@ -942,10 +942,16 @@
 */%0A@
-No
+Required
 Args
@@ -974,16 +974,8 @@
 ter%0A
-@Setter%0A
 publ
@@ -1040,16 +1040,22 @@
 private 
+final 
 Map%3CStri
@@ -1094,26 +1094,8 @@
 rces
- = new HashMap%3C%3E()
 ;%0A  
@@ -1109,16 +1109,22 @@
 private 
+final 
 ProxyBas
@@ -1149,301 +1149,7 @@
 ule;
-%0A    %0A    private YamlOrchestrationConfiguration orchestration;%0A    %0A    public OrchestrationProxyConfiguration(final Map%3CString, DataSourceParameter%3E dataSources, final ProxyBasicRule proxyBasicRule) %7B%0A        this.dataSources = dataSources;%0A        this.proxyBasicRule = proxyBasicRule;%0A    %7D
 %0A%7D%0A

delete YamlOrchestrationConfiguration