Class Account


  • public class Account
    extends Object
    Represents an Account in OpenStack Object Storage.
    See Also:
    AccountApi
    • Constructor Detail

      • Account

        protected Account​(long containerCount,
                          long objectCount,
                          long bytesUsed,
                          Map<String,​String> metadata,
                          com.google.common.collect.Multimap<String,​String> headers)
    • Method Detail

      • getContainerCount

        public long getContainerCount()
        Returns:
        The count of containers for this account.
      • getObjectCount

        public long getObjectCount()
        Returns:
        The count of objects for this account.
      • getBytesUsed

        public long getBytesUsed()
        Returns:
        The number of bytes used by this account.
      • getTemporaryUrlKey

        public com.google.common.base.Optional<String> getTemporaryUrlKey()
        Returns:
        The {@link Optional<String>} temporary URL key for this account.
      • getMetadata

        public Map<String,​String> getMetadata()

        NOTE

        In current swift implementations, headers keys are lower-cased. This means characters such as turkish will probably not work out well.
        Returns:
        a Map<String, String> containing the account metadata.
      • getHeaders

        public com.google.common.collect.Multimap<String,​String> getHeaders()
        Returns:
        The HTTP headers for this account.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • string

        protected com.google.common.base.MoreObjects.ToStringHelper string()