|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.soyatec.windowsazure.proxy.AbstractProxyDelegate
org.soyatec.windowsazure.table.TableStorageClient
public abstract class TableStorageClient
API entry point for using structured storage. The underlying usage pattern is designed to be similar to the one used in blob and queue services in this library. Users create a TableStorage object by calling the static Create() method passing account credential information to this method.
| Field Summary | |
|---|---|
static IRetryPolicy |
DefaultRetryPolicy
The default retry policy |
static org.soyatec.windowsazure.internal.util.TimeSpan |
DefaultTimeout
The default timeout |
| Method Summary | |
|---|---|
static TableStorageClient |
create(boolean usePathStyleUris,
java.lang.String accountName,
java.lang.String base64Key)
Creates a TableStorage service object. |
static TableStorageClient |
create(StorageAccountInfo info)
Creates a TableStorage service object. |
static TableStorageClient |
create(java.net.URI baseUri,
boolean usePathStyleUris,
java.lang.String accountName,
java.lang.String base64Key)
Creates a TableStorage service object. |
abstract void |
createTable(java.lang.String tableName)
Creates a Table object. |
abstract boolean |
createTableIfNotExist(java.lang.String tableName)
Creates a Table object. |
abstract void |
deleteTable(java.lang.String tableName)
Delete a table. |
abstract boolean |
deleteTableIfExist(java.lang.String tableName)
Delete a table if exist. |
java.lang.String |
getAccountName()
Get the name of storage account |
java.lang.String |
getBase64Key()
Get the authenticate key for of storage account |
java.net.URI |
getBaseUri()
Get The base URI of the table storage service |
SharedKeyCredentials |
getCredentials()
Set the credential |
IRetryPolicy |
getRetryPolicy()
Get the IRetryPolicy |
abstract ITable |
getTableReference(java.lang.String tableName)
Get a reference to a Table object with a specified name. |
org.soyatec.windowsazure.internal.util.TimeSpan |
getTimeout()
Get time out per request |
abstract boolean |
isTableExist(java.lang.String tableName)
Check if the table exists. |
boolean |
isUsePathStyleUris()
Indicates whether to use/generate path-style or host-style URIs |
abstract java.util.List<java.lang.String> |
listTables()
Lists all the tables under this service's URL |
abstract java.util.List<java.lang.String> |
listTables(java.lang.String prefix)
Lists all the tables with the prefix under this service's URL |
void |
setBase64Key(java.lang.String base64Key)
Set the authenticate key for of storage account |
void |
setCredentials(SharedKeyCredentials credentials)
Get credential |
void |
setRetryPolicy(IRetryPolicy retryPolicy)
Set the IRetryPolicy |
void |
setTimeout(org.soyatec.windowsazure.internal.util.TimeSpan timeout)
Set timeout per request |
| Methods inherited from class org.soyatec.windowsazure.proxy.AbstractProxyDelegate |
|---|
disableProxy, isProxyEnabled, setProxyConfiguration |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final IRetryPolicy DefaultRetryPolicy
public static final org.soyatec.windowsazure.internal.util.TimeSpan DefaultTimeout
| Method Detail |
|---|
public abstract boolean isTableExist(java.lang.String tableName)
throws StorageException
tableName - of the Table.
StorageException
public static TableStorageClient create(java.net.URI baseUri,
boolean usePathStyleUris,
java.lang.String accountName,
java.lang.String base64Key)
baseUri - The base URI of the blob storage serviceusePathStyleUris - If true, path-style URIs
(http://baseuri/accountname/containername/objectname) are
used. If false host-style URIs
(http://accountname.baseuri/containername/objectname) are
used, where baseuri is the URI of the service. If null, the
choice is made automatically: path-style URIs if host name
part of base URI is an IP addres, host-style otherwise.accountName - The name of the storage accountbase64Key - Authentication key used for signing requests
public abstract void createTable(java.lang.String tableName)
tableName - The name of the table.public abstract boolean createTableIfNotExist(java.lang.String tableName)
tableName - The name of the table.
public abstract boolean deleteTableIfExist(java.lang.String tableName)
tableName - The name of the table.
public abstract void deleteTable(java.lang.String tableName)
tableName - The name of the table.
public static TableStorageClient create(boolean usePathStyleUris,
java.lang.String accountName,
java.lang.String base64Key)
usePathStyleUris - If true, path-style URIs
(http://baseuri/accountname/containername/objectname) are
used. If false host-style URIs
(http://accountname.baseuri/containername/objectname) are
used, where baseuri is the URI of the service. If null, the
choice is made automatically: path-style URIs if host name
part of base URI is an IP addres, host-style otherwise.accountName - The name of the storage accountbase64Key - Authentication key used for signing requests
public static TableStorageClient create(StorageAccountInfo info)
info - StorageAccountInfo
public abstract java.util.List<java.lang.String> listTables()
throws StorageException
StorageException
public abstract java.util.List<java.lang.String> listTables(java.lang.String prefix)
throws StorageException
prefix -
StorageExceptionpublic abstract ITable getTableReference(java.lang.String tableName)
tableName - The name of the table
public boolean isUsePathStyleUris()
public java.net.URI getBaseUri()
public java.lang.String getAccountName()
public java.lang.String getBase64Key()
public void setBase64Key(java.lang.String base64Key)
base64Key - public IRetryPolicy getRetryPolicy()
IRetryPolicy
public void setRetryPolicy(IRetryPolicy retryPolicy)
IRetryPolicy
retryPolicy - public org.soyatec.windowsazure.internal.util.TimeSpan getTimeout()
public void setTimeout(org.soyatec.windowsazure.internal.util.TimeSpan timeout)
timeout - public SharedKeyCredentials getCredentials()
public void setCredentials(SharedKeyCredentials credentials)
credentials -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||