hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/web/client/OzoneRestClient.java
public List<OzoneVolume> listVolumes(String onBehalfOf)
      throws OzoneException {
    return listVolumes(onBehalfOf, null,
        Integer.parseInt(Header.OZONE_DEFAULT_LIST_SIZE), StringUtils.EMPTY);
  }
/**
   * List volumes of the current user or if onBehalfof is not null lists volume
   * owned by that user. You need admin privilege to read other users volume
   * lists.
   *
   * @param onBehalfOf - Name of the user you want to get volume list
   * @return - Volume list.
   * @throws OzoneException
   */
List volumes of the current user or if onBehalfof is not null lists volume
owned by that user. You need admin privilege to read other users volume
lists.

@param onBehalfOf - Name of the user you want to get volume list
@return - Volume list.
List volumes of the current user or if onBehalfof is not null lists volume owned by that user . You need admin privilege to read other users volume lists . @param onBehalfOf - Name of the user you want to get volume list @return - Volume list .
public List<OzoneVolume> listVolumes(String onBehalfOf)
      throws OzoneException {
    return listVolumes(onBehalfOf, null,
        Integer.parseInt(Header.OZONE_DEFAULT_LIST_SIZE), StringUtils.EMPTY);
  }
public List < OzoneVolume > listVolumes ( String onBehalfOf ) throws OzoneException { return listVolumes ( onBehalfOf , null , Integer . parseInt ( Header . OZONE_DEFAULT_LIST_SIZE ) , StringUtils . EMPTY ) ; }
List volumes of the current user or if onBehalfof is not null lists volume
 owned by that user.
List volumes of the current user or if onBehalfof is not null lists volume owned by that user .