org.infinispan.loaders.cloud
Class CloudCacheStoreConfig
java.lang.Object
org.infinispan.config.AbstractConfigurationBean
org.infinispan.config.AbstractNamedCacheConfigurationBean
org.infinispan.loaders.AbstractCacheLoaderConfig
org.infinispan.loaders.AbstractCacheStoreConfig
org.infinispan.loaders.LockSupportCacheStoreConfig
org.infinispan.loaders.cloud.CloudCacheStoreConfig
- All Implemented Interfaces:
- Serializable, Cloneable, CloneableConfigurationComponent, JAXBUnmarshallable, CacheLoaderConfig, CacheStoreConfig
public class CloudCacheStoreConfig
- extends LockSupportCacheStoreConfig
The cache store config bean for the CloudCacheStore
. This
allows you to tune a number of characteristics of the
CloudCacheStore
.
- identity - A String that identifies you to the cloud provider. For example. with
AWS, this is your ACCESS KEY.
- password - A String that is used to authenticate you with the cloud provider. For
example. with AWS, this is your SECRET KEY.
- bucketPrefix - A String that is prepended to generated buckets or containers on the
cloud store. Buckets or containers are named {bucketPrefix}-{cacheName}.
- proxyHost - The host name of a proxy to use. Optional, no proxy is used if this is
un-set.
- proxyPort - The port of a proxy to use. Optional, no proxy is used if this is
un-set.
- requestTimeout - A timeout to use when communicating with the cloud storage
provider, in milliseconds. Defaults to 10000.
- lazyPurgingOnly - If enabled, then expired entries are only purged on access,
lazily, rather than by using the periodic eviction thread. Defaults to false.
- cloudService - The cloud service to use. Supported values are s3 (Amazon
AWS), cloudfiles (Rackspace Cloud), azureblob (Microsoft Azure), and
atmos (Atmos Online Storage Service).
- maxConnections - The maximum number of concurrent connections to make to the cloud
provider. Defaults to 10.
- secure - Whether to use secure (SSL) connections or not. Defaults to true.
- compress - Whether to compress stored data. Defaults to true.
- cloudServiceLocation - the data center to use. Note that this is specific to the
cloud provider in question. E.g., Amazon's S3 service supports storage buckets in several
different locations. Valid strings for S3, for example, are here. Optional, and defaults to DEFAULT.
- Since:
- 4.0
- Author:
- Manik Surtani
- See Also:
- Serialized Form
Methods inherited from class org.infinispan.loaders.AbstractCacheStoreConfig |
accept, asyncStore, clone, equalsExcludingProperties, fetchPersistentState, getAsyncStoreConfig, getPurgerThreads, getSingletonStoreConfig, getTypedProperties, hashCodeExcludingProperties, ignoreModifications, isFetchPersistentState, isIgnoreModifications, isPurgeOnStartup, isPurgeSynchronously, purgeOnStartup, purgerThreads, purgeSynchronously, setAsyncStoreConfig, setFetchPersistentState, setIgnoreModifications, setPurgeOnStartup, setPurgerThreads, setPurgeSynchronously, setSingletonStoreConfig, setTypedProperties, singletonStore |
CloudCacheStoreConfig
public CloudCacheStoreConfig()
getBucketPrefix
public String getBucketPrefix()
setBucketPrefix
public void setBucketPrefix(String bucketPrefix)
getCloudService
public String getCloudService()
setCloudService
public void setCloudService(String cloudService)
getIdentity
public String getIdentity()
setIdentity
public void setIdentity(String identity)
isLazyPurgingOnly
public boolean isLazyPurgingOnly()
setLazyPurgingOnly
public void setLazyPurgingOnly(boolean lazyPurgingOnly)
getMaxConnections
public int getMaxConnections()
setMaxConnections
public void setMaxConnections(int maxConnections)
getPassword
public String getPassword()
setPassword
public void setPassword(String password)
getProxyHost
public String getProxyHost()
setProxyHost
public void setProxyHost(String proxyHost)
getProxyPort
public String getProxyPort()
setProxyPort
public void setProxyPort(String proxyPort)
getRequestTimeout
public long getRequestTimeout()
setRequestTimeout
public void setRequestTimeout(long requestTimeout)
isSecure
public boolean isSecure()
setSecure
public void setSecure(boolean secure)
isCompress
public boolean isCompress()
setCompress
public void setCompress(boolean compress)
equals
public boolean equals(Object o)
- Overrides:
equals
in class AbstractCacheStoreConfig
hashCode
public int hashCode()
- Overrides:
hashCode
in class AbstractCacheStoreConfig
toString
public String toString()
- Overrides:
toString
in class LockSupportCacheStoreConfig
getCloudServiceLocation
public String getCloudServiceLocation()
setCloudServiceLocation
public void setCloudServiceLocation(String loc)
Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.