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