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

The following examples show how to use org.apache.flink.runtime.rest.messages.json.RawJsonDeserializer. 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: 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 #2
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 #3
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);
}