Package org.apache.geode.admin
Interface SystemMemberCache
Deprecated.
Administrative interface that represent's the
SystemMember's view of its
Cache.- Since:
- GemFire 3.5
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Adds a new, unstarted cache server that will serve the contents of this cache to clients.createRegion(String name, RegionAttributes attrs) Deprecated.Creates a rootRegionin this cache.createVMRegion(String name, RegionAttributes attrs) Deprecated.as of GemFire 5.0, usecreateRegion(java.lang.String, org.apache.geode.cache.RegionAttributes)insteadDeprecated.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.intDeprecated.Gets the length, in seconds, of distributed lock leases obtained by this cache.intDeprecated.Gets the number of seconds a cache operation will wait to obtain a distributed lock lease.getName()Deprecated.The name of the cache.Deprecated.Return the existing region (or subregion) with the specified path that already exists in the cache.Deprecated.Returns the names of all the root regions currently in this cache.intDeprecated.Gets the number of seconds a cachegetoperation can spend searching for a value before it times out.Deprecated.Returns statistics related to this cache's performance.intDeprecated.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 Details
-
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
Deprecated.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:
-
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
Deprecated.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:
-
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
Deprecated.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:
-
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
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
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
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:
-
getCacheServers
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:
-
isServer
Deprecated.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
-
managementpackage instead