Package org.pentaho.di.metastore
Class MetaStoreConst
- java.lang.Object
-
- org.pentaho.di.metastore.MetaStoreConst
-
public class MetaStoreConst extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
DB_ATTR_DRIVER_CLASS
static String
DB_ATTR_ID_ACCESS_TYPE
static String
DB_ATTR_ID_ATTRIBUTES
static String
DB_ATTR_ID_DATA_TABLESPACE
static String
DB_ATTR_ID_DATABASE_NAME
static String
DB_ATTR_ID_DESCRIPTION
static String
DB_ATTR_ID_HOSTNAME
static String
DB_ATTR_ID_INDEX_TABLESPACE
static String
DB_ATTR_ID_PASSWORD
static String
DB_ATTR_ID_PLUGIN_ID
static String
DB_ATTR_ID_PORT
static String
DB_ATTR_ID_SERVERNAME
static String
DB_ATTR_ID_USERNAME
static String
DB_ATTR_JDBC_URL
static boolean
disableMetaStore
-
Constructor Summary
Constructors Constructor Description MetaStoreConst()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
enableDefaultToLocalXml()
When this is enabled, if the MetastoreLocator returns null, a local xml metastore will be returned.static org.pentaho.metastore.api.IMetaStore
getDefaultMetastore()
static Supplier<org.pentaho.metastore.api.IMetaStore>
getDefaultMetastoreSupplier()
static String
getDefaultPentahoMetaStoreLocation()
static org.pentaho.metastore.api.IMetaStore
openLocalPentahoMetaStore()
static org.pentaho.metastore.api.IMetaStore
openLocalPentahoMetaStore(boolean allowCreate)
-
-
-
Field Detail
-
DB_ATTR_ID_DESCRIPTION
public static final String DB_ATTR_ID_DESCRIPTION
- See Also:
- Constant Field Values
-
DB_ATTR_ID_PLUGIN_ID
public static final String DB_ATTR_ID_PLUGIN_ID
- See Also:
- Constant Field Values
-
DB_ATTR_ID_ACCESS_TYPE
public static final String DB_ATTR_ID_ACCESS_TYPE
- See Also:
- Constant Field Values
-
DB_ATTR_ID_HOSTNAME
public static final String DB_ATTR_ID_HOSTNAME
- See Also:
- Constant Field Values
-
DB_ATTR_ID_PORT
public static final String DB_ATTR_ID_PORT
- See Also:
- Constant Field Values
-
DB_ATTR_ID_DATABASE_NAME
public static final String DB_ATTR_ID_DATABASE_NAME
- See Also:
- Constant Field Values
-
DB_ATTR_ID_USERNAME
public static final String DB_ATTR_ID_USERNAME
- See Also:
- Constant Field Values
-
DB_ATTR_ID_PASSWORD
public static final String DB_ATTR_ID_PASSWORD
- See Also:
- Constant Field Values
-
DB_ATTR_ID_SERVERNAME
public static final String DB_ATTR_ID_SERVERNAME
- See Also:
- Constant Field Values
-
DB_ATTR_ID_DATA_TABLESPACE
public static final String DB_ATTR_ID_DATA_TABLESPACE
- See Also:
- Constant Field Values
-
DB_ATTR_ID_INDEX_TABLESPACE
public static final String DB_ATTR_ID_INDEX_TABLESPACE
- See Also:
- Constant Field Values
-
disableMetaStore
public static boolean disableMetaStore
-
DB_ATTR_DRIVER_CLASS
public static final String DB_ATTR_DRIVER_CLASS
- See Also:
- Constant Field Values
-
DB_ATTR_JDBC_URL
public static final String DB_ATTR_JDBC_URL
- See Also:
- Constant Field Values
-
DB_ATTR_ID_ATTRIBUTES
public static final String DB_ATTR_ID_ATTRIBUTES
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDefaultPentahoMetaStoreLocation
public static final String getDefaultPentahoMetaStoreLocation()
-
openLocalPentahoMetaStore
public static org.pentaho.metastore.api.IMetaStore openLocalPentahoMetaStore() throws org.pentaho.metastore.api.exceptions.MetaStoreException
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
openLocalPentahoMetaStore
public static org.pentaho.metastore.api.IMetaStore openLocalPentahoMetaStore(boolean allowCreate) throws org.pentaho.metastore.api.exceptions.MetaStoreException
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
getDefaultMetastoreSupplier
public static Supplier<org.pentaho.metastore.api.IMetaStore> getDefaultMetastoreSupplier()
-
getDefaultMetastore
public static org.pentaho.metastore.api.IMetaStore getDefaultMetastore()
-
enableDefaultToLocalXml
public static void enableDefaultToLocalXml()
When this is enabled, if the MetastoreLocator returns null, a local xml metastore will be returned. This should only happen when plugins are not loaded, which should only apply in some unit tests. Runtime code should all load the metastore on demand, ideally using the metastoreSupplier above, and should not initialize a metastore at construction time.
-
-