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.HttpEndpointServiceHttpEndpointService 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 ServerConfigurationconf(package private) static org.slf4j.LoggerLOG
-
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.StringgetReadable(long val)org.apache.bookkeeper.http.service.HttpServiceResponsehandle(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:
handlein interfaceorg.apache.bookkeeper.http.service.HttpEndpointService- Throws:
java.lang.Exception
-
-