Class AuditableDiscoveryService

    • Constructor Detail

      • AuditableDiscoveryService

        public AuditableDiscoveryService()
    • Method Detail

      • setAuditLog

        public void setAuditLog​(AuditLog auditLog)
        Receive an audit log object that can be used to record audit log messages. The caller has initialized it with the correct component description and log destinations.
        Specified by:
        setAuditLog in interface AuditLoggingComponent
        Overrides:
        setAuditLog in class DiscoveryService
        Parameters:
        auditLog - audit log object
      • logNoAsset

        protected void logNoAsset​(String assetGUID,
                                  String methodName)
                           throws ConnectorCheckedException
        Log that no asset has been returned to the discovery service. It is unable to proceed without this basic information.
        Parameters:
        assetGUID - the unique identifier of the asset from the discovery context
        methodName - calling method
        Throws:
        ConnectorCheckedException - resulting exception
      • logWrongTypeOfAsset

        protected void logWrongTypeOfAsset​(String assetGUID,
                                           String assetType,
                                           String supportedAssetType,
                                           String methodName)
                                    throws ConnectorCheckedException
        Log that the discovery service can not process the type of asset it has been passed.
        Parameters:
        assetGUID - identifier of the asset
        assetType - type of the asset
        supportedAssetType - supported asset types
        methodName - calling method
        Throws:
        ConnectorCheckedException - resulting exception
      • getNetworkAddresses

        protected List<String> getNetworkAddresses​(AssetUniverse asset)
        Return the network address of this asset.
        Parameters:
        asset - asset to extract address from
        Returns:
        the list of network addresses