Beispiel #1
0
 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()));
 }
Beispiel #2
0
 public static String formatAttemptPrefix(String sessionPrefix, LogFilePrefix prefix) {
   return sessionPrefix + prefix.getRetryAttemptName().transform(it -> "_" + it).or("");
 }
Beispiel #3
0
 public static String formatDataDir(LogFilePrefix prefix) {
   return CREATE_TIME_FORMATTER.format(prefix.getCreatedAt());
 }