Class ClusterInfoService

java.lang.Object
org.apache.bookkeeper.server.http.service.ClusterInfoService
All Implemented Interfaces:
org.apache.bookkeeper.http.service.HttpEndpointService

public class ClusterInfoService extends Object implements org.apache.bookkeeper.http.service.HttpEndpointService
HttpEndpointService that exposes the current info about the cluster of bookies.
 
 {
  "hasAuditorElected" : true,
  "auditorId" : "blah",
  "hasUnderReplicatedLedgers": false,
  "isLedgerReplicationEnabled": true,
  "totalBookiesCount": 10,
  "writableBookiesCount": 6,
  "readonlyBookiesCount": 3,
  "unavailableBookiesCount": 1
 }
 
 
  • Constructor Details

  • Method Details

    • handle

      public org.apache.bookkeeper.http.service.HttpServiceResponse handle(org.apache.bookkeeper.http.service.HttpServiceRequest request) throws Exception
      Specified by:
      handle in interface org.apache.bookkeeper.http.service.HttpEndpointService
      Throws:
      Exception