Class PassthroughManager<T extends org.pentaho.di.shared.SharedObjectInterface<T> & org.pentaho.di.repository.RepositoryElementInterface>

java.lang.Object
org.pentaho.di.shared.PassthroughManager<T>
All Implemented Interfaces:
SharedObjectsManagementInterface<T>
Direct Known Subclasses:
PassthroughClusterSchemaManager, PassthroughDbConnectionManager, PassthroughPartitionSchemaManager, PassthroughSlaveServerManager

public abstract class PassthroughManager<T extends org.pentaho.di.shared.SharedObjectInterface<T> & org.pentaho.di.repository.RepositoryElementInterface> extends Object implements SharedObjectsManagementInterface<T>
This Manager that does not cache anything. Complete passthrough to the provided SharedObjectsIO instance.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    PassthroughManager(org.pentaho.di.shared.SharedObjectsIO sharedObjectsIO, String type)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(T object)
    Add the SharedObject to global or project specific file store(shared.xml) depending on the bowl
    void
    Removes all sharedObjects for a type
    protected abstract T
    This method is used to create concrete SharedObjectInterface implementation class.
    get(String name)
    Get a single SharedObject by name.
    Get the list of SharedObjects based on the current bowl
    void
    remove(String name)
    Remove the provided database
    void
    remove(T object)
    Remove the SharedObject

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PassthroughManager

      protected PassthroughManager(org.pentaho.di.shared.SharedObjectsIO sharedObjectsIO, String type)
  • Method Details

    • createSharedObjectUsingNode

      protected abstract T createSharedObjectUsingNode(Node node) throws org.pentaho.di.core.exception.KettleException
      This method is used to create concrete SharedObjectInterface implementation class. This will be implemented by subclasses.
      Parameters:
      node -
      Returns:
      Throws:
      org.pentaho.di.core.exception.KettleException
    • 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>
      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>
      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>
      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>
      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>
      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>
      Parameters:
      name - name of the SharedObject to remove
      Throws:
      org.pentaho.di.core.exception.KettleException