class NodeRepositoryOkHttpImpl extends AbstractRepositoryOkHttpImpl implements NodeRepository {

  @Override
  public Observable<NodeHealth> getNodeHealth() {
    Callable<NodeHealthInfoDTO> callback = getClient()::getNodeHealth;
    return exceptionHandling(
        call(callback)
            .map(
                dto ->
                    new NodeHealth(
                        NodeStatus.rawValueOf(dto.getStatus().getApiNode().getValue()),
                        NodeStatus.rawValueOf(dto.getStatus().getDb().getValue()))));
  }

  public  NodeRepositoryOkHttpImpl(ApiClient apiClient);

}