@GET
  @Path(GET_INFO)
  @ReturnType("alluxio.wire.AlluxioMasterInfo")
  public Response getInfo(@QueryParam(QUERY_RAW_CONFIGURATION) final Boolean rawConfiguration) {
    // TODO(jiri): Add a mechanism for retrieving only a subset of the fields.
    return RestUtils.call(() -> {
      boolean rawConfig = false;
      if (rawConfiguration != null) {
        rawConfig = rawConfiguration;
      }
      return new AlluxioMasterInfo().setCapacity(getCapacityInternal())
          .setConfiguration(getConfigurationInternal(rawConfig))
          .setLostWorkers(mBlockMaster.getLostWorkersInfoList()).setMetrics(getMetricsInternal())
          .setMountPoints(getMountPointsInternal())
          .setRpcAddress(mMasterProcess.getRpcAddress().toString())
          .setStartTimeMs(mMasterProcess.getStartTimeMs())
          .setTierCapacity(getTierCapacityInternal()).setUfsCapacity(getUfsCapacityInternal())
          .setUptimeMs(mMasterProcess.getUptimeMs()).setVersion(RuntimeConstants.VERSION)
          .setWorkers(mBlockMaster.getWorkerInfoList());
    }, ServerConfiguration.global());
  }
@ GET @ Path ( GET_INFO ) @ ReturnType ( "alluxio.wire.AlluxioMasterInfo" ) public Response getInfo ( @ QueryParam ( QUERY_RAW_CONFIGURATION ) final Boolean rawConfiguration ) { return RestUtils . call ( ( ) -> { boolean rawConfig = false ; if ( rawConfiguration != null ) { rawConfig = rawConfiguration ; } return new AlluxioMasterInfo ( ) . setCapacity ( getCapacityInternal ( ) ) . setConfiguration ( getConfigurationInternal ( rawConfig ) ) . setLostWorkers ( mBlockMaster . getLostWorkersInfoList ( ) ) . setMetrics ( getMetricsInternal ( ) ) . setMountPoints ( getMountPointsInternal ( ) ) . setRpcAddress ( mMasterProcess . getRpcAddress ( ) . toString ( ) ) . setStartTimeMs ( mMasterProcess . getStartTimeMs ( ) ) . setTierCapacity ( getTierCapacityInternal ( ) ) . setUfsCapacity ( getUfsCapacityInternal ( ) ) . setUptimeMs ( mMasterProcess . getUptimeMs ( ) ) . setVersion ( RuntimeConstants . VERSION ) . setWorkers ( mBlockMaster . getWorkerInfoList ( ) ) ; } , ServerConfiguration . global ( ) ) ; }
@summary get the Alluxio master information
@param rawConfiguration if it's true, raw configuration values are returned,
otherwise, they are looked up; if it's not provided in URL queries, then
it is null, which means false.
@return the response object