Package datahub.client.s3
Class S3Emitter
java.lang.Object
datahub.client.s3.S3Emitter
- All Implemented Interfaces:
Emitter,Closeable,AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Asynchronously emit aMetadataChangeProposalevent.Asynchronously emit aMetadataChangeProposalWrapperevent.Asynchronously emit aUpsertAspectRequest.booleanTest that the emitter can establish a valid connection to the DataHub platform
-
Constructor Details
-
S3Emitter
The default constructor- Parameters:
config-- Throws:
IOException
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
emit
public Future<MetadataWriteResponse> emit(datahub.event.MetadataChangeProposalWrapper mcpw, Callback callback) throws IOException Description copied from interface:EmitterAsynchronously emit aMetadataChangeProposalWrapperevent.- Specified by:
emitin interfaceEmittercallback- if not null, is called from the IO thread. Should be a quick operation.- Returns:
- a
Futurefor callers to inspect the result of the operation or block until one is available - Throws:
IOException
-
emit
public Future<MetadataWriteResponse> emit(com.linkedin.mxe.MetadataChangeProposal mcp, Callback callback) throws IOException Description copied from interface:EmitterAsynchronously emit aMetadataChangeProposalevent. Prefer using the sibling method that accepts aMetadataChangeProposalWrapperevent as those are friendlier to construct.- Specified by:
emitin interfaceEmittercallback- if not null, is called from the IO thread. Should be a quick operation.- Returns:
- a
Futurefor callers to inspect the result of the operation or block until one is available - Throws:
IOException
-
testConnection
Description 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:
IOExceptionExecutionExceptionInterruptedException
-
emit
public Future<MetadataWriteResponse> emit(List<datahub.event.UpsertAspectRequest> request, Callback callback) throws IOException Description copied from interface:EmitterAsynchronously emit aUpsertAspectRequest.- Specified by:
emitin interfaceEmitter- Parameters:
request- request with with metadata aspect to upsert into DataHub- Returns:
- a
Futurefor callers to inspect the result of the operation or block until one is available - Throws:
IOException
-