Package io.openlineage.client.transports
Class HttpTransport
- java.lang.Object
-
- io.openlineage.client.transports.Transport
-
- io.openlineage.client.transports.HttpTransport
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public final class HttpTransport extends Transport implements java.io.Closeable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HttpTransport.Builder
Deprecated.UseHttpConfig
instead
-
Constructor Summary
Constructors Constructor Description HttpTransport(@NonNull HttpConfig httpConfig)
HttpTransport(@NonNull org.apache.http.impl.client.CloseableHttpClient httpClient, @NonNull HttpConfig httpConfig)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static HttpTransport.Builder
builder()
void
close()
void
emit(OpenLineage.DatasetEvent datasetEvent)
void
emit(OpenLineage.JobEvent jobEvent)
void
emit(OpenLineage.RunEvent runEvent)
void
emit(java.lang.String eventAsJson)
Deprecated.Since version 1.13.0.
-
-
-
Constructor Detail
-
HttpTransport
public HttpTransport(@NonNull @NonNull HttpConfig httpConfig)
-
HttpTransport
public HttpTransport(@NonNull @NonNull org.apache.http.impl.client.CloseableHttpClient httpClient, @NonNull @NonNull HttpConfig httpConfig)
-
-
Method Detail
-
emit
public void emit(@NonNull OpenLineage.RunEvent runEvent)
-
emit
public void emit(@NonNull OpenLineage.DatasetEvent datasetEvent)
-
emit
public void emit(@NonNull OpenLineage.JobEvent jobEvent)
-
emit
@Deprecated public void emit(java.lang.String eventAsJson)
Deprecated.Since version 1.13.0.
Will be removed in version 1.16.0.
Please use
emit(OpenLineage.DatasetEvent)
oremit(OpenLineage.JobEvent)
instead
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
builder
public static HttpTransport.Builder builder()
- Returns:
- an new
HttpTransport.Builder
object for buildingHttpTransport
s.
-
-