package com.zy.acs.fake.config; 
 | 
  
 | 
import org.springframework.boot.context.properties.ConfigurationProperties; 
 | 
import org.springframework.context.annotation.Configuration; 
 | 
  
 | 
import java.net.InetAddress; 
 | 
import java.net.UnknownHostException; 
 | 
  
 | 
/** 
 | 
 * redis系统配置 
 | 
 * Created by vincent on 2018/10/15 
 | 
 */ 
 | 
@Configuration 
 | 
@ConfigurationProperties(prefix = "redis") 
 | 
public class RedisProperties { 
 | 
  
 | 
    public static String HOST_NAME; 
 | 
  
 | 
    static { 
 | 
        try { 
 | 
            HOST_NAME = InetAddress.getLocalHost().getHostName(); 
 | 
        } catch (UnknownHostException e) { 
 | 
            System.err.println("find hostname err"); 
 | 
        } 
 | 
    } 
 | 
  
 | 
    private String host; 
 | 
  
 | 
    private String password; 
 | 
  
 | 
    private int port; 
 | 
  
 | 
    private int min; 
 | 
  
 | 
    private int max; 
 | 
  
 | 
    private int timeout; 
 | 
  
 | 
    private int index; 
 | 
  
 | 
    public String getHost() { 
 | 
        return host; 
 | 
    } 
 | 
  
 | 
    public void setHost(String host) { 
 | 
        this.host = host; 
 | 
    } 
 | 
  
 | 
    public String getPassword() { 
 | 
        return password; 
 | 
    } 
 | 
  
 | 
    public void setPassword(String password) { 
 | 
        this.password = password; 
 | 
    } 
 | 
  
 | 
    public int getPort() { 
 | 
        return port; 
 | 
    } 
 | 
  
 | 
    public void setPort(int port) { 
 | 
        this.port = port; 
 | 
    } 
 | 
  
 | 
    public int getMin() { 
 | 
        return min; 
 | 
    } 
 | 
  
 | 
    public void setMin(int min) { 
 | 
        this.min = min; 
 | 
    } 
 | 
  
 | 
    public int getMax() { 
 | 
        return max; 
 | 
    } 
 | 
  
 | 
    public void setMax(int max) { 
 | 
        this.max = max; 
 | 
    } 
 | 
  
 | 
    public int getTimeout() { 
 | 
        return timeout; 
 | 
    } 
 | 
  
 | 
    public void setTimeout(int timeout) { 
 | 
        this.timeout = timeout; 
 | 
    } 
 | 
  
 | 
    public int getIndex() { 
 | 
        return index; 
 | 
    } 
 | 
  
 | 
    public void setIndex(int index) { 
 | 
        this.index = index; 
 | 
    } 
 | 
} 
 |