Class ListBookieInfoService
- java.lang.Object
-
- org.apache.bookkeeper.server.http.service.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
-
Constructor Summary
Constructors Constructor Description ListBookieInfoService(ServerConfiguration conf)
-
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)
-
-
-
Field Detail
-
LOG
static final org.slf4j.Logger LOG
-
conf
protected ServerConfiguration conf
-
-
Constructor Detail
-
ListBookieInfoService
public ListBookieInfoService(ServerConfiguration conf)
-
-
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 interfaceorg.apache.bookkeeper.http.service.HttpEndpointService
- Throws:
java.lang.Exception
-
-