Interface G2Product

  • All Superinterfaces:
    All Known Implementing Classes:

    public interface G2Product
    extends G2Fallible
    Defines the Java interface to the G2 product functions. The G2 product functions provide information regarding the Senzing product installation and user license.
    • Method Detail

      • initV2

        int initV2​(String moduleName,
                   String iniParams,
                   boolean verboseLogging)
        Initializes the G2 product API with the specified module name, init parameters and flag indicating verbose logging. If the G2CONFIGFILE init parameter is absent then the default configuration from the repository is used.
        moduleName - A short name given to this instance of the product API.
        iniParams - A JSON string containing configuration parameters.
        verboseLogging - Enable diagnostic logging which will print a massive amount of information to stdout.
        Zero (0) on success and non-zero on failure.
      • destroy

        int destroy()
        Uninitializes the G2 product API.
        Zero (0) on success and non-zero on failure.
      • license

        String license()
        Returns the currently configured license details.
        The JSON document describing the license details.
      • validateLicenseFile

        int validateLicenseFile​(String licenseFile,
                                StringBuffer errorResponse)
        Determines whether a specified license file is valid
        licenseFile - The path
        errorResponse - The StringBuffer to write any error response to (if an error occurs).
        Zero (0) for valid license, one (1) for invalid, and a negative number for errors.
      • version

        String version()
        Returns the currently installed version details
        JSON document of version details.