| Constructor and Description |
|---|
FileEmitter(FileEmitterConfig config)
The default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
java.util.concurrent.Future<MetadataWriteResponse> |
emit(java.util.List<UpsertAspectRequest> request,
Callback callback)
Asynchronously emit a
UpsertAspectRequest. |
java.util.concurrent.Future<MetadataWriteResponse> |
emit(com.linkedin.mxe.MetadataChangeProposal mcp,
Callback callback)
Asynchronously emit a
MetadataChangeProposal event. |
java.util.concurrent.Future<MetadataWriteResponse> |
emit(MetadataChangeProposalWrapper mcpw,
Callback callback)
Asynchronously emit a
MetadataChangeProposalWrapper event. |
boolean |
testConnection()
Test that the emitter can establish a valid connection to the DataHub platform
|
public FileEmitter(FileEmitterConfig config)
config - public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic java.util.concurrent.Future<MetadataWriteResponse> emit(MetadataChangeProposalWrapper mcpw, Callback callback) throws java.io.IOException
EmitterMetadataChangeProposalWrapper event.public java.util.concurrent.Future<MetadataWriteResponse> emit(com.linkedin.mxe.MetadataChangeProposal mcp, Callback callback) throws java.io.IOException
EmitterMetadataChangeProposal event. Prefer using the sibling method
that accepts a MetadataChangeProposalWrapper event as those are friendlier to construct.public boolean testConnection()
throws java.io.IOException,
java.util.concurrent.ExecutionException,
java.lang.InterruptedException
EmittertestConnection in interface Emitterjava.io.IOExceptionjava.util.concurrent.ExecutionExceptionjava.lang.InterruptedExceptionpublic java.util.concurrent.Future<MetadataWriteResponse> emit(java.util.List<UpsertAspectRequest> request, Callback callback) throws java.io.IOException
EmitterUpsertAspectRequest.