Interface MetastoreLocatorOsgi


  • public interface MetastoreLocatorOsgi
    Created by tkafalas on 7/10/2017.
    • Method Detail

      • getMetastore

        org.pentaho.metastore.api.IMetaStore getMetastore()
        Attempts to pick the best the MetaStore based on environment; either the local or repository metastore.
        Returns:
        The metastore to use
      • getMetastore

        org.pentaho.metastore.api.IMetaStore getMetastore​(String providerKey)
        Works similar to (@link #getMetastore()) except that it will fall back to a metastore with a key of providerKey if the both repository and local metastore both are not found.
        Parameters:
        providerKey -
        Returns:
      • setEmbeddedMetastore

        String setEmbeddedMetastore​(org.pentaho.metastore.api.IMetaStore metastore)
        Registers a metastore provider that returns the received metastore with the current thread. getMetastore() will used this metastore if the repository and local metastore provider cannot be found.
        Parameters:
        metastore -
        Returns:
      • disposeMetastoreProvider

        void disposeMetastoreProvider​(String providerKey)
        Dispose a metastore provider associated with the providerKey
        Parameters:
        providerKey - The key to the metastore provider.
      • getExplicitMetastore

        org.pentaho.metastore.api.IMetaStore getExplicitMetastore​(String providerKey)
        Unconditionally returns the metastore stored with the given provider key, or null if it does not exist.
        Parameters:
        providerKey -
        Returns: