org.apache.flink.runtime.rest.messages.json.JobIDDeserializer Java Examples

The following examples show how to use org.apache.flink.runtime.rest.messages.json.JobIDDeserializer. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JobIdsWithStatusOverview.java    From Flink-CEPplus with Apache License 2.0 5 votes vote down vote up
@JsonCreator
public JobIdWithStatus(
	@JsonProperty(FIELD_NAME_JOB_ID) @JsonDeserialize(using = JobIDDeserializer.class) JobID jobId,
	@JsonProperty(FIELD_NAME_JOB_STATUS) JobStatus jobStatus) {
	this.jobId = Preconditions.checkNotNull(jobId);
	this.jobStatus = Preconditions.checkNotNull(jobStatus);
}
 
Example #2
Source File: JobDetailsInfo.java    From Flink-CEPplus with Apache License 2.0 5 votes vote down vote up
@JsonCreator
public JobDetailsInfo(
		@JsonDeserialize(using = JobIDDeserializer.class) @JsonProperty(FIELD_NAME_JOB_ID) JobID jobId,
		@JsonProperty(FIELD_NAME_JOB_NAME) String name,
		@JsonProperty(FIELD_NAME_IS_STOPPABLE) boolean isStoppable,
		@JsonProperty(FIELD_NAME_JOB_STATUS) JobStatus jobStatus,
		@JsonProperty(FIELD_NAME_START_TIME) long startTime,
		@JsonProperty(FIELD_NAME_END_TIME) long endTime,
		@JsonProperty(FIELD_NAME_DURATION) long duration,
		@JsonProperty(FIELD_NAME_NOW) long now,
		@JsonProperty(FIELD_NAME_TIMESTAMPS) Map<JobStatus, Long> timestamps,
		@JsonProperty(FIELD_NAME_JOB_VERTEX_INFOS) Collection<JobVertexDetailsInfo> jobVertexInfos,
		@JsonProperty(FIELD_NAME_JOB_VERTICES_PER_STATE) Map<ExecutionState, Integer> jobVerticesPerState,
		@JsonProperty(FIELD_NAME_JSON_PLAN) @JsonDeserialize(using = RawJsonDeserializer.class) String jsonPlan) {
	this.jobId = Preconditions.checkNotNull(jobId);
	this.name = Preconditions.checkNotNull(name);
	this.isStoppable = isStoppable;
	this.jobStatus = Preconditions.checkNotNull(jobStatus);
	this.startTime = startTime;
	this.endTime = endTime;
	this.duration = duration;
	this.now = now;
	this.timestamps = Preconditions.checkNotNull(timestamps);
	this.jobVertexInfos = Preconditions.checkNotNull(jobVertexInfos);
	this.jobVerticesPerState = Preconditions.checkNotNull(jobVerticesPerState);
	this.jsonPlan = Preconditions.checkNotNull(jsonPlan);
}
 
Example #3
Source File: JobIdsWithStatusOverview.java    From flink with Apache License 2.0 5 votes vote down vote up
@JsonCreator
public JobIdWithStatus(
	@JsonProperty(FIELD_NAME_JOB_ID) @JsonDeserialize(using = JobIDDeserializer.class) JobID jobId,
	@JsonProperty(FIELD_NAME_JOB_STATUS) JobStatus jobStatus) {
	this.jobId = Preconditions.checkNotNull(jobId);
	this.jobStatus = Preconditions.checkNotNull(jobStatus);
}
 
Example #4
Source File: JobDetailsInfo.java    From flink with Apache License 2.0 5 votes vote down vote up
@JsonCreator
public JobDetailsInfo(
		@JsonDeserialize(using = JobIDDeserializer.class) @JsonProperty(FIELD_NAME_JOB_ID) JobID jobId,
		@JsonProperty(FIELD_NAME_JOB_NAME) String name,
		@JsonProperty(FIELD_NAME_IS_STOPPABLE) boolean isStoppable,
		@JsonProperty(FIELD_NAME_JOB_STATUS) JobStatus jobStatus,
		@JsonProperty(FIELD_NAME_START_TIME) long startTime,
		@JsonProperty(FIELD_NAME_END_TIME) long endTime,
		@JsonProperty(FIELD_NAME_DURATION) long duration,
		@JsonProperty(FIELD_NAME_NOW) long now,
		@JsonProperty(FIELD_NAME_TIMESTAMPS) Map<JobStatus, Long> timestamps,
		@JsonProperty(FIELD_NAME_JOB_VERTEX_INFOS) Collection<JobVertexDetailsInfo> jobVertexInfos,
		@JsonProperty(FIELD_NAME_JOB_VERTICES_PER_STATE) Map<ExecutionState, Integer> jobVerticesPerState,
		@JsonProperty(FIELD_NAME_JSON_PLAN) @JsonDeserialize(using = RawJsonDeserializer.class) String jsonPlan) {
	this.jobId = Preconditions.checkNotNull(jobId);
	this.name = Preconditions.checkNotNull(name);
	this.isStoppable = isStoppable;
	this.jobStatus = Preconditions.checkNotNull(jobStatus);
	this.startTime = startTime;
	this.endTime = endTime;
	this.duration = duration;
	this.now = now;
	this.timestamps = Preconditions.checkNotNull(timestamps);
	this.jobVertexInfos = Preconditions.checkNotNull(jobVertexInfos);
	this.jobVerticesPerState = Preconditions.checkNotNull(jobVerticesPerState);
	this.jsonPlan = Preconditions.checkNotNull(jsonPlan);
}
 
Example #5
Source File: JobIdsWithStatusOverview.java    From flink with Apache License 2.0 5 votes vote down vote up
@JsonCreator
public JobIdWithStatus(
	@JsonProperty(FIELD_NAME_JOB_ID) @JsonDeserialize(using = JobIDDeserializer.class) JobID jobId,
	@JsonProperty(FIELD_NAME_JOB_STATUS) JobStatus jobStatus) {
	this.jobId = Preconditions.checkNotNull(jobId);
	this.jobStatus = Preconditions.checkNotNull(jobStatus);
}
 
Example #6
Source File: JobDetailsInfo.java    From flink with Apache License 2.0 5 votes vote down vote up
@JsonCreator
public JobDetailsInfo(
		@JsonDeserialize(using = JobIDDeserializer.class) @JsonProperty(FIELD_NAME_JOB_ID) JobID jobId,
		@JsonProperty(FIELD_NAME_JOB_NAME) String name,
		@JsonProperty(FIELD_NAME_IS_STOPPABLE) boolean isStoppable,
		@JsonProperty(FIELD_NAME_JOB_STATUS) JobStatus jobStatus,
		@JsonProperty(FIELD_NAME_START_TIME) long startTime,
		@JsonProperty(FIELD_NAME_END_TIME) long endTime,
		@JsonProperty(FIELD_NAME_DURATION) long duration,
		@JsonProperty(FIELD_NAME_NOW) long now,
		@JsonProperty(FIELD_NAME_TIMESTAMPS) Map<JobStatus, Long> timestamps,
		@JsonProperty(FIELD_NAME_JOB_VERTEX_INFOS) Collection<JobVertexDetailsInfo> jobVertexInfos,
		@JsonProperty(FIELD_NAME_JOB_VERTICES_PER_STATE) Map<ExecutionState, Integer> jobVerticesPerState,
		@JsonProperty(FIELD_NAME_JSON_PLAN) @JsonDeserialize(using = RawJsonDeserializer.class) String jsonPlan) {
	this.jobId = Preconditions.checkNotNull(jobId);
	this.name = Preconditions.checkNotNull(name);
	this.isStoppable = isStoppable;
	this.jobStatus = Preconditions.checkNotNull(jobStatus);
	this.startTime = startTime;
	this.endTime = endTime;
	this.duration = duration;
	this.now = now;
	this.timestamps = Preconditions.checkNotNull(timestamps);
	this.jobVertexInfos = Preconditions.checkNotNull(jobVertexInfos);
	this.jobVerticesPerState = Preconditions.checkNotNull(jobVerticesPerState);
	this.jsonPlan = Preconditions.checkNotNull(jsonPlan);
}
 
Example #7
Source File: JarRunResponseBody.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
@JsonCreator
public JarRunResponseBody(
		@JsonProperty("jobid")
		@JsonDeserialize(using = JobIDDeserializer.class) final JobID jobId) {
	this.jobId = requireNonNull(jobId);
}
 
Example #8
Source File: JarRunResponseBody.java    From flink with Apache License 2.0 4 votes vote down vote up
@JsonCreator
public JarRunResponseBody(
		@JsonProperty("jobid")
		@JsonDeserialize(using = JobIDDeserializer.class) final JobID jobId) {
	this.jobId = requireNonNull(jobId);
}
 
Example #9
Source File: JarRunResponseBody.java    From flink with Apache License 2.0 4 votes vote down vote up
@JsonCreator
public JarRunResponseBody(
		@JsonProperty("jobid")
		@JsonDeserialize(using = JobIDDeserializer.class) final JobID jobId) {
	this.jobId = requireNonNull(jobId);
}