org.jboss.cache.loader.s3
Class S3LoaderConfig

java.lang.Object
  extended by org.jboss.cache.config.ConfigurationComponent
      extended by org.jboss.cache.config.PluggableConfigurationComponent
          extended by org.jboss.cache.config.CacheLoaderConfig.IndividualCacheLoaderConfig
              extended by org.jboss.cache.loader.s3.S3LoaderConfig
All Implemented Interfaces:
Serializable, Cloneable, CloneableConfigurationComponent

public class S3LoaderConfig
extends CacheLoaderConfig.IndividualCacheLoaderConfig

Amazon S3 loader configuration.

Author:
Elias Ross
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jboss.cache.config.CacheLoaderConfig.IndividualCacheLoaderConfig
CacheLoaderConfig.IndividualCacheLoaderConfig.SingletonStoreConfig
 
Field Summary
 
Fields inherited from class org.jboss.cache.config.PluggableConfigurationComponent
className, properties
 
Fields inherited from class org.jboss.cache.config.ConfigurationComponent
log
 
Constructor Summary
S3LoaderConfig()
           
 
Method Summary
 S3LoaderConfig clone()
           
 boolean equals(Object obj)
           
 String getAccessKeyId()
          Returns accessKeyId.
 net.noderunner.amazon.s3.Bucket getBucket()
          Returns bucket.
 net.noderunner.amazon.s3.CallingFormat getCallingFormat()
          Returns callingFormat.
 String getLocation()
          Returns location.
 boolean getOptimize()
          Returns true if certain CRUD operations are optimized to not do extra queries.
 boolean getParentCache()
          Returns true if the existence of parent nodes should be cached.
 int getPort()
          Returns port.
 String getSecretAccessKey()
          Returns secretAccessKey.
 String getServer()
          Returns server.
 int hashCode()
           
 boolean isSecure()
          Returns secure.
 void setAccessKeyId(String accessKeyId)
          Sets accessKeyId.
 void setBucket(net.noderunner.amazon.s3.Bucket bucket)
          Sets bucket.
 void setCallingFormat(net.noderunner.amazon.s3.CallingFormat callingFormat)
          Sets callingFormat.
 void setOptimize(boolean optimize)
          Sets optimize.
 void setParentCache(boolean parentCache)
          Sets parentCache.
 void setPort(int port)
          Sets port.
 void setProperties(Properties props)
           
 void setSecretAccessKey(String secretAccessKey)
          Sets secretAccessKey.
 void setSecure(boolean secure)
          Sets secure.
 void setServer(String server)
          Sets server.
 String toString()
          Returns a debug string.
 
Methods inherited from class org.jboss.cache.config.CacheLoaderConfig.IndividualCacheLoaderConfig
equalsExcludingProperties, getCacheLoader, getSingletonStoreConfig, hashCodeExcludingProperties, isAsync, isFetchPersistentState, isIgnoreModifications, isPurgeOnStartup, populateFromBaseConfig, setAsync, setCacheLoader, setFetchPersistentState, setIgnoreModifications, setPurgeOnStartup, setSingletonStoreConfig
 
Methods inherited from class org.jboss.cache.config.PluggableConfigurationComponent
getClassName, getProperties, setClassName, setProperties
 
Methods inherited from class org.jboss.cache.config.ConfigurationComponent
addChildConfig, addChildConfigs, passCacheToChildConfig, removeChildConfig, removeChildConfigs, replaceChildConfig, replaceChildConfigs, setCache, testImmutability
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

S3LoaderConfig

public S3LoaderConfig()
Method Detail

setProperties

public void setProperties(Properties props)
Overrides:
setProperties in class PluggableConfigurationComponent

equals

public boolean equals(Object obj)
Overrides:
equals in class CacheLoaderConfig.IndividualCacheLoaderConfig

hashCode

public int hashCode()
Overrides:
hashCode in class CacheLoaderConfig.IndividualCacheLoaderConfig

clone

public S3LoaderConfig clone()
                     throws CloneNotSupportedException
Specified by:
clone in interface CloneableConfigurationComponent
Overrides:
clone in class CacheLoaderConfig.IndividualCacheLoaderConfig
Throws:
CloneNotSupportedException

getAccessKeyId

public String getAccessKeyId()
Returns accessKeyId.


setAccessKeyId

public void setAccessKeyId(String accessKeyId)
Sets accessKeyId.


getSecretAccessKey

public String getSecretAccessKey()
Returns secretAccessKey.


setSecretAccessKey

public void setSecretAccessKey(String secretAccessKey)
Sets secretAccessKey.


isSecure

public boolean isSecure()
Returns secure.


setSecure

public void setSecure(boolean secure)
Sets secure.


getServer

public String getServer()
Returns server.


setServer

public void setServer(String server)
Sets server.


getPort

public int getPort()
Returns port.


setPort

public void setPort(int port)
Sets port.


getBucket

public net.noderunner.amazon.s3.Bucket getBucket()
Returns bucket.


setBucket

public void setBucket(net.noderunner.amazon.s3.Bucket bucket)
Sets bucket.


getCallingFormat

public net.noderunner.amazon.s3.CallingFormat getCallingFormat()
Returns callingFormat.


setCallingFormat

public void setCallingFormat(net.noderunner.amazon.s3.CallingFormat callingFormat)
Sets callingFormat.


toString

public String toString()
Returns a debug string.

Overrides:
toString in class CacheLoaderConfig.IndividualCacheLoaderConfig

getOptimize

public boolean getOptimize()
Returns true if certain CRUD operations are optimized to not do extra queries. If true, then the behavior will be:


setOptimize

public void setOptimize(boolean optimize)
Sets optimize.


getParentCache

public boolean getParentCache()
Returns true if the existence of parent nodes should be cached.


setParentCache

public void setParentCache(boolean parentCache)
Sets parentCache.


getLocation

public String getLocation()
Returns location.



Copyright © 2008 JBoss, a division of Red Hat. All Rights Reserved.