All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.protocol.bookkeeper.admin.jdk.BookkeeperAdminImpl Maven / Gradle / Ivy

The newest version!
package io.github.protocol.bookkeeper.admin.jdk;

public class BookkeeperAdminImpl implements BookkeeperAdmin {
    private final BookiesImpl bookies;

    private final AutoRecovery autoRecovery;

    private final Heartbeat heartbeat;
    BookkeeperAdminImpl(Configuration conf) {
        InnerHttpClient innerHttpClient = new InnerHttpClient(conf);
        this.bookies = new BookiesImpl(innerHttpClient);
        this.autoRecovery = new AutoRecoveryImpl(innerHttpClient);
        this.heartbeat = new HeartbeatImpl(innerHttpClient);
    }

    @Override
    public Bookies bookies() {
        return bookies;
    }

    @Override
    public AutoRecovery autoRecovery() {
        return autoRecovery;
    }

    @Override
    public Heartbeat heartbeat() {
        return heartbeat;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy