public abstract class AuditableDiscoveryService extends DiscoveryService implements AuditLoggingComponent
ConnectorBase.ProtectedConnectionauditLog, discoveryContext, discoveryServiceNameconnectedAssetProperties, connectionBean, connectionProperties, connectorInstanceId, securedProperties| Constructor and Description |
|---|
AuditableDiscoveryService() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getAssetTypeName(AssetUniverse asset,
String methodName)
Return the type name for the asset.
|
protected List<String> |
getNetworkAddresses(AssetUniverse asset)
Return the network address of this asset.
|
protected void |
logNoAsset(String assetGUID,
String methodName)
Log that no asset has been returned to the discovery service.
|
protected void |
logWrongTypeOfAsset(String assetGUID,
String assetType,
String supportedAssetType,
String methodName)
Log that the discovery service can not process the type of asset it has been passed.
|
void |
setAuditLog(AuditLog auditLog)
Receive an audit log object that can be used to record audit log messages.
|
disconnect, getDiscoveryContext, getEmbeddedDiscoveryServices, handleUnexpectedException, setDiscoveryContext, setDiscoveryServiceName, startequals, getConnectedAssetProperties, getConnection, getConnectorInstanceId, hashCode, initialize, initializeConnectedAssetProperties, isActive, toStringpublic void setAuditLog(AuditLog auditLog)
setAuditLog in interface AuditLoggingComponentsetAuditLog in class DiscoveryServiceauditLog - audit log objectprotected void logNoAsset(String assetGUID, String methodName) throws ConnectorCheckedException
assetGUID - the unique identifier of the asset from the discovery contextmethodName - calling methodConnectorCheckedException - resulting exceptionprotected void logWrongTypeOfAsset(String assetGUID, String assetType, String supportedAssetType, String methodName) throws ConnectorCheckedException
assetGUID - identifier of the assetassetType - type of the assetsupportedAssetType - supported asset typesmethodName - calling methodConnectorCheckedException - resulting exceptionprotected String getAssetTypeName(AssetUniverse asset, String methodName) throws ConnectorCheckedException
asset - asset universemethodName - calling methodConnectorCheckedException - resulting exceptionprotected List<String> getNetworkAddresses(AssetUniverse asset)
asset - asset to extract address fromCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.