Package org.pentaho.di.cluster
Class SlaveConnectionManager
- java.lang.Object
-
- org.pentaho.di.cluster.SlaveConnectionManager
-
public class SlaveConnectionManager extends Object
Encapsulates the Apache commons HTTP connection manager with a singleton. We can use this to limit the number of open connections to slave servers.- Author:
- matt
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.http.client.HttpClient
createHttpClient()
org.apache.http.client.HttpClient
createHttpClient(String user, String password)
org.apache.http.client.HttpClient
createHttpClient(String user, String password, String proxyHost, int proxyPort, org.apache.http.auth.AuthScope authScope)
static SlaveConnectionManager
getInstance()
void
shutdown()
-
-
-
Method Detail
-
getInstance
public static SlaveConnectionManager getInstance()
-
createHttpClient
public org.apache.http.client.HttpClient createHttpClient()
-
createHttpClient
public org.apache.http.client.HttpClient createHttpClient(String user, String password)
-
createHttpClient
public org.apache.http.client.HttpClient createHttpClient(String user, String password, String proxyHost, int proxyPort, org.apache.http.auth.AuthScope authScope)
-
shutdown
public void shutdown()
-
-