com.alibaba.druid.pool.ha.config
Class URLConnectionConfigLoader

java.lang.Object
  extended by com.alibaba.druid.pool.ha.config.URLConnectionConfigLoader
All Implemented Interfaces:
ConfigLoader
Direct Known Subclasses:
CobarConfigLoader, HAConfigLoader

public abstract class URLConnectionConfigLoader
extends Object
implements ConfigLoader


Constructor Summary
URLConnectionConfigLoader(String url)
           
URLConnectionConfigLoader(URL configServerURL)
           
 
Method Summary
 int getConnectTimeout()
           
 int getReadTimeout()
           
 String getResponseMessage()
           
 URL getURL()
           
 void load()
           
 void setConnectTimeout(int connectTimeout)
           
 void setReadTimeout(int readTimeout)
           
 void setURL(URL url)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLConnectionConfigLoader

public URLConnectionConfigLoader(URL configServerURL)

URLConnectionConfigLoader

public URLConnectionConfigLoader(String url)
                          throws MalformedURLException
Throws:
MalformedURLException
Method Detail

getURL

public URL getURL()

setURL

public void setURL(URL url)

getConnectTimeout

public int getConnectTimeout()

setConnectTimeout

public void setConnectTimeout(int connectTimeout)

getReadTimeout

public int getReadTimeout()

setReadTimeout

public void setReadTimeout(int readTimeout)

getResponseMessage

public String getResponseMessage()

load

public void load()
          throws SQLException
Specified by:
load in interface ConfigLoader
Throws:
SQLException


Copyright © 2012 Alibaba Group. All Rights Reserved.