class SMONMemoryWorkaroundService {

    public String firehoseNonJavaMemoryBytes(StackType stackType, Set<String> componentsByHostGroup) {
        if (isDataLake(stackType)) {
            return calculateSmonMemoryParameterBasedOnServices(
                    stackType,
                    componentsByHostGroup,
                    datalakeNormalFirehoseNonJavaMemoryBytes,
                    datalakeExtensiveFirehoseNonJavaMemoryBytes);
        } else {
            return calculateSmonMemoryParameterBasedOnServices(
                    stackType,
                    componentsByHostGroup,
                    datahubNormalFirehoseNonJavaMemoryBytes,
                    datahubExtensiveFirehoseNonJavaMemoryBytes);
        }
    }

}