private boolean isVolunteering() {
    return primaryState == VOLUNTEERING_HOSTING;
  }
Returns true if this member is currently volunteering for primary.

@return true if this member is currently volunteering for primary
geode-core/src/main/java/org/apache/geode/internal/cache/BucketAdvisor.java