@Override
  public long getSegmentCapacity() {
    // Verify service is running.
    validateIfFileStoreIsRunning();
    return segmentSize;
  }
Returns the size of the allocated segment in bytes.
ambry-store/src/main/java/com/github/ambry/store/FileStore.java