public abstract class DiscoveryAssetStore extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Connection |
assetConnection |
protected String |
assetGUID |
protected String |
userId |
| Constructor and Description |
|---|
DiscoveryAssetStore(String assetGUID,
String userId)
Constructor sets up the key parameters for accessing the asset store.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAssetGUID()
Return the unique identifier for the asset.
|
abstract AssetUniverse |
getAssetProperties()
Returns a comprehensive collection of properties about the requested asset.
|
protected abstract Connection |
getConnectionForAsset()
Return the connection information for the asset.
|
protected abstract Connector |
getConnectorByConnection(Connection connection)
Returns the connector corresponding to the supplied connection.
|
Connector |
getConnectorToAsset()
Return the connector to the requested asset.
|
abstract void |
logAssetAuditMessage(String discoveryService,
String message)
Log an audit message about this asset.
|
protected String assetGUID
protected String userId
protected Connection assetConnection
public String getAssetGUID()
protected abstract Connector getConnectorByConnection(Connection connection) throws InvalidParameterException, ConnectionCheckedException, ConnectorCheckedException
connection - the connection object that contains the properties needed to create the connection.InvalidParameterException - one of the parameters is null or invalid.ConnectionCheckedException - there are errors in the configuration of the connection which is preventing
the creation of a connector.ConnectorCheckedException - there are errors in the initialization of the connector.protected abstract Connection getConnectionForAsset() throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
InvalidParameterException - the asset guid is not recognizedUserNotAuthorizedException - the user is not authorized to access the asset and/or connectionPropertyServerException - there was a problem in the store whether the asset/connection properties are kept.public abstract AssetUniverse getAssetProperties() throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem retrieving the asset properties from the property servers).UserNotAuthorizedException - the requesting user is not authorized to issue this request.public abstract void logAssetAuditMessage(String discoveryService, String message) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
discoveryService - name of discovery servicemessage - message to logInvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem retrieving the asset properties from the property servers).UserNotAuthorizedException - the requesting user is not authorized to issue this request.public Connector getConnectorToAsset() throws InvalidParameterException, ConnectionCheckedException, ConnectorCheckedException, UserNotAuthorizedException, PropertyServerException
InvalidParameterException - the asset guid is not recognized or the userId is nullConnectionCheckedException - there are errors in the configuration of the connection which is preventing
the creation of a connector.ConnectorCheckedException - there are errors in the initialization of the connector.UserNotAuthorizedException - the user is not authorized to access the asset and/or connection needed to
create the connector.PropertyServerException - there was a problem in the store whether the asset/connection properties are kept.Copyright © 2018–2020 ODPi. All rights reserved.