CloudAnalyticsClient クラス

  • java.lang.Object
    • com.microsoft.azure.storage.analytics.CloudAnalyticsClient

public class CloudAnalyticsClient

Microsoft Azure Storage Analytics のクライアント側の論理表現を提供します。 このクライアントは、ストレージ分析要求を構成して実行するために使用されます。

サービス クライアントは、BLOB とテーブル サービスのエンドポイントまたはエンドポイントをカプセル化します。 また、ストレージ アカウントにアクセスするための資格情報もカプセル化します。

フィールドの概要

修飾子と型 フィールドと説明
final CloudBlobClient blobClient

ログ機能用の BLOB クライアント。

String LogContainer

ログを検索するコンテナー。

final CloudTableClient tableClient

メトリック機能のテーブル クライアント。

コンストラクターの概要

コンストラクター 説明
CloudAnalyticsClient(StorageUri blobStorageUri, StorageUri tableStorageUri, StorageCredentials credentials)

指定した BLOB およびテーブル サービス エンドポイントとアカウント資格情報を使用して、 クラスの新しいインスタンスを初期化します。

メソッドの概要

修飾子と型 メソッドと説明
CloudTable getCapacityTable()

BLOB サービスの容量メトリック テーブルを取得します。

CloudTable getHourMetricsTable(StorageService service)

特定のストレージ サービスの時間メトリック テーブルを取得します。

CloudTable getHourMetricsTable(StorageService service, StorageLocation location)

特定のストレージ サービスの時間メトリック テーブルを取得します。

CloudBlobDirectory getLogDirectory(StorageService service)

特定の CloudBlobDirectory ストレージ サービスのログの オブジェクトを取得します。

CloudTable getMinuteMetricsTable(StorageService service)

特定のストレージ サービスの分単位のメトリック テーブルを取得します。

CloudTable getMinuteMetricsTable(StorageService service, StorageLocation location)

特定のストレージ サービスの分単位のメトリック テーブルを取得します。

Iterable<ListBlobItem> listLogBlobs(StorageService service)

遅延取得されたログ BLOB の列挙可能なコレクションを返します。

Iterable<ListBlobItem> listLogBlobs(StorageService service, Date startTime, Date endTime, EnumSet<LoggingOperations> operations, BlobListingDetails details, BlobRequestOptions options, OperationContext operationContext)

遅延取得されたログ BLOB の列挙可能なコレクションを返します。

Iterable<LogRecord> listLogRecords(StorageService service)

遅延取得されたログ レコードの列挙可能なコレクションを返します。

Iterable<LogRecord> listLogRecords(StorageService service, Date startTime, Date endTime, BlobRequestOptions options, OperationContext operationContext)

遅延取得されたログ レコードの列挙可能なコレクションを返します。

Iterable<LogRecord> parseLogBlob(ListBlobItem logBlob)

遅延取得されたログ レコードの列挙可能なコレクションを返します。

Iterable<LogRecord> parseLogBlobs(Iterable<ListBlobItem> logBlobs)

遅延取得されたログ レコードの列挙可能なコレクションを返します。

フィールドの詳細

blobClient

protected final CloudBlobClient blobClient

ログ機能用の BLOB クライアント。

LogContainer

protected String LogContainer= Constants.AnalyticsConstants.LOGS_CONTAINER

ログを検索するコンテナー。

tableClient

protected final CloudTableClient tableClient

メトリック機能のテーブル クライアント。

コンストラクターの詳細

CloudAnalyticsClient

public CloudAnalyticsClient(StorageUri blobStorageUri, StorageUri tableStorageUri, StorageCredentials credentials)

指定した BLOB およびテーブル サービス エンドポイントとアカウント資格情報を使用して、 クラスの新しいインスタンスを初期化します。

Parameters:

blobStorageUri - クライアントの作成に使用する BLOB Service のエンドポイントを表す StorageUri オブジェクトです。
tableStorageUri - クライアントの作成に使用する Table サービスのエンドポイントを表す StorageUri オブジェクトです。
credentials - StorageCredentials オブジェクト。

メソッドの詳細

getCapacityTable

public CloudTable getCapacityTable()

BLOB サービスの容量メトリック テーブルを取得します。

Returns:

CloudTable オブジェクト。

Throws:

URISyntaxException
StorageException

getHourMetricsTable

public CloudTable getHourMetricsTable(StorageService service)

特定のストレージ サービスの時間メトリック テーブルを取得します。

Parameters:

service - StorageService使用するストレージ サービスを示す列挙値。

Returns:

CloudTableストレージ サービスの オブジェクト。

Throws:

URISyntaxException
StorageException

getHourMetricsTable

public CloudTable getHourMetricsTable(StorageService service, StorageLocation location)

特定のストレージ サービスの時間メトリック テーブルを取得します。

Parameters:

service - StorageService使用するストレージ サービスを示す列挙値。
location - StorageLocation使用するストレージの場所を示す列挙値。

Returns:

CloudTableストレージ サービスの オブジェクト。

Throws:

URISyntaxException
StorageException

getLogDirectory

public CloudBlobDirectory getLogDirectory(StorageService service)

特定の CloudBlobDirectory ストレージ サービスのログの オブジェクトを取得します。

Parameters:

service - StorageService使用するストレージ サービスを示す列挙値。

Returns:

CloudBlobDirectory オブジェクト。

Throws:

URISyntaxException
StorageException

getMinuteMetricsTable

public CloudTable getMinuteMetricsTable(StorageService service)

特定のストレージ サービスの分単位のメトリック テーブルを取得します。

Parameters:

service - StorageService使用するストレージ サービスを示す列挙値。

Returns:

CloudTableストレージ サービスの オブジェクト。

Throws:

URISyntaxException
StorageException

getMinuteMetricsTable

public CloudTable getMinuteMetricsTable(StorageService service, StorageLocation location)

特定のストレージ サービスの分単位のメトリック テーブルを取得します。

Parameters:

service - StorageService使用するストレージ サービスを示す列挙値。
location - StorageLocation使用するストレージの場所を示す列挙値。

Returns:

CloudTableストレージ サービスの オブジェクト。

Throws:

URISyntaxException
StorageException

listLogBlobs

public Iterable listLogBlobs(StorageService service)

遅延取得されたログ BLOB の列挙可能なコレクションを返します。

Parameters:

service - StorageService使用するストレージ サービスを示す列挙値。

Returns:

を実装 ListBlobItem し、遅延で取得するオブジェクトの列挙可能なコレクション。

Throws:

URISyntaxException
StorageException

listLogBlobs

public Iterable listLogBlobs(StorageService service, Date startTime, Date endTime, EnumSet operations, BlobListingDetails details, BlobRequestOptions options, OperationContext operationContext)

遅延取得されたログ BLOB の列挙可能なコレクションを返します。

Parameters:

service - StorageService使用するストレージ サービスを示す列挙値。
startTime - java.util.Dateログを取得する必要がある時間範囲の開始を表す オブジェクト。
endTime - java.util.Dateログを取得する時間範囲の終わりを表す オブジェクト。
operations - LoggingOperations返すログの種類を示す列挙セット。
details - BlobListingDetails BLOB メタデータを返す必要があるかどうかを示す列挙セット。 None または METADATA だけが有効な値です。
options - 要求の追加オプションを指定する BlobRequestOptions オブジェクトです。
operationContext - 現在の操作のコンテキストを表す OperationContext オブジェクトです。

Returns:

を実装 ListBlobItem し、遅延で取得するオブジェクトの列挙可能なコレクション。

Throws:

StorageException
URISyntaxException

listLogRecords

public Iterable listLogRecords(StorageService service)

遅延取得されたログ レコードの列挙可能なコレクションを返します。

Parameters:

service - StorageService使用するストレージ サービスを示す列挙値。

Returns:

を実装 ListBlobItem し、遅延で取得するオブジェクトの列挙可能なコレクション。

Throws:

URISyntaxException
StorageException

listLogRecords

public Iterable listLogRecords(StorageService service, Date startTime, Date endTime, BlobRequestOptions options, OperationContext operationContext)

遅延取得されたログ レコードの列挙可能なコレクションを返します。

Parameters:

service - StorageService使用するストレージ サービスを示す列挙値。
startTime - java.util.Dateログを取得する必要がある時間範囲の開始を表す オブジェクト。
endTime - java.util.Dateログを取得する時間範囲の終わりを表す オブジェクト。
options - 要求の追加オプションを指定する BlobRequestOptions オブジェクトです。
operationContext - 現在の操作のコンテキストを表す OperationContext オブジェクトです。

Returns:

を実装 ListBlobItem し、遅延で取得するオブジェクトの列挙可能なコレクション。

Throws:

StorageException
URISyntaxException

parseLogBlob

public static Iterable parseLogBlob(ListBlobItem logBlob)

遅延取得されたログ レコードの列挙可能なコレクションを返します。

Parameters:

logBlob - LogRecords を解析する 1 つの BLOB。

Returns:

を実装 LogRecord し、遅延で取得するオブジェクトの列挙可能なコレクション。

parseLogBlobs

public static Iterable parseLogBlobs(Iterable logBlobs)

遅延取得されたログ レコードの列挙可能なコレクションを返します。

Parameters:

logBlobs - Iterable LogRecords を解析する BLOB の 。

Returns:

を実装 LogRecord し、遅延で取得するオブジェクトの列挙可能なコレクション。

適用対象