public interface Account extends ObjectStoreEntity, ListHolder<Container>
getContainer to work on Containers. The method returns
a stub for dealing with Containers, but does not create a container in the Object Store. The creation only
takes place when you run the create method on a
Container. Information on the container will not be retrieved until the time you actually call on that
information - ie, information is lazily loaded.| Modifier and Type | Method and Description |
|---|---|
Access |
authenticate()
Trigger the authentication against Object Store.
|
Access |
getAccess()
Obtain the Access interface
|
long |
getActualServerTimeInSeconds(long seconds)
Calculate the server time taking into account the number of seconds passed.
|
long |
getBytesUsed()
The number of bytes stored by the StoredObjects in all Containers in the Account.
|
Container |
getContainer(java.lang.String name)
Returns a handle for a container.
|
java.lang.String |
getHashPassword()
Returns the hash password originally set on Account.
|
int |
getNumberOfCalls()
Returns the number of HTTP calls that have been made to the ObjectStore server.
|
int |
getObjectCount()
The number of StoredObjects in all Containers in the Account.
|
java.lang.String |
getOriginalHost()
Returns the original host, regardless of the configured and private host settings
|
java.lang.String |
getPreferredRegion()
Returns the preferred region of the account.
|
java.lang.String |
getPrivateURL()
Returns the private URL which is used for the underlying stored objects
|
java.lang.String |
getPublicURL()
Returns the URL which is used for the underlying stored objects
|
long |
getServerTime()
Returns the server time in milliseconds since 1970
|
Tenants |
getTenants()
Returns the tenants of the account.
|
Website |
getWebsite(java.lang.String name)
Returns a handle for a website.
|
void |
increaseCallCounter()
Increase the call counter which tracks how many calls are made to the ObjectStore
|
boolean |
isAllowReauthenticate()
Whether reauthentication on expiration of the authentication token is allowed, or this is done
manually by the client
|
boolean |
isTenantSupplied()
Checks whether a tenant ID and/or name were supplied.
|
void |
reload()
Force the Account to reload its metadata
|
void |
resetContainerCache()
Empties the Container Cache
|
Account |
setAllowContainerCaching(boolean containerCaching)
If ContainerCaching is enabled, Account will keep track of its Container instances and reuse them.
|
Account |
setAllowReauthenticate(boolean allowReauthenticate)
An ObjectStore authentication token will expire after 24 hours.
|
Account |
setHashPassword(java.lang.String hashPassword)
Saves the password to the Account.
|
Account |
setPreferredRegion(java.lang.String preferredRegion)
Set the preferred region for the account.
|
Account |
setPrivateHost(java.lang.String host)
Set your own private host to prefix the URLs of objects
|
Account |
setPublicHost(java.lang.String host)
Set your own host to prefix the URLs of objects
|
void |
synchronizeWithServerTime()
Compares the local time to the server time and maintains a number of milliseconds to account for the
difference.
|
getMetadata, getMetadata, getPath, removeAndDoNotSaveMetadata, removeAndSaveMetadata, saveMetadata, setAndDoNotSaveMetadata, setAndSaveMetadata, setMetadatagetCount, getMaxPageSize, getPaginationMap, getPaginationMap, list, list, listContainer getContainer(java.lang.String name)
name - name of the container to create a handle forWebsite getWebsite(java.lang.String name)
name - name of the website to create a handle forAccess authenticate()
Access getAccess()
java.lang.String getPublicURL()
java.lang.String getPrivateURL()
void reload()
long getBytesUsed()
int getObjectCount()
long getServerTime()
void synchronizeWithServerTime()
long getActualServerTimeInSeconds(long seconds)
seconds - number of seconds after the actual server timeAccount setAllowReauthenticate(boolean allowReauthenticate)
allowReauthenticate - whether reauthentication is allowedAccount setPublicHost(java.lang.String host)
host - host of an object's URLAccount setPrivateHost(java.lang.String host)
host - host of an object's private URLAccount setAllowContainerCaching(boolean containerCaching)
containerCaching - whether container caching is allowedAccount setHashPassword(java.lang.String hashPassword)
hashPassword - the password to use for generating the hashesjava.lang.String getHashPassword()
void resetContainerCache()
boolean isAllowReauthenticate()
void increaseCallCounter()
int getNumberOfCalls()
java.lang.String getOriginalHost()
Tenants getTenants()
boolean isTenantSupplied()
java.lang.String getPreferredRegion()
Account setPreferredRegion(java.lang.String preferredRegion)
preferredRegion - the preferred region for the accountCopyright © 2012-2020 42 BV. All Rights Reserved.