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 StringDB_ATTR_DRIVER_CLASSstatic StringDB_ATTR_ID_ACCESS_TYPEstatic StringDB_ATTR_ID_ATTRIBUTESstatic StringDB_ATTR_ID_DATA_TABLESPACEstatic StringDB_ATTR_ID_DATABASE_NAMEstatic StringDB_ATTR_ID_DESCRIPTIONstatic StringDB_ATTR_ID_HOSTNAMEstatic StringDB_ATTR_ID_INDEX_TABLESPACEstatic StringDB_ATTR_ID_PASSWORDstatic StringDB_ATTR_ID_PLUGIN_IDstatic StringDB_ATTR_ID_PORTstatic StringDB_ATTR_ID_SERVERNAMEstatic StringDB_ATTR_ID_USERNAMEstatic StringDB_ATTR_JDBC_URLstatic booleandisableMetaStore
-
Constructor Summary
Constructors Constructor Description MetaStoreConst()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidenableDefaultToLocalXml()When this is enabled, if the MetastoreLocator returns null, a local xml metastore will be returned.static org.pentaho.metastore.api.IMetaStoregetDefaultMetastore()static Supplier<org.pentaho.metastore.api.IMetaStore>getDefaultMetastoreSupplier()static StringgetDefaultPentahoMetaStoreLocation()static org.pentaho.metastore.api.IMetaStoreopenLocalPentahoMetaStore()static org.pentaho.metastore.api.IMetaStoreopenLocalPentahoMetaStore(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.
-
-