public boolean isHosting() {
    final byte primaryState = this.primaryState;
    return primaryState == NO_PRIMARY_HOSTING || primaryState == OTHER_PRIMARY_HOSTING
        || primaryState == VOLUNTEERING_HOSTING || primaryState == BECOMING_HOSTING
        || primaryState == IS_PRIMARY_HOSTING;
  }
Returns true if this member is currently hosting real bucket.

@return true if this member is currently hosting real bucket
geode-core/src/main/java/org/apache/geode/internal/cache/BucketAdvisor.java