CloudAnalyticsClient Class
- java.
lang. Object - com.
microsoft. azure. storage. analytics. CloudAnalyticsClient
- com.
public class CloudAnalyticsClient
Provides a client-side logical representation for Microsoft Azure Storage Analytics. This client is used to configure and execute storage analytics requests.
The service client encapsulates the endpoint or endpoints for the blob and table service. It also encapsulates the credentials for accessing the storage account.
Field Summary
Modifier and Type | Field and Description |
---|---|
final Cloud |
blob The blob client for logging features. |
String |
Log The container in which to look for logs. |
final Cloud |
table The table client for metrics features. |
Constructor Summary
Constructor | Description |
---|---|
Cloud |
Initializes a new instance of the class using the specified blob and table service endpoints and account credentials. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Cloud |
get Gets the capacity metrics table for the blob service. |
Cloud |
get Gets the hour metrics table for a specific storage service. |
Cloud |
get Gets the hour metrics table for a specific storage service. |
Cloud |
get Gets the CloudBlobDirectory object for the logs for a specific storage service. |
Cloud |
get Gets the minute metrics table for a specific storage service. |
Cloud |
get Gets the minute metrics table for a specific storage service. |
Iterable<List |
list Returns an enumerable collection of log blobs, retrieved lazily. |
Iterable<List |
list Returns an enumerable collection of log blobs, retrieved lazily. |
Iterable<Log |
list Returns an enumerable collection of log records, retrieved lazily. |
Iterable<Log |
list Returns an enumerable collection of log records, retrieved lazily. |
Iterable<Log |
parse Returns an enumerable collection of log records, retrieved lazily. |
Iterable<Log |
parse Returns an enumerable collection of log records, retrieved lazily. |
Field Details
blobClient
protected final CloudBlobClient blobClient
The blob client for logging features.
LogContainer
protected String LogContainer= Constants.AnalyticsConstants.LOGS_CONTAINER
The container in which to look for logs.
tableClient
protected final CloudTableClient tableClient
The table client for metrics features.
Constructor Details
CloudAnalyticsClient
public CloudAnalyticsClient(StorageUri blobStorageUri, StorageUri tableStorageUri, StorageCredentials credentials)
Initializes a new instance of the class using the specified blob and table service endpoints and account credentials.
Parameters:
Method Details
getCapacityTable
public CloudTable getCapacityTable()
Gets the capacity metrics table for the blob service.
Returns:
Throws:
getHourMetricsTable
public CloudTable getHourMetricsTable(StorageService service)
Gets the hour metrics table for a specific storage service.
Parameters:
Returns:
Throws:
getHourMetricsTable
public CloudTable getHourMetricsTable(StorageService service, StorageLocation location)
Gets the hour metrics table for a specific storage service.
Parameters:
Returns:
Throws:
getLogDirectory
public CloudBlobDirectory getLogDirectory(StorageService service)
Gets the CloudBlobDirectory object for the logs for a specific storage service.
Parameters:
Returns:
Throws:
getMinuteMetricsTable
public CloudTable getMinuteMetricsTable(StorageService service)
Gets the minute metrics table for a specific storage service.
Parameters:
Returns:
Throws:
getMinuteMetricsTable
public CloudTable getMinuteMetricsTable(StorageService service, StorageLocation location)
Gets the minute metrics table for a specific storage service.
Parameters:
Returns:
CloudTable
object for the storage service.Throws:
listLogBlobs
public Iterable
Returns an enumerable collection of log blobs, retrieved lazily.
Parameters:
Returns:
ListBlobItem
and are retrieved lazily.Throws:
listLogBlobs
public Iterable
Returns an enumerable collection of log blobs, retrieved lazily.
Parameters:
java.util.Date
object representing the start of the time range for which logs should be retrieved.
java.util.Date
object representing the end of the time range for which logs should be retrieved.
Returns:
Throws:
listLogRecords
public Iterable
Returns an enumerable collection of log records, retrieved lazily.
Parameters:
Returns:
ListBlobItem
and are retrieved lazily.Throws:
listLogRecords
public Iterable
Returns an enumerable collection of log records, retrieved lazily.
Parameters:
java.util.Date
object representing the start of the time range for which logs should be retrieved.
java.util.Date
object representing the end of the time range for which logs should be retrieved.
Returns:
Throws:
parseLogBlob
public static Iterable
Returns an enumerable collection of log records, retrieved lazily.
Parameters:
Returns:
parseLogBlobs
public static Iterable
Returns an enumerable collection of log records, retrieved lazily.
Parameters:
Returns:
Azure SDK for Java feedback
Azure SDK for Java is an open source project. Select a link to provide feedback: