<commit_before>/* @java.file.header */

/*  _________        _____ __________________        _____
 *  __  ____/___________(_)______  /__  ____/______ ____(_)_______
 *  _  / __  __  ___/__  / _  __  / _  / __  _  __ `/__  / __  __ \
 *  / /_/ /  _  /    _  /  / /_/ /  / /_/ /  / /_/ / _  /  _  / / /
 *  \____/   /_/     /_/   \_,__/   \____/   \__,_/  /_/   /_/ /_/
 */

package org.gridgain.grid.kernal.processors.license;

import org.gridgain.grid.kernal.processors.*;
import org.gridgain.grid.product.*;
import org.jetbrains.annotations.*;

/**
 * License processor.
 */
public interface GridLicenseProcessor extends GridProcessor {
    /**
     * Upload the new license into the current node. Throw the exception if the license is not validated.
     *
     * @param licTxt String - The string representation of the license file.
     * @throws GridProductLicenseException - Throw the exception in the case of failed validation.
     */
    public void updateLicense(String licTxt) throws GridProductLicenseException;

    /**
     * Acks the license to the log.
     */
    public void ackLicense();

    /**
     * This method is called periodically by the GridGain to check the license
     * conformance.
     *
     * @throws GridProductLicenseException Thrown in case of any license violation.
     */
    public void checkLicense() throws GridProductLicenseException;

    /**
     * Checks if edition is enabled.
     *
     * @param ed Edition to check.
     * @return {@code True} if enabled.
     */
    public boolean enabled(GridProductEdition ed);

    /**
     * Gets license descriptor.
     *
     * @return License descriptor or {@code null} for open-source edition.
     */
    @Nullable public GridProductLicense license();

    /**
     * @return Grace period left in minutes if bursting or {@code -1} otherwise.
     */
    public long gracePeriodLeft();
}
<commit_msg>GG-8745 Support "classpath" scheme and new error handling for updateLicense method<commit_after>/* @java.file.header */

/*  _________        _____ __________________        _____
 *  __  ____/___________(_)______  /__  ____/______ ____(_)_______
 *  _  / __  __  ___/__  / _  __  / _  / __  _  __ `/__  / __  __ \
 *  / /_/ /  _  /    _  /  / /_/ /  / /_/ /  / /_/ / _  /  _  / / /
 *  \____/   /_/     /_/   \_,__/   \____/   \__,_/  /_/   /_/ /_/
 */

package org.gridgain.grid.kernal.processors.license;

import org.gridgain.grid.*;
import org.gridgain.grid.kernal.processors.*;
import org.gridgain.grid.product.*;
import org.jetbrains.annotations.*;

/**
 * License processor.
 */
public interface GridLicenseProcessor extends GridProcessor {
    /**
     * Upload the new license into the current node.
     *
     * @param licTxt The string representation of the license file.
     * @throws GridProductLicenseException Thrown if validation check failed for specified license or
     *      license can not be updated because configured license URL use non-file scheme.
     * @see GridConfiguration#getLicenseUrl()
     */
    public void updateLicense(String licTxt) throws GridProductLicenseException;

    /**
     * Acks the license to the log.
     */
    public void ackLicense();

    /**
     * This method is called periodically by the GridGain to check the license conformance.
     *
     * @throws GridProductLicenseException Thrown in case of any license violation.
     */
    public void checkLicense() throws GridProductLicenseException;

    /**
     * Checks if edition is enabled.
     *
     * @param ed Edition to check.
     * @return {@code True} if enabled.
     */
    public boolean enabled(GridProductEdition ed);

    /**
     * Gets license descriptor.
     *
     * @return License descriptor or {@code null} for open-source edition.
     */
    @Nullable public GridProductLicense license();

    /**
     * @return Grace period left in minutes if bursting or {@code -1} otherwise.
     */
    public long gracePeriodLeft();
}

{'fraction_non_alphanumeric': 0.10771947527749748, 'fraction_numerical': 0.0015136226034308778, 'mean_word_length': 2.260690789473684, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 4, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3408347', 'n_tokens_mistral': 1183, 'n_tokens_neox': 1151, 'n_words': 310}