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

com.github.hermannpencole.nifi.config.service.InformationService Maven / Gradle / Ivy

package com.github.hermannpencole.nifi.config.service;

import com.github.hermannpencole.nifi.swagger.ApiException;
import com.github.hermannpencole.nifi.swagger.client.FlowApi;

import javax.inject.Inject;
import javax.inject.Singleton;

/**
 * Created by SFRJ2737 on 2017-05-28.
 *
 * @author hermann pencolé
 */
@Singleton
public class InformationService {

    @Inject
    private FlowApi flowApi;

    /**
     * get the nifi version.
     *
     * @return the version of nifi
     * @throws ApiException when api problem
     */
    public String getVersion() throws ApiException {
        return flowApi.getAboutInfo().getAbout().getVersion();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy