public class AvroFileAssetOwner extends Object implements AssetOnboardingAvroFileInterface
| Constructor and Description |
|---|
AvroFileAssetOwner(String serverName,
String serverPlatformRootURL)
Create a new client with no authentication embedded in the HTTP request.
|
AvroFileAssetOwner(String serverName,
String serverPlatformRootURL,
String userId,
String password)
Create a new client that passes userId and password in each HTTP request.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
addAvroFileToCatalog(String userId,
String displayName,
String description,
String fullPath)
Add a simple asset description linked to a connection object for a Avro file.
|
void |
refreshAvroSchemaInCatalog(String userId,
String assetGUID)
Ensure the schema associated with an Avro file is correct.
|
public AvroFileAssetOwner(String serverName, String serverPlatformRootURL) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformRootURL - the network address of the server running the OMAS REST serversInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public AvroFileAssetOwner(String serverName, String serverPlatformRootURL, String userId, String password) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformRootURL - the network address of the server running the OMAS REST serversuserId - caller's userId embedded in all HTTP requestspassword - caller's userId embedded in all HTTP requestsInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public void refreshAvroSchemaInCatalog(String userId, String assetGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
refreshAvroSchemaInCatalog in interface AssetOnboardingAvroFileInterfaceuserId - calling userassetGUID - unique identifier for the Avro file's asset in the catalogInvalidParameterException - full path or assetId is nullPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic List<String> addAvroFileToCatalog(String userId, String displayName, String description, String fullPath) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
addAvroFileToCatalog in interface AssetOnboardingAvroFileInterfaceuserId - calling user (assumed to be the owner)displayName - display name for the file in the catalogdescription - description of the file in the catalogfullPath - full path of the file - used to access the file through the connectorInvalidParameterException - full path or userId is nullPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemCopyright © 2018–2019 ODPi. All rights reserved.