org.jclouds
Class PropertiesBuilder

java.lang.Object
  extended by org.jclouds.PropertiesBuilder
Direct Known Subclasses:
AzureStoragePropertiesBuilder, BYONPropertiesBuilder, CloudLoadBalancersUSPropertiesBuilder, CloudOneStoragePropertiesBuilder, CloudServersUKPropertiesBuilder, CloudServersUSPropertiesBuilder, CloudSigmaPropertiesBuilder, CloudWatchPropertiesBuilder, DeltacloudPropertiesBuilder, EC2PropertiesBuilder, ElasticStackPropertiesBuilder, FilesystemBlobStorePropertiesBuilder, GoGridPropertiesBuilder, NinefoldStoragePropertiesBuilder, NovaPropertiesBuilder, RimuHostingPropertiesBuilder, S3PropertiesBuilder, SlicehostPropertiesBuilder, SoftLayerPropertiesBuilder, SwiftPropertiesBuilder, SynapticStoragePropertiesBuilder, TerremarkVCloudPropertiesBuilder, TransientBlobStorePropertiesBuilder, VCloudPropertiesBuilder, VPDCPropertiesBuilder

public class PropertiesBuilder
extends Object

Builds properties used in Http engines

Author:
Adrian Cole, Andrew Newdigate

Field Summary
protected  Properties properties
           
 
Constructor Summary
PropertiesBuilder()
           
PropertiesBuilder(Properties properties)
           
 
Method Summary
 PropertiesBuilder apiVersion(String apiVersion)
           
 Properties build()
           
 PropertiesBuilder credentials(String identity, String credential)
           
protected  Properties defaultProperties()
           
 PropertiesBuilder endpoint(String endpoint)
           
 PropertiesBuilder iso3166Codes(Iterable<String> codes)
           
 PropertiesBuilder limitConnectionsPerHostTo(int connectionLimit)
           
 PropertiesBuilder limitConnectionsTo(int connectionLimit)
           
 PropertiesBuilder limitIoWorkerThreadsTo(int poolIoWorkerThreads)
           
 PropertiesBuilder limitUserThreadsTo(int poolIoWorkerThreads)
           
 PropertiesBuilder provider(String providerName)
           
 PropertiesBuilder relaxSSLHostname(boolean relax)
           
 PropertiesBuilder sessionInterval(long seconds)
           
 PropertiesBuilder trustAllCerts(boolean trust)
           
 PropertiesBuilder useSystemProxies(boolean useSystemProxies)
           
 PropertiesBuilder withConnectionTimeout(long connectionTimeout)
           
 PropertiesBuilder withMaxClientReuse(int poolMaxClientReuse)
           
 PropertiesBuilder withMaxRedirects(int httpMaxRedirects)
           
 PropertiesBuilder withMaxRetries(int httpMaxRetries)
           
 PropertiesBuilder withMaxSessionFailures(int poolMaxSessionFailures)
           
 PropertiesBuilder withProxyHost(String proxyHost)
           
 PropertiesBuilder withProxyPassword(String proxyPassword)
           
 PropertiesBuilder withProxyPort(int proxyPort)
           
 PropertiesBuilder withProxyUser(String proxyUser)
           
 PropertiesBuilder withRetriesDelayStart(long delayStart)
           
 PropertiesBuilder withSOTimeout(long soTimeout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

properties

protected final Properties properties
Constructor Detail

PropertiesBuilder

public PropertiesBuilder()

PropertiesBuilder

public PropertiesBuilder(Properties properties)
Method Detail

relaxSSLHostname

public PropertiesBuilder relaxSSLHostname(boolean relax)
See Also:
org.jclouds.Constants.PROPERTY_RELAX_HOSTNAME

trustAllCerts

public PropertiesBuilder trustAllCerts(boolean trust)
See Also:
org.jclouds.Constants.PROPERTY_TRUST_ALL_CERTS

useSystemProxies

public PropertiesBuilder useSystemProxies(boolean useSystemProxies)
See Also:
org.jclouds.Constants.PROPERTY_PROXY_SYSTEM

withProxyHost

public PropertiesBuilder withProxyHost(String proxyHost)
See Also:
org.jclouds.Constants.PROPERTY_PROXY_HOST

withProxyPort

public PropertiesBuilder withProxyPort(int proxyPort)
See Also:
org.jclouds.Constants.PROPERTY_PROXY_PORT

withProxyUser

public PropertiesBuilder withProxyUser(String proxyUser)
See Also:
org.jclouds.Constants.PROPERTY_PROXY_USER

withProxyPassword

public PropertiesBuilder withProxyPassword(String proxyPassword)
See Also:
org.jclouds.Constants.PROPERTY_PROXY_PASSWORD

withSOTimeout

public PropertiesBuilder withSOTimeout(long soTimeout)
See Also:
org.jclouds.Constants.PROPERTY_SO_TIMEOUT

withConnectionTimeout

public PropertiesBuilder withConnectionTimeout(long connectionTimeout)
See Also:
org.jclouds.Constants.PROPERTY_CONNECTION_TIMEOUT

withMaxRetries

public PropertiesBuilder withMaxRetries(int httpMaxRetries)
See Also:
org.jclouds.Constants.PROPERTY_MAX_RETRIES

withRetriesDelayStart

public PropertiesBuilder withRetriesDelayStart(long delayStart)
See Also:
org.jclouds.Constants.PROPERTY_RETRY_DELAY_START

withMaxRedirects

public PropertiesBuilder withMaxRedirects(int httpMaxRedirects)
See Also:
org.jclouds.Constants.PROPERTY_MAX_REDIRECTS

withMaxClientReuse

public PropertiesBuilder withMaxClientReuse(int poolMaxClientReuse)
See Also:
org.jclouds.Constants.PROPERTY_MAX_CONNECTION_REUSE

withMaxSessionFailures

public PropertiesBuilder withMaxSessionFailures(int poolMaxSessionFailures)
See Also:
org.jclouds.Constants.PROPERTY_MAX_SESSION_FAILURES

limitIoWorkerThreadsTo

public PropertiesBuilder limitIoWorkerThreadsTo(int poolIoWorkerThreads)
See Also:
org.jclouds.Constants.PROPERTY_IO_WORKER_THREADS

limitUserThreadsTo

public PropertiesBuilder limitUserThreadsTo(int poolIoWorkerThreads)
See Also:
org.jclouds.Constants.PROPERTY_IO_WORKER_THREADS

limitConnectionsTo

public PropertiesBuilder limitConnectionsTo(int connectionLimit)
See Also:
org.jclouds.Constants.PROPERTY_MAX_CONNECTIONS_PER_CONTEXT

limitConnectionsPerHostTo

public PropertiesBuilder limitConnectionsPerHostTo(int connectionLimit)
See Also:
org.jclouds.Constants.PROPERTY_MAX_CONNECTIONS_PER_HOST

defaultProperties

protected Properties defaultProperties()

provider

public PropertiesBuilder provider(String providerName)

endpoint

public PropertiesBuilder endpoint(String endpoint)

iso3166Codes

public PropertiesBuilder iso3166Codes(Iterable<String> codes)

apiVersion

public PropertiesBuilder apiVersion(String apiVersion)

credentials

public PropertiesBuilder credentials(String identity,
                                     @Nullable
                                     String credential)

sessionInterval

public PropertiesBuilder sessionInterval(long seconds)

build

public Properties build()


Copyright © 2009-2011 jclouds. All Rights Reserved.