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

io.radanalytics.operator.historyServer.HistoryServerHelper Maven / Gradle / Ivy

There is a newer version: 1.0.4
Show newest version
package io.radanalytics.operator.historyServer;

import io.radanalytics.types.HistoryServer;
import io.radanalytics.types.SparkCluster;
import io.radanalytics.types.SparkHistoryServer;

public class HistoryServerHelper {

    public static boolean needsVolume(SparkHistoryServer hs) {
        return HistoryServer.Type.sharedVolume.value().equals(hs.getType().value());
    }

    public static boolean needsVolume(SparkCluster cluster) {
        return null != cluster.getHistoryServer() && HistoryServer.Type.sharedVolume.value().equals(cluster.getHistoryServer().getType().value());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy