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

org.elasticsearch.xpack.core.EmptyXPackFeatureSet Maven / Gradle / Ivy

/*
 * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
 * or more contributor license agreements. Licensed under the Elastic License
 * 2.0; you may not use this file except in compliance with the Elastic License
 * 2.0.
 */
package org.elasticsearch.xpack.core;

import org.elasticsearch.action.ActionListener;

import java.util.Collections;
import java.util.Map;

public class EmptyXPackFeatureSet implements XPackFeatureSet {
    @Override
    public String name() {
        return "Empty XPackFeatureSet";
    }

    @Override
    public boolean available() {
        return false;
    }

    @Override
    public boolean enabled() {
        return false;
    }

    @Override
    public Map nativeCodeInfo() {
        return Collections.emptyMap();
    }

    @Override
    public void usage(ActionListener listener) {

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy