private void compress(File oldFile) {
        switch (compression) {
        case ZSTD:
            runCompressionZstd(nativeIO, oldFile);
            break;
        case GZIP:
            compressGzip(oldFile);
            break;
        case NONE:
            runCompressionNone(nativeIO, oldFile);
            break;
        default:
            throw new IllegalArgumentException("Unknown compression " + compression);
        }
    }
Creates an instance of FilesArchive managing the given directory
logserver/src/main/java/com/yahoo/logserver/handlers/archive/FilesArchived.java