public static String getS3KeyFormat(String s3KeyFormat, String requestId, String deployId, Optional<String> loggingTag, String group) { s3KeyFormat = getS3KeyFormat(s3KeyFormat, requestId, group); s3KeyFormat = s3KeyFormat.replace("%tag", loggingTag.or("")); s3KeyFormat = s3KeyFormat.replace("%deployId", deployId); return s3KeyFormat; }
public static Collection<String> getS3KeyPrefixes(String s3KeyFormat, SingularityTaskId taskId, Optional<String> tag, long start, long end, String group) { String keyFormat = getS3KeyFormat(s3KeyFormat, taskId, tag, group); return getS3KeyPrefixes(keyFormat, DISALLOWED_FOR_TASK, start, end); }
public static Collection<String> getS3KeyPrefixes(String s3KeyFormat, String requestId, String deployId, Optional<String> tag, long start, long end, String group) { String keyFormat = getS3KeyFormat(s3KeyFormat, requestId, deployId, tag, group); keyFormat = trimTaskId(keyFormat, requestId + "-" + deployId); return getS3KeyPrefixes(keyFormat, DISALLOWED_FOR_DEPLOY, start, end); }
public static Collection<String> getS3KeyPrefixes(String s3KeyFormat, String requestId, long start, long end, String group) { s3KeyFormat = getS3KeyFormat(s3KeyFormat, requestId, group); s3KeyFormat = trimTaskId(s3KeyFormat, requestId); return getS3KeyPrefixes(s3KeyFormat, DISALLOWED_FOR_REQUEST, start, end); }
public static String getS3KeyFormat(String s3KeyFormat, SingularityTaskId taskId, Optional<String> loggingTag, String group) { s3KeyFormat = getS3KeyFormat(s3KeyFormat, taskId.getRequestId(), taskId.getDeployId(), loggingTag, group); s3KeyFormat = s3KeyFormat.replace("%host", taskId.getSanitizedHost()); s3KeyFormat = s3KeyFormat.replace("%taskId", taskId.toString()); return s3KeyFormat; }
private String getS3KeyPattern(String s3KeyPattern) { final SingularityTaskId singularityTaskId = getSingularityTaskId(); return SingularityS3FormatHelper.getS3KeyFormat(s3KeyPattern, singularityTaskId, taskDefinition.getExecutorData().getLoggingTag(), taskDefinition.getExecutorData().getRequestGroup().or(SingularityS3FormatHelper.DEFAULT_GROUP_NAME)); }