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
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classPOJO definition for the cluster info response. -
Constructor Summary
ConstructorsConstructorDescriptionClusterInfoService(@NonNull BookKeeperAdmin bka, @NonNull LedgerManagerFactory ledgerManagerFactory) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.bookkeeper.http.service.HttpServiceResponsehandle(org.apache.bookkeeper.http.service.HttpServiceRequest request)
-
Constructor Details
-
ClusterInfoService
public ClusterInfoService(@NonNull @NonNull BookKeeperAdmin bka, @NonNull @NonNull LedgerManagerFactory ledgerManagerFactory)
-
-
Method Details