Class ListBookieInfoService

  • All Implemented Interfaces:
    org.apache.bookkeeper.http.service.HttpEndpointService

    public class ListBookieInfoService
    extends java.lang.Object
    implements org.apache.bookkeeper.http.service.HttpEndpointService
    HttpEndpointService that handle Bookkeeper list bookie info related http request.

    The GET method will get the disk usage of all bookies in this bookkeeper cluster. Output would be like this: { "bookieAddress" : {free: xxx, total: xxx}", "bookieAddress" : {free: xxx, total: xxx}, ... "clusterInfo" : {total_free: xxx, total: xxx}" }

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected ServerConfiguration conf  
      (package private) static org.slf4j.Logger LOG  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) java.lang.String getReadable​(long val)  
      org.apache.bookkeeper.http.service.HttpServiceResponse handle​(org.apache.bookkeeper.http.service.HttpServiceRequest request)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getReadable

        java.lang.String getReadable​(long val)
      • handle

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