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 |
blobClient
The blob client for logging features. |
String |
LogContainer
The container in which to look for logs. |
final Cloud |
tableClient
The table client for metrics features. |
Constructor Summary
Constructor | Description |
---|---|
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. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Cloud |
getCapacityTable()
Gets the capacity metrics table for the blob service. |
Cloud |
getHourMetricsTable(StorageService service)
Gets the hour metrics table for a specific storage service. |
Cloud |
getHourMetricsTable(StorageService service, StorageLocation location)
Gets the hour metrics table for a specific storage service. |
Cloud |
getLogDirectory(StorageService service)
Gets the CloudBlobDirectory object for the logs for a specific storage service. |
Cloud |
getMinuteMetricsTable(StorageService service)
Gets the minute metrics table for a specific storage service. |
Cloud |
getMinuteMetricsTable(StorageService service, StorageLocation location)
Gets the minute metrics table for a specific storage service. |
Iterable<List |
listLogBlobs(StorageService service)
Returns an enumerable collection of log blobs, retrieved lazily. |
Iterable<List |
listLogBlobs(StorageService service, Date startTime, Date endTime, EnumSet<LoggingOperations> operations, BlobListingDetails details, BlobRequestOptions options, OperationContext operationContext)
Returns an enumerable collection of log blobs, retrieved lazily. |
Iterable<Log |
listLogRecords(StorageService service)
Returns an enumerable collection of log records, retrieved lazily. |
Iterable<Log |
listLogRecords(StorageService service, Date startTime, Date endTime, BlobRequestOptions options, OperationContext operationContext)
Returns an enumerable collection of log records, retrieved lazily. |
Iterable<Log |
parseLogBlob(ListBlobItem logBlob)
Returns an enumerable collection of log records, retrieved lazily. |
Iterable<Log |
parseLogBlobs(Iterable<ListBlobItem> logBlobs)
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:
Applies to
Azure SDK for Java