Class CacheResourceV2
java.lang.Object
org.infinispan.rest.resources.BaseCacheResource
org.infinispan.rest.resources.CacheResourceV2
- All Implemented Interfaces:
ResourceHandler
- Direct Known Subclasses:
CacheResourceV3
REST resource to manage the caches.
- Since:
- 10.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.infinispan.registry.InternalCacheRegistryprotected static final Stringprotected final ParserRegistryprotected final ServerStateManagerprotected static final int -
Constructor Summary
ConstructorsConstructorDescriptionCacheResourceV2(InvocationHelper invocationHelper, InfinispanTelemetry telemetryService) -
Method Summary
Modifier and TypeMethodDescriptionprotected CompletionStage<RestResponse> addSourceConnection(RestRequest request) protected CompletionStage<RestResponse> assignAlias(RestRequest request) protected CompletionStage<RestResponse> cacheExists(RestRequest request) protected CompletionStage<RestResponse> compare(RestRequest request) protected CompletionStage<RestResponse> convert(RestRequest request) protected CompletionStage<RestResponse> deleteSourceConnection(RestRequest request) protected CompletionStage<RestResponse> getAllDetails(RestRequest request) protected CompletionStage<RestResponse> getCacheAvailability(RestRequest request) protected CompletionStage<RestResponse> getCacheConfig(RestRequest request) protected CompletionStage<RestResponse> protected CompletionStage<RestResponse> protected CompletionStage<RestResponse> getCacheDistribution(RestRequest request) protected CompletionStage<RestResponse> getCacheHealth(RestRequest request) protected CompletionStage<RestResponse> getCacheNames(RestRequest request) protected CompletionStage<RestResponse> getCacheNamesPerRole(RestRequest request) protected CompletionStage<RestResponse> getCaches(RestRequest request) protected CompletionStage<RestResponse> getCacheStats(RestRequest request) protected RestResponsegetDetailResponse(RestRequest request, Cache<?, ?> cache, boolean pretty) Return theInvocationshandled by this ResourceHandler.protected CompletionStage<RestResponse> getKeyDistribution(RestRequest request) protected CompletionStage<RestResponse> getSize(RestRequest request) protected CompletionStage<RestResponse> getSourceConnection(RestRequest request) protected CompletionStage<RestResponse> hasSourceConnections(RestRequest request) protected CompletionStage<RestResponse> reinitializeCache(RestRequest request) protected CompletionStage<RestResponse> removeCache(RestRequest request) protected CompletionStage<RestResponse> resetCacheStats(RestRequest request) protected CompletionStage<RestResponse> setCacheAvailability(RestRequest request) protected CompletionStage<RestResponse> protected CompletionStage<RestResponse> setRebalancing(boolean enable, RestRequest request) protected CompletionStage<RestResponse> streamEntries(RestRequest request) protected CompletionStage<RestResponse> streamKeys(RestRequest request) protected CompletionStage<RestResponse> syncData(RestRequest request) Methods inherited from class BaseCacheResource
keyDistribution, putValueToCache
-
Field Details
-
STREAM_BATCH_SIZE
protected static final int STREAM_BATCH_SIZE- See Also:
-
MIGRATOR_NAME
- See Also:
-
parserRegistry
-
internalCacheRegistry
protected final org.infinispan.registry.InternalCacheRegistry internalCacheRegistry -
serverStateManager
-
-
Constructor Details
-
CacheResourceV2
-
-
Method Details
-
getInvocations
Description copied from interface:ResourceHandlerReturn theInvocationshandled by this ResourceHandler.- Specified by:
getInvocationsin interfaceResourceHandler
-
getCaches
-
getSourceConnection
-
hasSourceConnections
-
deleteSourceConnection
-
addSourceConnection
-
syncData
-
convert
-
compare
-
streamKeys
-
streamEntries
-
removeCache
-
cacheExists
-
getCacheStats
-
resetCacheStats
-
getCacheDistribution
-
getKeyDistribution
-
getAllDetails
-
getDetailResponse
-
getCacheConfig
-
getCacheAvailability
-
setCacheAvailability
-
getCacheConfigMutableAttributes
-
getCacheConfigMutableAttribute
-
setCacheConfigMutableAttribute
-
assignAlias
-
getSize
-
getCacheNames
protected CompletionStage<RestResponse> getCacheNames(RestRequest request) throws RestResponseException - Throws:
RestResponseException
-
getCacheHealth
protected CompletionStage<RestResponse> getCacheHealth(RestRequest request) throws RestResponseException - Throws:
RestResponseException
-
setRebalancing
-
reinitializeCache
-
getCacheNamesPerRole
protected CompletionStage<RestResponse> getCacheNamesPerRole(RestRequest request) throws RestResponseException - Throws:
RestResponseException
-