com.nextbreakpoint.flink.client.api.FlinkApi Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.nextbreakpoint.flink.client Show documentation
Show all versions of com.nextbreakpoint.flink.client Show documentation
Java client for managing Apache Flink via REST API
The newest version!
/*
* This file is part of Flink Client
* https://github.com/nextbreakpoint/flink-client
*/
package com.nextbreakpoint.flink.client.api;
import com.google.gson.Gson;
import com.nextbreakpoint.flink.client.model.OneOfAsynchronousOperationResultOperation;
import com.nextbreakpoint.flink.client.model.OneOfAsynchronousOperationResultOperationTypeAdapter;
public class FlinkApi extends DefaultApi {
public FlinkApi() {
final JSON json = getApiClient().getJSON();
final Gson gson = json.getGson()
.newBuilder()
.registerTypeAdapter(OneOfAsynchronousOperationResultOperation.class, new OneOfAsynchronousOperationResultOperationTypeAdapter())
.create();
json.setGson(gson);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy