Package org.pentaho.di.core.bowl
Class DefaultBowl
java.lang.Object
org.pentaho.di.core.bowl.BaseBowl
org.pentaho.di.core.bowl.DefaultBowl
- All Implemented Interfaces:
Bowl
This Bowl will access the default local configuration for Kettle. It does not include configuration from any other
contexts.
This Bowl is roughly backwards-compatible with pre-Bowl behavior. It will access metastore configuration from a
connected Repository if there is one, but otherwise uses all local config.
If available, most code that needs a Bowl should get Bowls for Management from Spoon, and for execution from
TransMeta or JobMeta.
-
Method Summary
Modifier and TypeMethodDescriptionvoidClear any cached objects in the Bowl and its ManagersGet a default variable space using this Bowl's context.static DefaultBowlReturn the display name of the level.<T> TgetManager(Class<T> managerClass) Gets a Manager for some type of object specifically in the context of this Bowl.org.pentaho.metastore.api.IMetaStoreGets a Read-Only Metastore that handles any defaulting required for execution-time handling of metastores, for the Bowl.Creates and return an instance of SharedObjectsIO using the default shared objects file locationvoidsetMetastoreSupplier(Supplier<org.pentaho.metastore.api.IMetaStore> metastoreSupplier) Set a specific metastore supplier for use by later calls to this class.voidsetSharedObjectsIO(SharedObjectsIO sharedObjectsIO) Methods inherited from class org.pentaho.di.core.bowl.BaseBowl
addParentBowl, clearManagers, getParentBowlsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.pentaho.di.core.bowl.Bowl
getBowlPath
-
Method Details
-
getInstance
-
getMetastore
public org.pentaho.metastore.api.IMetaStore getMetastore() throws org.pentaho.metastore.api.exceptions.MetaStoreExceptionDescription copied from interface:BowlGets a Read-Only Metastore that handles any defaulting required for execution-time handling of metastores, for the Bowl.- Returns:
- IMetaStore A metastore for execution with the Bowl. Never null.
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
getManager
Description copied from interface:BowlGets a Manager for some type of object specifically in the context of this Bowl.Since constructing and initializing Managers can be expensive, and instances may share state or have other limitations, callers with a Bowl should use this method in favor of directly using the manager type.
- Specified by:
getManagerin interfaceBowl- Overrides:
getManagerin classBaseBowl- Returns:
- a manager instance, never null.
- Throws:
KettleException- for other errors.- See Also:
-
getADefaultVariableSpace
Description copied from interface:BowlGet a default variable space using this Bowl's context. Everytime you will get a new instance.Implementations may include different sets of Variables depending on what is in context for that Bowl.
- Returns:
- a default variable space.
-
setMetastoreSupplier
Set a specific metastore supplier for use by later calls to this class. Note that this will cause the ConnectionManager from this class and from ConnectionManager.getInstance() to return different instances. -
getLevelDisplayName
Description copied from interface:BowlReturn the display name of the level. This string should be read from resource file- Specified by:
getLevelDisplayNamein interfaceBowl- Overrides:
getLevelDisplayNamein classBaseBowl- Returns:
- level name
-
clearCache
public void clearCache()Description copied from interface:BowlClear any cached objects in the Bowl and its Managers- Specified by:
clearCachein interfaceBowl- Overrides:
clearCachein classBaseBowl
-