com.github.ywilkof.sparkrestclient.interfaces.CanValidateSubmissionId Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spark-jobs-rest-client Show documentation
Show all versions of spark-jobs-rest-client Show documentation
Fluent utility client for interacting with Spark Standalone Mode's Rest API for submitting, killing and monitoring the state of jobs.
package com.github.ywilkof.sparkrestclient.interfaces;
/**
* Created by yonatan on 10/17/15.
*/
public interface CanValidateSubmissionId {
default void assertSubmissionId(final String submissionId) {
if (submissionId == null
|| submissionId.isEmpty()
|| submissionId.trim().equals("")) {
throw new IllegalArgumentException("SubmissionId must be a non blank string");
}
}
}