public static String formatSessoinPrefix(LogFilePrefix prefix) { return String.format( ENGLISH, "%d.%d%s@%s", prefix.getSiteId(), prefix.getProjectId(), prefix.getWorkflowName(), SESSION_TIME_FORMATTER.withZone(prefix.getTimeZone()).format(prefix.getSessionTime())); }
public static String formatAttemptPrefix(String sessionPrefix, LogFilePrefix prefix) { return sessionPrefix + prefix.getRetryAttemptName().transform(it -> "_" + it).or(""); }
public static String formatDataDir(LogFilePrefix prefix) { return CREATE_TIME_FORMATTER.format(prefix.getCreatedAt()); }