/** * Get the proxy-port to use for http the connection. You have to set the ProxyHost too if you would like to have * the proxy really used. * * @param opts The FileSystem options. * @return proxyPort: the port number or 0 if it is not set * @see #setProxyHost */ public int getProxyPort(final FileSystemOptions opts) { return getInteger(opts, "proxyPort", 0); }
/** * Retrieve the connection timeout. * * @param opts The FileSystem options. * @return The connection timeout. * @since 2.1 */ public int getConnectionTimeout(final FileSystemOptions opts) { return getInteger(opts, HttpConnectionParams.CONNECTION_TIMEOUT, DEFAULT_CONNECTION_TIMEOUT); }
/** * Retrieve the maximum number of connections allowed. * * @param opts The FileSystemOptions. * @return The maximum number of connections allowed. * @since 2.0 */ public int getMaxTotalConnections(final FileSystemOptions opts) { return getInteger(opts, HttpConnectionManagerParams.MAX_TOTAL_CONNECTIONS, DEFAULT_MAX_CONNECTIONS); }
/** * Retrieve the maximum number of connections allowed per host. * * @param opts The FileSystemOptions. * @return The maximum number of connections allowed per host. * @since 2.0 */ public int getMaxConnectionsPerHost(final FileSystemOptions opts) { return getInteger(opts, HttpConnectionManagerParams.MAX_HOST_CONNECTIONS, DEFAULT_MAX_HOST_CONNECTIONS); }
/** * Get the proxy-port to use for http the connection. You have to set the ProxyHost too if you would like to have * the proxy really used. * * @param opts The FileSystem options. * @return proxyPort: the port number or 0 if it is not set * @see #setProxyHost */ public int getProxyPort(final FileSystemOptions opts) { return getInteger(opts, "proxyPort", 0); }
/** * Retrieve the socket timeout. * * @param opts The FileSystemOptions. * @return The socket timeout. * @since 2.1 */ public int getSoTimeout(final FileSystemOptions opts) { return getInteger(opts, HttpConnectionParams.SO_TIMEOUT, DEFAULT_SO_TIMEOUT); }
/** * Gets the socket timeout. * * @param opts The FileSystemOptions. * @return The socket timeout. * @since 2.1 */ public int getSoTimeout(final FileSystemOptions opts) { return getInteger(opts, HttpConnectionParams.SO_TIMEOUT, DEFAULT_SO_TIMEOUT); }
/** * Retrieve the maximum number of connections allowed per host. * * @param opts The FileSystemOptions. * @return The maximum number of connections allowed per host. * @since 2.0 */ public int getMaxConnectionsPerHost(final FileSystemOptions opts) { return getInteger(opts, HttpConnectionManagerParams.MAX_HOST_CONNECTIONS, DEFAULT_MAX_HOST_CONNECTIONS); }
/** * Retrieve the maximum number of connections allowed. * * @param opts The FileSystemOptions. * @return The maximum number of connections allowed. * @since 2.0 */ public int getMaxTotalConnections(final FileSystemOptions opts) { return getInteger(opts, HttpConnectionManagerParams.MAX_TOTAL_CONNECTIONS, DEFAULT_MAX_CONNECTIONS); }
/** * Retrieve the socket timeout. * * @param opts The FileSystemOptions. * @return The socket timeout. * @since 2.1 */ public int getSoTimeout(final FileSystemOptions opts) { return getInteger(opts, HttpConnectionParams.SO_TIMEOUT, DEFAULT_SO_TIMEOUT); }
/** * Retrieve the connection timeout. * * @param opts The FileSystem options. * @return The connection timeout. * @since 2.1 */ public int getConnectionTimeout(final FileSystemOptions opts) { return getInteger(opts, HttpConnectionParams.CONNECTION_TIMEOUT, DEFAULT_CONNECTION_TIMEOUT); }
/** * Gets the maximum number of connections allowed per host. * * @param opts The FileSystemOptions. * @return The maximum number of connections allowed per host. * @since 2.0 */ public int getMaxConnectionsPerHost(final FileSystemOptions opts) { return getInteger(opts, HttpConnectionManagerParams.MAX_HOST_CONNECTIONS, DEFAULT_MAX_HOST_CONNECTIONS); }
/** * Gets the connection timeout. * * @param opts The FileSystem options. * @return The connection timeout. * @since 2.1 */ public int getConnectionTimeout(final FileSystemOptions opts) { return getInteger(opts, HttpConnectionParams.CONNECTION_TIMEOUT, DEFAULT_CONNECTION_TIMEOUT); }
/** * Gets the proxy-port to use for http the connection. You have to set the ProxyHost too if you would like to have * the proxy really used. * * @param opts The FileSystem options. * @return proxyPort: the port number or 0 if it is not set * @see #setProxyHost */ public int getProxyPort(final FileSystemOptions opts) { return getInteger(opts, "proxyPort", 0); }
/** * Gets the maximum number of connections allowed. * * @param opts The FileSystemOptions. * @return The maximum number of connections allowed. * @since 2.0 */ public int getMaxTotalConnections(final FileSystemOptions opts) { return getInteger(opts, HttpConnectionManagerParams.MAX_TOTAL_CONNECTIONS, DEFAULT_MAX_CONNECTIONS); }