public class FunctionGemfireAdminTemplate extends AbstractGemfireAdminOperations
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 Pivotal GemFire/Apache Geode Cluster Configuration Service using this strategy.ClientCache
,
Function
,
ListRegionsOnServerFunction
,
AbstractGemfireAdminOperations
,
GemfireOnServersFunctionTemplate
NOT_IMPLEMENTED
Constructor and Description |
---|
FunctionGemfireAdminTemplate(org.apache.geode.cache.client.ClientCache clientCache)
Constructs a new instance of the
FunctionGemfireAdminTemplate initialized with
a ClientCache instance. |
Modifier and Type | Method and Description |
---|---|
void |
createIndex(IndexDefinition indexDefinition)
|
void |
createRegion(RegionDefinition regionDefinition)
Creates a cache
Region based on the given schema object definition . |
Iterable<String> |
getAvailableServerRegionIndexes()
|
Iterable<String> |
getAvailableServerRegions()
Lists all available
Regions configured for all servers in the remote Pivotal GemFire
/ Apache Geode cluster. |
protected org.apache.geode.cache.client.ClientCache |
getClientCache()
Returns a reference to the configured
ClientCache instance. |
protected GemfireFunctionOperations |
newGemfireFunctionOperations() |
protected GemfireFunctionOperations |
newGemfireFunctionOperations(org.apache.geode.cache.client.ClientCache clientCache) |
createDiskStore, createLuceneIndex
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createDiskStores, createDiskStores, createIndexes, createIndexes, createLuceneIndexes, createLuceneIndexes, createRegions, createRegions
public FunctionGemfireAdminTemplate(org.apache.geode.cache.client.ClientCache clientCache)
FunctionGemfireAdminTemplate
initialized with
a ClientCache
instance.clientCache
- reference to a ClientCache
instance.IllegalArgumentException
- if ClientCache
is null.ClientCache
protected org.apache.geode.cache.client.ClientCache getClientCache()
ClientCache
instance.ClientCache
instance.ClientCache
public Iterable<String> getAvailableServerRegions()
Regions
configured for all servers in the remote Pivotal GemFire
/ Apache Geode cluster.getAvailableServerRegions
in interface GemfireAdminOperations
getAvailableServerRegions
in class AbstractGemfireAdminOperations
Iterable
of servers-side Region
names for all Regions
defined
across all servers in the remote Pivotal GemFire/Apache Geode cluster.Iterable
public Iterable<String> getAvailableServerRegionIndexes()
getAvailableServerRegionIndexes
in interface GemfireAdminOperations
getAvailableServerRegionIndexes
in class AbstractGemfireAdminOperations
Iterable
of all the server Region
Indexes
.Index.getName()
,
Iterable
public void createRegion(RegionDefinition regionDefinition)
AbstractGemfireAdminOperations
Region
based on the given schema object definition
.createRegion
in interface GemfireAdminOperations
createRegion
in class AbstractGemfireAdminOperations
regionDefinition
- RegionDefinition
encapsulating configuration meta-data defining
a cache Region
.RegionDefinition
,
GemFireCache
,
Region
public void createIndex(IndexDefinition indexDefinition)
AbstractGemfireAdminOperations
createIndex
in interface GemfireAdminOperations
createIndex
in class AbstractGemfireAdminOperations
indexDefinition
- IndexDefinition
encapsulating the configuration meta-data
defining a Region
OQL Index
.IndexDefinition
,
Index
,
Region
protected GemfireFunctionOperations newGemfireFunctionOperations()
protected GemfireFunctionOperations newGemfireFunctionOperations(org.apache.geode.cache.client.ClientCache clientCache)
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.