Class ConnectionCache

java.lang.Object
com.atlan.cache.AbstractAssetCache
com.atlan.cache.ConnectionCache

public class ConnectionCache extends AbstractAssetCache
Lazily-loaded cache for translating between a connection's simplified name its details. - id = qualifiedName of the connection (with epoch), for example: default/snowflake/1234567890 - name = simple name of the form {{connectorType}}/{{connectorName}}, for example: snowflake/development
  • Constructor Details

    • ConnectionCache

      public ConnectionCache(AtlanClient client)
  • Method Details

    • lookupByGuid

      public void lookupByGuid(String guid) throws AtlanException
      Logic to refresh the cache for a single object from Atlan.
      Specified by:
      lookupByGuid in class AbstractAssetCache
      Parameters:
      guid - the unique UUID of a single item to lookup
      Throws:
      AtlanException - on any error communicating with Atlan to lookup the object
    • lookupByQualifiedName

      public void lookupByQualifiedName(String connectionQN) throws AtlanException
      Logic to refresh the cache for a single object from Atlan.
      Specified by:
      lookupByQualifiedName in class AbstractAssetCache
      Parameters:
      connectionQN - the identity of a single item to lookup
      Throws:
      AtlanException - on any error communicating with Atlan to lookup the object
    • lookupByName

      public void lookupByName(ObjectName name) throws AtlanException
      Logic to refresh the cache for a single object from Atlan.
      Specified by:
      lookupByName in class AbstractAssetCache
      Parameters:
      name - the name of a single item to lookup
      Throws:
      AtlanException - on any error communicating with Atlan to lookup the object
    • getName

      public ObjectName getName(Asset asset)
      Logic to construct a unique identity for the asset.
      Specified by:
      getName in class AbstractAssetCache
      Parameters:
      asset - for which to construct the unique identity
      Returns:
      a unique identity for the asset, or null if there is no asset