Package org.pentaho.di.core.osgi.api
Interface MetastoreLocatorOsgi
-
public interface MetastoreLocatorOsgi
Created by tkafalas on 7/10/2017.
-
-
Field Summary
Fields Modifier and Type Field Description static String
EMBEDDED_METASTORE_KEY_PREFIX
static String
LOCAL_PROVIDER_KEY
static String
REPOSITORY_PROVIDER_KEY
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
disposeMetastoreProvider(String providerKey)
Dispose a metastore provider associated with the providerKeyorg.pentaho.metastore.api.IMetaStore
getExplicitMetastore(String providerKey)
Unconditionally returns the metastore stored with the given provider key, or null if it does not exist.org.pentaho.metastore.api.IMetaStore
getMetastore()
Attempts to pick the best the MetaStore based on environment; either the local or repository metastore.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.String
setEmbeddedMetastore(org.pentaho.metastore.api.IMetaStore metastore)
Registers a metastore provider that returns the received metastore with the current thread.
-
-
-
Field Detail
-
LOCAL_PROVIDER_KEY
static final String LOCAL_PROVIDER_KEY
- See Also:
- Constant Field Values
-
REPOSITORY_PROVIDER_KEY
static final String REPOSITORY_PROVIDER_KEY
- See Also:
- Constant Field Values
-
EMBEDDED_METASTORE_KEY_PREFIX
static final String EMBEDDED_METASTORE_KEY_PREFIX
- See Also:
- Constant Field Values
-
-
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:
-
-