Package datahub.client.file
Class FileEmitter
- java.lang.Object
-
- datahub.client.file.FileEmitter
-
-
Constructor Summary
Constructors Constructor Description FileEmitter(FileEmitterConfig config)
The default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
java.util.concurrent.Future<MetadataWriteResponse>
emit(com.linkedin.mxe.MetadataChangeProposal mcp, Callback callback)
Asynchronously emit aMetadataChangeProposal
event.java.util.concurrent.Future<MetadataWriteResponse>
emit(MetadataChangeProposalWrapper mcpw, Callback callback)
Asynchronously emit aMetadataChangeProposalWrapper
event.java.util.concurrent.Future<MetadataWriteResponse>
emit(java.util.List<UpsertAspectRequest> request, Callback callback)
Asynchronously emit aUpsertAspectRequest
.boolean
testConnection()
Test that the emitter can establish a valid connection to the DataHub platform
-
-
-
Constructor Detail
-
FileEmitter
public FileEmitter(FileEmitterConfig config)
The default constructor- Parameters:
config
-
-
-
Method Detail
-
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
-
emit
public java.util.concurrent.Future<MetadataWriteResponse> emit(MetadataChangeProposalWrapper mcpw, Callback callback) throws java.io.IOException
Description copied from interface:Emitter
Asynchronously emit aMetadataChangeProposalWrapper
event.
-
emit
public java.util.concurrent.Future<MetadataWriteResponse> emit(com.linkedin.mxe.MetadataChangeProposal mcp, Callback callback) throws java.io.IOException
Description copied from interface:Emitter
Asynchronously emit aMetadataChangeProposal
event. Prefer using the sibling method that accepts aMetadataChangeProposalWrapper
event as those are friendlier to construct.
-
testConnection
public boolean testConnection() throws java.io.IOException, java.util.concurrent.ExecutionException, java.lang.InterruptedException
Description copied from interface:Emitter
Test that the emitter can establish a valid connection to the DataHub platform- Specified by:
testConnection
in interfaceEmitter
- Returns:
- true if a valid connection can be established, false or throws one of the exceptions otherwise
- Throws:
java.io.IOException
java.util.concurrent.ExecutionException
java.lang.InterruptedException
-
emit
public java.util.concurrent.Future<MetadataWriteResponse> emit(java.util.List<UpsertAspectRequest> request, Callback callback) throws java.io.IOException
Description copied from interface:Emitter
Asynchronously emit aUpsertAspectRequest
.
-
-