geode-core/src/main/java/org/apache/geode/admin/internal/MemberHealthEvaluator.java
private void checkCacheRequiredRolesMeet(List status) {
    // will have to call here okayHealth() or poorHealth()

    try {
      InternalCache cache = (InternalCache) CacheFactory.getAnyInstance();
      CachePerfStats cPStats = cache.getCachePerfStats();

      if (cPStats.getReliableRegionsMissingFullAccess() > 0) {
        // health is okay.
        int numRegions = cPStats.getReliableRegionsMissingFullAccess();
        status.add(okayHealth(
            LocalizedStrings.MemberHealthEvaluator_THERE_ARE_0_REGIONS_MISSING_REQUIRED_ROLES_BUT_ARE_CONFIGURED_FOR_FULL_ACCESS
                .toLocalizedString(numRegions)));
      } else if (cPStats.getReliableRegionsMissingLimitedAccess() > 0) {
        // health is poor
        int numRegions = cPStats.getReliableRegionsMissingLimitedAccess();
        status.add(poorHealth(
            LocalizedStrings.MemberHealthEvaluator_THERE_ARE_0_REGIONS_MISSING_REQUIRED_ROLES_AND_CONFIGURED_WITH_LIMITED_ACCESS
                .toLocalizedString(numRegions)));
      } else if (cPStats.getReliableRegionsMissingNoAccess() > 0) {
        // health is poor
        int numRegions = cPStats.getReliableRegionsMissingNoAccess();
        status.add(poorHealth(
            LocalizedStrings.MemberHealthEvaluator_THERE_ARE_0_REGIONS_MISSING_REQUIRED_ROLES_AND_CONFIGURED_WITHOUT_ACCESS
                .toLocalizedString(numRegions)));
      }
    } catch (CancelException ignore) {
    }
  }
/**
   * The function keeps updating the health of the cache based on roles required by the regions and
   * their reliability policies.
   */
The function keeps updating the health of the cache based on roles required by the regions and
their reliability policies.
The function keeps updating the health of the cache based on roles required by the regions and their reliability policies .
private void checkCacheRequiredRolesMeet(List status) {
    try {
      InternalCache cache = (InternalCache) CacheFactory.getAnyInstance();
      CachePerfStats cPStats = cache.getCachePerfStats();
      if (cPStats.getReliableRegionsMissingFullAccess() > 0) {
        int numRegions = cPStats.getReliableRegionsMissingFullAccess();
        status.add(okayHealth(
            LocalizedStrings.MemberHealthEvaluator_THERE_ARE_0_REGIONS_MISSING_REQUIRED_ROLES_BUT_ARE_CONFIGURED_FOR_FULL_ACCESS
                .toLocalizedString(numRegions)));
      } else if (cPStats.getReliableRegionsMissingLimitedAccess() > 0) {
        int numRegions = cPStats.getReliableRegionsMissingLimitedAccess();
        status.add(poorHealth(
            LocalizedStrings.MemberHealthEvaluator_THERE_ARE_0_REGIONS_MISSING_REQUIRED_ROLES_AND_CONFIGURED_WITH_LIMITED_ACCESS
                .toLocalizedString(numRegions)));
      } else if (cPStats.getReliableRegionsMissingNoAccess() > 0) {
        int numRegions = cPStats.getReliableRegionsMissingNoAccess();
        status.add(poorHealth(
            LocalizedStrings.MemberHealthEvaluator_THERE_ARE_0_REGIONS_MISSING_REQUIRED_ROLES_AND_CONFIGURED_WITHOUT_ACCESS
                .toLocalizedString(numRegions)));
      }
    } catch (CancelException ignore) {
    }
  }
private void checkCacheRequiredRolesMeet ( List status ) { try { InternalCache cache = ( InternalCache ) CacheFactory . getAnyInstance ( ) ; CachePerfStats cPStats = cache . getCachePerfStats ( ) ; if ( cPStats . getReliableRegionsMissingFullAccess ( ) > 0 ) { int numRegions = cPStats . getReliableRegionsMissingFullAccess ( ) ; status . add ( okayHealth ( LocalizedStrings . MemberHealthEvaluator_THERE_ARE_0_REGIONS_MISSING_REQUIRED_ROLES_BUT_ARE_CONFIGURED_FOR_FULL_ACCESS . toLocalizedString ( numRegions ) ) ) ; } else if ( cPStats . getReliableRegionsMissingLimitedAccess ( ) > 0 ) { int numRegions = cPStats . getReliableRegionsMissingLimitedAccess ( ) ; status . add ( poorHealth ( LocalizedStrings . MemberHealthEvaluator_THERE_ARE_0_REGIONS_MISSING_REQUIRED_ROLES_AND_CONFIGURED_WITH_LIMITED_ACCESS . toLocalizedString ( numRegions ) ) ) ; } else if ( cPStats . getReliableRegionsMissingNoAccess ( ) > 0 ) { int numRegions = cPStats . getReliableRegionsMissingNoAccess ( ) ; status . add ( poorHealth ( LocalizedStrings . MemberHealthEvaluator_THERE_ARE_0_REGIONS_MISSING_REQUIRED_ROLES_AND_CONFIGURED_WITHOUT_ACCESS . toLocalizedString ( numRegions ) ) ) ; } } catch ( CancelException ignore ) { } }
The function keeps updating the health of the cache based on roles required by the regions and
 their reliability policies.
The function keeps updating the health of the cache based on roles required by the regions and their reliability policies .
// will have to call here okayHealth() or poorHealth() // health is okay. // health is poor // health is poor