public class RestHttpGemfireAdminTemplate extends FunctionGemfireAdminTemplate
RestHttpGemfireAdminTemplate は、GemfireAdminOperations インターフェースを実装するクラスであり、HTTP 経由の管理 REST API インターフェースを使用して Pivotal GemFire または Apache Geode クラスターでの管理 (運用) 操作をサポートするために FunctionGemfireAdminTemplate を継承します。特定の管理 (運用) 操作がサポートされていないか、HTTP 経由の管理 REST API インターフェースに対して実装されていない場合は、フォールバックとして Function 実行が使用されます。HttpURLConnectionSE, URISE, ClientCache, Function, GemfireAdminOperations, FunctionGemfireAdminTemplate, HttpHeaders, HttpMethod, HttpStatus, RequestEntity, ResponseEntity, ClientHttpRequestFactory, ClientHttpRequestInterceptor, SimpleClientHttpRequestFactory, RestOperations, RestTemplate| 修飾子と型 | クラスと説明 |
|---|---|
static class | RestHttpGemfireAdminTemplate.Builder |
static class | RestHttpGemfireAdminTemplate.FollowRedirectsSimpleClientHttpRequestFactory |
| 修飾子と型 | フィールドと説明 |
|---|---|
protected static boolean | DEFAULT_CREATE_REGION_SKIP_IF_EXISTS |
protected static StringSE | DEFAULT_HOST |
protected static boolean | DEFAULT_HTTP_FOLLOW_REDIRECTS |
protected static int | DEFAULT_PORT |
protected static StringSE | DEFAULT_SCHEME |
protected static StringSE | HTTP_SCHEME |
protected static StringSE | HTTPS_SCHEME |
protected static StringSE | MANAGEMENT_REST_API_NO_PORT_URL_TEMPLATE |
protected static StringSE | MANAGEMENT_REST_API_URL_TEMPLATE |
protected static ListSE<StringSE> | VALID_SCHEMES |
NOT_IMPLEMENTED| コンストラクターと説明 |
|---|
RestHttpGemfireAdminTemplate(org.apache.geode.cache.client.ClientCache clientCache)Apache Geode または Pivotal GemFire 管理 REST API インターフェースにアクセスするときに、指定された ClientCache で初期化され、デフォルトの HTTP スキーマ、ホスト、ポートで構成された RestHttpGemfireAdminTemplate の新しいインスタンスを構築します。 |
RestHttpGemfireAdminTemplate(org.apache.geode.cache.client.ClientCache clientCache, StringSE scheme, StringSE host, int port, boolean followRedirects, ListSE<ClientHttpRequestInterceptor> clientHttpRequestInterceptors)Apache Geode または Pivotal GemFire 管理 REST API インターフェースにアクセスするときに、指定された ClientCache で初期化され、指定された HTTP スキーム、ホスト、ポート、リダイレクト、ClientHttpRequestInterceptors で構成された RestHttpGemfireAdminTemplate の新しいインスタンスを構築します。 |
RestHttpGemfireAdminTemplate(org.apache.geode.cache.client.ClientCache clientCache, StringSE scheme, StringSE host, int port, boolean followRedirects, ListSE<ClientHttpRequestInterceptor> clientHttpRequestInterceptors, ListSE<RestTemplateConfigurer> restTemplateConfigurers)Apache Geode または Pivotal GemFire 管理 REST API インターフェースにアクセスするときに、指定された ClientCache で初期化され、指定された HTTP スキーム、ホスト、ポート、リダイレクト、ClientHttpRequestInterceptors で構成された RestHttpGemfireAdminTemplate の新しいインスタンスを構築します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
void | createIndex(IndexDefinition indexDefinition) |
void | createRegion(RegionDefinition regionDefinition) 指定された schema object definition に基づいてキャッシュ Region を作成します。 |
protected StringSE | getManagementRestApiUrl() 解決された Pivotal GemFire/Apache Geode 管理 REST API URL への参照を返します。 |
protected <T extends RestOperations> | getRestOperations()REST API 呼び出しを実行するために使用される RestOperations への参照を返します。 |
protected <T extends ClientHttpRequestFactory> | newClientHttpRequestFactory(boolean followRedirects)HTTP クライアントリクエストを行うために、 ClientHttpRequestFactory の新しいインスタンスを構築します。 |
protected <T extends RestOperations> | newRestOperations(ClientHttpRequestFactory clientHttpRequestFactory, ListSE<ClientHttpRequestInterceptor> clientHttpRequestInterceptors, ListSE<RestTemplateConfigurer> restTemplateConfigurers)HTTP 経由で REST API 操作を実行するために、Spring RestTemplate の新しいインスタンスを構築します。 |
protected URISE | resolveCreateIndexUri() |
protected URISE | resolveCreateRegionUri() |
getAvailableServerRegionIndexes, getAvailableServerRegions, getClientCache, newGemfireFunctionOperations, newGemfireFunctionOperationscreateDiskStore, createLuceneIndexcloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEcreateDiskStores, createDiskStores, createIndexes, createIndexes, createLuceneIndexes, createLuceneIndexes, createRegions, createRegionsprotected static final boolean DEFAULT_CREATE_REGION_SKIP_IF_EXISTS
protected static final boolean DEFAULT_HTTP_FOLLOW_REDIRECTS
protected static final int DEFAULT_PORT
protected static final StringSE MANAGEMENT_REST_API_URL_TEMPLATE
protected static final StringSE MANAGEMENT_REST_API_NO_PORT_URL_TEMPLATE
public RestHttpGemfireAdminTemplate(org.apache.geode.cache.client.ClientCache clientCache)
ClientCache で初期化され、デフォルトの HTTP スキーマ、ホスト、ポートで構成された RestHttpGemfireAdminTemplate の新しいインスタンスを構築します。clientCache - ClientCache への参照。IllegalArgumentExceptionSE - ClientCache が null の場合。RestHttpGemfireAdminTemplate(ClientCache, String, String, int, boolean, List), ClientCachepublic RestHttpGemfireAdminTemplate(org.apache.geode.cache.client.ClientCache clientCache,
StringSE scheme,
StringSE host,
int port,
boolean followRedirects,
ListSE<ClientHttpRequestInterceptor> clientHttpRequestInterceptors)ClientCache で初期化され、指定された HTTP スキーム、ホスト、ポート、リダイレクト、ClientHttpRequestInterceptors で構成された RestHttpGemfireAdminTemplate の新しいインスタンスを構築します。clientCache - ClientCache への参照 scheme - 使用する HTTP スキーム (HTTP または HTTPS など) を指定する StringSE。host - StringSE には、GemFire/Geode マネージャーのホスト名が含まれます。port - GemFire/Geode Manager HTTP サービスが HTTP クライアントをリッスンするポートを指定する整数値。followRedirects - HTTP リダイレクト (HTTP ステータスコード 3xx) に従うかどうかを示すブール値。clientHttpRequestInterceptors - ClientHttpRequestInterceptor の ListSE は、HTTP リクエストと HTTP レスポンスをインターセプトして装飾するために使用されます。IllegalArgumentExceptionSE - ClientCache 参照が null の場合。ClientHttpRequestInterceptor, ClientCachepublic RestHttpGemfireAdminTemplate(org.apache.geode.cache.client.ClientCache clientCache,
StringSE scheme,
StringSE host,
int port,
boolean followRedirects,
ListSE<ClientHttpRequestInterceptor> clientHttpRequestInterceptors,
ListSE<RestTemplateConfigurer> restTemplateConfigurers)ClientCache で初期化され、指定された HTTP スキーム、ホスト、ポート、リダイレクト、ClientHttpRequestInterceptors で構成された RestHttpGemfireAdminTemplate の新しいインスタンスを構築します。clientCache - ClientCache への参照 scheme - 使用する HTTP スキーム (HTTP または HTTPS など) を指定する StringSE。host - StringSE には、GemFire/Geode マネージャーのホスト名が含まれます。port - GemFire/Geode Manager HTTP サービスが HTTP クライアントをリッスンするポートを指定する整数値。followRedirects - HTTP リダイレクト (HTTP ステータスコード 3xx) に従うかどうかを示すブール値。clientHttpRequestInterceptors - ClientHttpRequestInterceptor の ListSE は、HTTP リクエストと HTTP レスポンスをインターセプトして装飾するために使用されます。IllegalArgumentExceptionSE - ClientCache 参照が null の場合。ClientCache, RestTemplateConfigurer, ClientHttpRequestInterceptor, newClientHttpRequestFactory(boolean), newRestOperations(ClientHttpRequestFactory, List, List), resolveManagementRestApiUrl(String, String, int)protected <T extends ClientHttpRequestFactory> T newClientHttpRequestFactory(boolean followRedirects)
ClientHttpRequestFactory の新しいインスタンスを構築します。followRedirects - HTTP リダイレクト (HTTP ステータスコード 3xx) に従うかどうかを示すブール値。ClientHttpRequestFactory。ClientHttpRequestFactoryprotected <T extends RestOperations> T newRestOperations(ClientHttpRequestFactory clientHttpRequestFactory, ListSE<ClientHttpRequestInterceptor> clientHttpRequestInterceptors, ListSE<RestTemplateConfigurer> restTemplateConfigurers)
RestTemplate の新しいインスタンスを構築します。clientHttpRequestFactory - ClientHttpRequestFactory は HTTP リクエストオブジェクトの構築に使用されます。clientHttpRequestInterceptors - ClientHttpRequestInterceptor の ListSE は、HTTP リクエストと HTTP レスポンスをインターセプトして装飾するために使用されます。RestTemplate の新しいインスタンス。ClientHttpRequestInterceptor, SimpleClientHttpRequestFactory, RestOperations, RestTemplateprotected StringSE getManagementRestApiUrl()
StringSE。protected <T extends RestOperations> T getRestOperations()
RestOperations への参照を返します。RestOperations への参照。RestOperationspublic void createIndex(IndexDefinition indexDefinition)
AbstractGemfireAdminOperationsGemfireAdminOperations の createIndex FunctionGemfireAdminTemplate の createIndex indexDefinition - IndexDefinition は、Region OQL Index を定義する構成メタデータをカプセル化します。IndexDefinition, Index, Regionprotected URISE resolveCreateIndexUri()
public void createRegion(RegionDefinition regionDefinition)
AbstractGemfireAdminOperationsschema object definition に基づいてキャッシュ Region を作成します。GemfireAdminOperations の createRegion FunctionGemfireAdminTemplate の createRegion regionDefinition - キャッシュ Region を定義する構成メタデータをカプセル化する RegionDefinition。RegionDefinition, GemFireCache, Regionprotected URISE resolveCreateRegionUri()
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.