Gemfire JavaDocs_test
Package org.apache.geode.cache
Class RequiredRoles
- java.lang.Object
-
- org.apache.geode.cache.RequiredRoles
-
@Deprecated public class RequiredRoles extends java.lang.Object
Deprecated.this feature is scheduled to be removedProvides information on presence or absence of aRegion
's required roles. Configuration of required roles is accomplished using theRegion
'sMembershipAttributes
. ARole
may be present in the distributed system even if it theRole
is not present in theRegion
membership. This would occur if none of the members filling thatRole
currently have aCache
or the specificRegion
created. In this case theRole
is considered to be absent for thatRegion
.- See Also:
Role
-
-
Constructor Summary
Constructors Constructor Description RequiredRoles()
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static java.util.Set<Role>
checkForRequiredRoles(Region<?,?> region)
Deprecated.Returns a set of any currently missing required roles for the specified region.static boolean
isRoleInRegionMembership(Region<?,?> region, Role role)
Deprecated.static java.util.Set<Role>
waitForRequiredRoles(Region<?,?> region, long timeout)
Deprecated.Returns a set of any currently missing required roles for the specified region.
-
-
-
Method Detail
-
checkForRequiredRoles
public static java.util.Set<Role> checkForRequiredRoles(Region<?,?> region)
Deprecated.Returns a set of any currently missing required roles for the specified region. If the region is not configured to require roles an empty set will always be returned.- Parameters:
region
- the region to check for missing required roles- Returns:
- set of required roles that are currently missing
- Throws:
java.lang.IllegalStateException
- if region is not configured with required roles
-
waitForRequiredRoles
public static java.util.Set<Role> waitForRequiredRoles(Region<?,?> region, long timeout) throws java.lang.InterruptedException
Deprecated.Returns a set of any currently missing required roles for the specified region. This will wait the specified timeout in milliseconds for any missing required roles to be filled. If there are no missing required roles or if the region is not configured to require any roles then an empty set will immediately be returned.- Parameters:
region
- the region to check for missing required rolestimeout
- milliseconds to wait for any missing required roles- Returns:
- set of required roles that are currently missing
- Throws:
java.lang.NullPointerException
- if region is nulljava.lang.InterruptedException
- if thread is interrupted while waitingjava.lang.IllegalStateException
- if region is not configured with required roles
-
-