VMware GemFire Java API Reference
Package org.apache.geode.admin
Interface SystemMemberCache
-
@Deprecated public interface SystemMemberCache
Deprecated.as of 7.0 use themanagementpackage insteadAdministrative interface that represent's theSystemMember's view of itsCache.- Since:
- GemFire 3.5
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description SystemMemberCacheServeraddCacheServer()Deprecated.Adds a new, unstarted cache server that will serve the contents of this cache to clients.SystemMemberRegioncreateRegion(String name, RegionAttributes attrs)Deprecated.Creates a rootRegionin this cache.SystemMemberRegioncreateVMRegion(String name, RegionAttributes attrs)Deprecated.as of GemFire 5.0, usecreateRegion(java.lang.String, org.apache.geode.cache.RegionAttributes)insteadSystemMemberCacheServer[]getCacheServers()Deprecated.Returns the cache servers that run in this member's VM.intgetId()Deprecated.Value that uniquely identifies an instance of a cache for a given member.intgetLockLease()Deprecated.Gets the length, in seconds, of distributed lock leases obtained by this cache.intgetLockTimeout()Deprecated.Gets the number of seconds a cache operation will wait to obtain a distributed lock lease.StringgetName()Deprecated.The name of the cache.SystemMemberRegiongetRegion(String path)Deprecated.Return the existing region (or subregion) with the specified path that already exists in the cache.SetgetRootRegionNames()Deprecated.Returns the names of all the root regions currently in this cache.intgetSearchTimeout()Deprecated.Gets the number of seconds a cachegetoperation can spend searching for a value before it times out.Statistic[]getStatistics()Deprecated.Returns statistics related to this cache's performance.intgetUpTime()Deprecated.Returns number of seconds since this member's cache has been created.booleanisClosed()Deprecated.Indicates if this cache has been closed.booleanisServer()Deprecated.Returns whether or not this cache acts as a server.voidrefresh()Deprecated.Updates the state of this cache instance.voidsetLockLease(int seconds)Deprecated.Sets the length, in seconds, of distributed lock leases obtained by this cache.voidsetLockTimeout(int seconds)Deprecated.Sets the number of seconds a cache operation may wait to obtain a distributed lock lease before timing out.voidsetSearchTimeout(int seconds)Deprecated.Sets the number of seconds a cache get operation can spend searching for a value.
-
-
-
Method Detail
-
getName
String getName()
Deprecated.The name of the cache.- Returns:
- the name of the cache
-
getId
int getId()
Deprecated.Value that uniquely identifies an instance of a cache for a given member.- Returns:
- the value that uniquely identifies an instance of a cache for a given member
-
isClosed
boolean isClosed()
Deprecated.Indicates if this cache has been closed.- Returns:
- true, if this cache is closed; false, otherwise
-
getLockTimeout
int getLockTimeout()
Deprecated.Gets the number of seconds a cache operation will wait to obtain a distributed lock lease.- Returns:
- the number of seconds a cache operation may wait to obtain a distributed lock lease before timing out
-
setLockTimeout
void setLockTimeout(int seconds) throws AdminExceptionDeprecated.Sets the number of seconds a cache operation may wait to obtain a distributed lock lease before timing out.- Parameters:
seconds- the number of seconds a cache operation may wait to obtain a distributed lock lease before timing out- Throws:
AdminException- If a problem is encountered while setting the lock timeout- See Also:
Cache.setLockTimeout(int)
-
getLockLease
int getLockLease()
Deprecated.Gets the length, in seconds, of distributed lock leases obtained by this cache.- Returns:
- the length, in seconds, of distributed lock leases obtained by this cache
-
setLockLease
void setLockLease(int seconds) throws AdminExceptionDeprecated.Sets the length, in seconds, of distributed lock leases obtained by this cache.- Parameters:
seconds- the length, in seconds, of distributed lock leases obtained by this cache- Throws:
AdminException- If a problem is encountered while setting the lock lease- See Also:
Cache.setLockLease(int)
-
getSearchTimeout
int getSearchTimeout()
Deprecated.Gets the number of seconds a cachegetoperation can spend searching for a value before it times out. The search includes any time spent loading the object. When the search times out it causes the get to fail by throwing an exception.- Returns:
- the number of seconds a cache get operation can spend searching for a value
-
setSearchTimeout
void setSearchTimeout(int seconds) throws AdminExceptionDeprecated.Sets the number of seconds a cache get operation can spend searching for a value.- Parameters:
seconds- the number of seconds a cache get operation can spend searching for a value- Throws:
AdminException- If a problem is encountered while setting the search timeout- See Also:
Cache.setSearchTimeout(int)
-
getUpTime
int getUpTime()
Deprecated.Returns number of seconds since this member's cache has been created. Returns-1if this member does not have a cache or its cache has been closed.- Returns:
- number of seconds since this member's cache has been created
-
getRootRegionNames
Set getRootRegionNames()
Deprecated.Returns the names of all the root regions currently in this cache.- Returns:
- he names of all the root regions currently in this cache
-
getStatistics
Statistic[] getStatistics()
Deprecated.Returns statistics related to this cache's performance.- Returns:
- statistics related to this cache's performance
-
getRegion
SystemMemberRegion getRegion(String path) throws AdminException
Deprecated.Return the existing region (or subregion) with the specified path that already exists in the cache. Whether or not the path starts with a forward slash it is interpreted as a full path starting at a root.- Parameters:
path- the path to the region- Returns:
- the Region or null if not found
- Throws:
IllegalArgumentException- if path is null, the empty string, or "/"AdminException- If the region cannot be retrieved
-
createVMRegion
@Deprecated SystemMemberRegion createVMRegion(String name, RegionAttributes attrs) throws AdminException
Deprecated.as of GemFire 5.0, usecreateRegion(java.lang.String, org.apache.geode.cache.RegionAttributes)insteadCreates a VM rootRegionin this cache.- Parameters:
name- The name of the region to createattrs- The attributes of the root region- Returns:
- the newly created VM root
Region - Throws:
AdminException- If the region cannot be created- Since:
- GemFire 4.0
-
createRegion
SystemMemberRegion createRegion(String name, RegionAttributes attrs) throws AdminException
Deprecated.Creates a rootRegionin this cache.- Parameters:
name- The name of the region to createattrs- The attributes of the root region- Returns:
- the newly created
Region - Throws:
AdminException- If the region cannot be created- Since:
- GemFire 5.0
-
refresh
void refresh()
Deprecated.Updates the state of this cache instance. Note that once a cache instance is closed refresh will never change the state of that instance.
-
addCacheServer
SystemMemberCacheServer addCacheServer() throws AdminException
Deprecated.Adds a new, unstarted cache server that will serve the contents of this cache to clients.- Returns:
- the newly started cache server
- Throws:
AdminException- if an exception is encountered- Since:
- GemFire 5.7
- See Also:
Cache.addCacheServer()
-
getCacheServers
SystemMemberCacheServer[] getCacheServers() throws AdminException
Deprecated.Returns the cache servers that run in this member's VM. Note that this list will not be updated untilrefresh()is called.- Returns:
- the cache servers that run in this member's VM
- Throws:
AdminException- if an exception is encountered- Since:
- GemFire 5.7
- See Also:
Cache.getCacheServers()
-
isServer
boolean isServer() throws AdminExceptionDeprecated.Returns whether or not this cache acts as a server. This method will always returntruefor theSystemMemberCacheobtained from aCacheServer. Note that this value will not be updated untilrefresh()is invoked.- Returns:
- whether this cache acts as a server
- Throws:
AdminException- if an exception is encountered- Since:
- GemFire 4.0
-
-