Class FunctionGemfireAdminTemplate
java.lang.Object
org.springframework.data.gemfire.config.admin.AbstractGemfireAdminOperations
org.springframework.data.gemfire.config.admin.remote.FunctionGemfireAdminTemplate
- All Implemented Interfaces:
GemfireAdminOperations
- Direct Known Subclasses:
RestHttpGemfireAdminTemplate
The
FunctionGemfireAdminTemplate
class is an implementation of the GemfireAdminOperations
interface
supporting the Pivotal GemFire / Apache Geode administrative functions/operations via Function
execution
in the cluster.
Note: any schema changing functionality (e.g. createRegion(RegionDefinition)
) does not get recorded by
the GemFire/Geode Cluster Configuration Service using this strategy.- Since:
- 2.0.0
- See Also:
-
ClientCache
Function
ListRegionsOnServerFunction
AbstractGemfireAdminOperations
GemfireOnServersFunctionTemplate
-
Field Summary
Fields inherited from class org.springframework.data.gemfire.config.admin.AbstractGemfireAdminOperations
NOT_IMPLEMENTED
-
Constructor Summary
ConstructorDescriptionFunctionGemfireAdminTemplate
(org.apache.geode.cache.client.ClientCache clientCache) Constructs a new instance of theFunctionGemfireAdminTemplate
initialized with aClientCache
instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
createIndex
(IndexDefinition indexDefinition) void
createRegion
(RegionDefinition regionDefinition) Creates a cacheRegion
based on the givenschema object definition
.Lists all availableRegions
configured for all servers in the remote Pivotal GemFire / Apache Geode cluster.protected org.apache.geode.cache.client.ClientCache
Returns a reference to the configuredClientCache
instance.protected GemfireFunctionOperations
protected GemfireFunctionOperations
newGemfireFunctionOperations
(org.apache.geode.cache.client.ClientCache clientCache) Methods inherited from class org.springframework.data.gemfire.config.admin.AbstractGemfireAdminOperations
createDiskStore, createLuceneIndex
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.gemfire.config.admin.GemfireAdminOperations
createDiskStores, createDiskStores, createIndexes, createIndexes, createLuceneIndexes, createLuceneIndexes, createRegions, createRegions
-
Constructor Details
-
FunctionGemfireAdminTemplate
public FunctionGemfireAdminTemplate(org.apache.geode.cache.client.ClientCache clientCache) Constructs a new instance of theFunctionGemfireAdminTemplate
initialized with aClientCache
instance.- Parameters:
clientCache
- reference to aClientCache
instance.- Throws:
IllegalArgumentException
- ifClientCache
is null.- See Also:
-
ClientCache
-
-
Method Details
-
getClientCache
protected org.apache.geode.cache.client.ClientCache getClientCache()Returns a reference to the configuredClientCache
instance.- Returns:
- a reference to the configured
ClientCache
instance. - See Also:
-
ClientCache
-
getAvailableServerRegions
Lists all availableRegions
configured for all servers in the remote Pivotal GemFire / Apache Geode cluster.- Specified by:
getAvailableServerRegions
in interfaceGemfireAdminOperations
- Overrides:
getAvailableServerRegions
in classAbstractGemfireAdminOperations
- Returns:
- an
Iterable
of servers-sideRegion
names for allRegions
defined across all servers in the remote GemFire/Geode cluster. - See Also:
-
getAvailableServerRegionIndexes
- Specified by:
getAvailableServerRegionIndexes
in interfaceGemfireAdminOperations
- Overrides:
getAvailableServerRegionIndexes
in classAbstractGemfireAdminOperations
- Returns:
- an
Iterable
of all the serverRegion
Indexes
. - See Also:
-
Index.getName()
Iterable
-
createRegion
Description copied from class:AbstractGemfireAdminOperations
Creates a cacheRegion
based on the givenschema object definition
.- Specified by:
createRegion
in interfaceGemfireAdminOperations
- Overrides:
createRegion
in classAbstractGemfireAdminOperations
- Parameters:
regionDefinition
-RegionDefinition
encapsulating configuration meta-data defining a cacheRegion
.- See Also:
-
RegionDefinition
GemFireCache
Region
-
createIndex
Description copied from class:AbstractGemfireAdminOperations
- Specified by:
createIndex
in interfaceGemfireAdminOperations
- Overrides:
createIndex
in classAbstractGemfireAdminOperations
- Parameters:
indexDefinition
-IndexDefinition
encapsulating the configuration meta-data defining aRegion
OQLIndex
.- See Also:
-
IndexDefinition
Index
Region
-
newGemfireFunctionOperations
-
newGemfireFunctionOperations
protected GemfireFunctionOperations newGemfireFunctionOperations(org.apache.geode.cache.client.ClientCache clientCache)
-