Class DefaultBowl

java.lang.Object
org.pentaho.di.core.bowl.BaseBowl
org.pentaho.di.core.bowl.DefaultBowl
All Implemented Interfaces:
Bowl

public class DefaultBowl extends BaseBowl
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 Details

    • getInstance

      public static DefaultBowl getInstance()
    • getMetastore

      public org.pentaho.metastore.api.IMetaStore getMetastore() throws org.pentaho.metastore.api.exceptions.MetaStoreException
      Description copied from interface: Bowl
      Gets 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

      public <T> T getManager(Class<T> managerClass) throws KettleException
      Description copied from interface: Bowl
      Gets 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:
      getManager in interface Bowl
      Overrides:
      getManager in class BaseBowl
      Returns:
      a manager instance, never null.
      Throws:
      KettleException - for other errors.
      See Also:
    • getADefaultVariableSpace

      public VariableSpace getADefaultVariableSpace()
      Description copied from interface: Bowl
      Get 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

      public void setMetastoreSupplier(Supplier<org.pentaho.metastore.api.IMetaStore> metastoreSupplier)
      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.
    • getSharedObjectsIO

      public SharedObjectsIO getSharedObjectsIO()
      Creates and return an instance of SharedObjectsIO using the default shared objects file location
      Returns:
      SharedObjectsIO
    • setSharedObjectsIO

      public void setSharedObjectsIO(SharedObjectsIO sharedObjectsIO)
    • getLevelDisplayName

      public String getLevelDisplayName()
      Description copied from interface: Bowl
      Return the display name of the level. This string should be read from resource file
      Specified by:
      getLevelDisplayName in interface Bowl
      Overrides:
      getLevelDisplayName in class BaseBowl
      Returns:
      level name
    • clearCache

      public void clearCache()
      Description copied from interface: Bowl
      Clear any cached objects in the Bowl and its Managers
      Specified by:
      clearCache in interface Bowl
      Overrides:
      clearCache in class BaseBowl