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 voidclose()java.util.concurrent.Future<MetadataWriteResponse>emit(com.linkedin.mxe.MetadataChangeProposal mcp, Callback callback)Asynchronously emit aMetadataChangeProposalevent.java.util.concurrent.Future<MetadataWriteResponse>emit(MetadataChangeProposalWrapper mcpw, Callback callback)Asynchronously emit aMetadataChangeProposalWrapperevent.java.util.concurrent.Future<MetadataWriteResponse>emit(java.util.List<UpsertAspectRequest> request, Callback callback)Asynchronously emit aUpsertAspectRequest.booleantestConnection()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:
closein interfacejava.lang.AutoCloseable- Specified by:
closein 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:EmitterAsynchronously emit aMetadataChangeProposalWrapperevent.
-
emit
public java.util.concurrent.Future<MetadataWriteResponse> emit(com.linkedin.mxe.MetadataChangeProposal mcp, Callback callback) throws java.io.IOException
Description copied from interface:EmitterAsynchronously emit aMetadataChangeProposalevent. Prefer using the sibling method that accepts aMetadataChangeProposalWrapperevent as those are friendlier to construct.
-
testConnection
public boolean testConnection() throws java.io.IOException, java.util.concurrent.ExecutionException, java.lang.InterruptedExceptionDescription copied from interface:EmitterTest that the emitter can establish a valid connection to the DataHub platform- Specified by:
testConnectionin interfaceEmitter- Returns:
- true if a valid connection can be established, false or throws one of the exceptions otherwise
- Throws:
java.io.IOExceptionjava.util.concurrent.ExecutionExceptionjava.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:EmitterAsynchronously emit aUpsertAspectRequest.
-
-