Class ListLedgerService
- java.lang.Object
-
- org.apache.bookkeeper.server.http.service.ListLedgerService
-
- All Implemented Interfaces:
org.apache.bookkeeper.http.service.HttpEndpointService
public class ListLedgerService extends java.lang.Object implements org.apache.bookkeeper.http.service.HttpEndpointService
HttpEndpointService that handle Bookkeeper list ledger related http request.The GET method will list all ledger_ids in this bookkeeper cluster. User can choose print metadata of each ledger or not by set parameter "print_metadata"
-
-
Field Summary
Fields Modifier and Type Field Description protected ServerConfiguration
conf
protected LedgerManagerFactory
ledgerManagerFactory
(package private) static int
LIST_LEDGER_BATCH_SIZE
(package private) static org.slf4j.Logger
LOG
-
Constructor Summary
Constructors Constructor Description ListLedgerService(ServerConfiguration conf, LedgerManagerFactory ledgerManagerFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
ledgerManagerFactory
protected LedgerManagerFactory ledgerManagerFactory
-
LIST_LEDGER_BATCH_SIZE
static final int LIST_LEDGER_BATCH_SIZE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ListLedgerService
public ListLedgerService(ServerConfiguration conf, LedgerManagerFactory ledgerManagerFactory)
-
-