<commit_before>package com.ctrip.xpipe.redis.core.service;

import com.ctrip.xpipe.retry.RetryPolicyFactories;
import com.ctrip.xpipe.spring.RestTemplateFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.client.RestOperations;

/**
 * @author wenchao.meng
 *         <p>
 *         Jun 26, 2018
 */
public abstract class AbstractService {

    protected Logger logger = LoggerFactory.getLogger(getClass());

    protected static int DEFAULT_MAX_PER_ROUTE = Integer.parseInt(System.getProperty("max-per-route", "1000"));
    protected static int DEFAULT_MAX_TOTAL = Integer.parseInt(System.getProperty("max-per-route", "10000"));
    protected static int DEFAULT_RETRY_TIMES = Integer.parseInt(System.getProperty("retry-times", "1"));
    protected static int DEFAULT_CONNECT_TIMEOUT = Integer.parseInt(System.getProperty("connect-timeout", "1000"));
    public static int DEFAULT_SO_TIMEOUT = Integer.parseInt(System.getProperty("so-timeout", "6000"));

    public static final int FAST_CONNECT_TIMEOUT = Integer.parseInt(System.getProperty("fast-connect-timeout", "200"));
    public static final int FAST_SO_TIMEOUT = Integer.parseInt(System.getProperty("fast-so-timeout", "500"));

    public static int DEFAULT_RETRY_INTERVAL_MILLI = Integer
            .parseInt(System.getProperty("metaserver.retryIntervalMilli", "5"));

    private int retryTimes;
    private int retryIntervalMilli;
    protected RestOperations restTemplate;<commit_msg>console->metaserver connect timeout 1s -> 1.2s<commit_after>package com.ctrip.xpipe.redis.core.service;

import com.ctrip.xpipe.retry.RetryPolicyFactories;
import com.ctrip.xpipe.spring.RestTemplateFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.client.RestOperations;

/**
 * @author wenchao.meng
 *         <p>
 *         Jun 26, 2018
 */
public abstract class AbstractService {

    protected Logger logger = LoggerFactory.getLogger(getClass());

    protected static int DEFAULT_MAX_PER_ROUTE = Integer.parseInt(System.getProperty("max-per-route", "1000"));
    protected static int DEFAULT_MAX_TOTAL = Integer.parseInt(System.getProperty("max-per-route", "10000"));
    protected static int DEFAULT_RETRY_TIMES = Integer.parseInt(System.getProperty("retry-times", "1"));
    protected static int DEFAULT_CONNECT_TIMEOUT = Integer.parseInt(System.getProperty("connect-timeout", "1200"));
    public static int DEFAULT_SO_TIMEOUT = Integer.parseInt(System.getProperty("so-timeout", "6000"));

    public static final int FAST_CONNECT_TIMEOUT = Integer.parseInt(System.getProperty("fast-connect-timeout", "200"));
    public static final int FAST_SO_TIMEOUT = Integer.parseInt(System.getProperty("fast-so-timeout", "500"));

    public static int DEFAULT_RETRY_INTERVAL_MILLI = Integer
            .parseInt(System.getProperty("metaserver.retryIntervalMilli", "5"));

    private int retryTimes;
    private int retryIntervalMilli;
    protected RestOperations restTemplate;
{'fraction_non_alphanumeric': 0.1143520053032814, 'fraction_numerical': 0.02287040106065628, 'mean_word_length': 5.171779141104294, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6965196', 'n_tokens_mistral': 886, 'n_tokens_neox': 884, 'n_words': 175}