Class VariableSharingSharedObjectManager<T extends org.pentaho.di.shared.SharedObjectInterface<T> & org.pentaho.di.repository.RepositoryElementInterface & org.pentaho.di.core.variables.VariableSpace>

java.lang.Object
org.pentaho.di.shared.VariableSharingSharedObjectManager<T>
All Implemented Interfaces:
SharedObjectsManagementInterface<T>
Direct Known Subclasses:
VariableSharingClusterSchemaManager, VariableSharingDatabaseManager, VariableSharingSlaveServerManager

public class VariableSharingSharedObjectManager<T extends org.pentaho.di.shared.SharedObjectInterface<T> & org.pentaho.di.repository.RepositoryElementInterface & org.pentaho.di.core.variables.VariableSpace> extends Object implements SharedObjectsManagementInterface<T>
This Manager wraps another manager and shares variables with all SharedObjects retrieved from the parent manager.
  • Constructor Details

    • VariableSharingSharedObjectManager

      public VariableSharingSharedObjectManager(org.pentaho.di.core.variables.VariableSpace variables, SharedObjectsManagementInterface<T> parent)
  • Method Details

    • add

      public void add(T object) throws org.pentaho.di.core.exception.KettleException
      Description copied from interface: SharedObjectsManagementInterface
      Add the SharedObject to global or project specific file store(shared.xml) depending on the bowl
      Specified by:
      add in interface SharedObjectsManagementInterface<T extends org.pentaho.di.shared.SharedObjectInterface<T> & org.pentaho.di.repository.RepositoryElementInterface & org.pentaho.di.core.variables.VariableSpace>
      Parameters:
      object -
      Throws:
      org.pentaho.di.core.exception.KettleException
    • get

      public T get(String name) throws org.pentaho.di.core.exception.KettleException
      Description copied from interface: SharedObjectsManagementInterface
      Get a single SharedObject by name.
      Specified by:
      get in interface SharedObjectsManagementInterface<T extends org.pentaho.di.shared.SharedObjectInterface<T> & org.pentaho.di.repository.RepositoryElementInterface & org.pentaho.di.core.variables.VariableSpace>
      Parameters:
      name - name of the SharedObject
      Returns:
      SharedObjectInterface SharedObject instance
      Throws:
      org.pentaho.di.core.exception.KettleException
    • getAll

      public List<T> getAll() throws org.pentaho.di.core.exception.KettleException
      Description copied from interface: SharedObjectsManagementInterface
      Get the list of SharedObjects based on the current bowl
      Specified by:
      getAll in interface SharedObjectsManagementInterface<T extends org.pentaho.di.shared.SharedObjectInterface<T> & org.pentaho.di.repository.RepositoryElementInterface & org.pentaho.di.core.variables.VariableSpace>
      Returns:
      List Returns the list of DatabaseMeta
      Throws:
      org.pentaho.di.core.exception.KettleException
    • clear

      public void clear() throws org.pentaho.di.core.exception.KettleException
      Description copied from interface: SharedObjectsManagementInterface
      Removes all sharedObjects for a type
      Specified by:
      clear in interface SharedObjectsManagementInterface<T extends org.pentaho.di.shared.SharedObjectInterface<T> & org.pentaho.di.repository.RepositoryElementInterface & org.pentaho.di.core.variables.VariableSpace>
      Throws:
      org.pentaho.di.core.exception.KettleException
    • remove

      public void remove(T object) throws org.pentaho.di.core.exception.KettleException
      Description copied from interface: SharedObjectsManagementInterface
      Remove the SharedObject
      Specified by:
      remove in interface SharedObjectsManagementInterface<T extends org.pentaho.di.shared.SharedObjectInterface<T> & org.pentaho.di.repository.RepositoryElementInterface & org.pentaho.di.core.variables.VariableSpace>
      Parameters:
      object - SharedObject to remove
      Throws:
      org.pentaho.di.core.exception.KettleException
    • remove

      public void remove(String name) throws org.pentaho.di.core.exception.KettleException
      Description copied from interface: SharedObjectsManagementInterface
      Remove the provided database
      Specified by:
      remove in interface SharedObjectsManagementInterface<T extends org.pentaho.di.shared.SharedObjectInterface<T> & org.pentaho.di.repository.RepositoryElementInterface & org.pentaho.di.core.variables.VariableSpace>
      Parameters:
      name - name of the SharedObject to remove
      Throws:
      org.pentaho.di.core.exception.KettleException