Package org.pentaho.di.base
Class AbstractMeta
- java.lang.Object
-
- org.pentaho.di.base.AbstractMeta
-
- All Implemented Interfaces:
org.pentaho.di.core.AttributesInterface,ChangedFlagInterface,EngineMetaInterface,UndoInterface,org.pentaho.di.core.logging.LoggingObjectInterface,org.pentaho.di.core.logging.LoggingObjectLifecycleInterface,org.pentaho.di.core.parameters.NamedParams,org.pentaho.di.core.variables.VariableSpace,HasRepositoryInterface,org.pentaho.di.repository.RepositoryElementInterface,org.pentaho.di.repository.RepositoryObjectInterface,HasDatabasesInterface,HasSlaveServersInterface
public abstract class AbstractMeta extends Object implements ChangedFlagInterface, UndoInterface, HasDatabasesInterface, org.pentaho.di.core.variables.VariableSpace, EngineMetaInterface, org.pentaho.di.core.parameters.NamedParams, HasSlaveServersInterface, org.pentaho.di.core.AttributesInterface, HasRepositoryInterface, org.pentaho.di.core.logging.LoggingObjectInterface
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,Map<String,String>>attributesMapprotected booleanchangedDatabasesprotected ChangedFlagchangedFlagprotected booleanchangedNotesprotected ChannelLogTablechannelLogTableprotected StringcontainerObjectIdprotected Set<ContentChangedListener>contentChangedListenersprotected DatecreatedDateprotected StringcreatedUserprotected Set<CurrentDirectoryChangedListener>currentDirectoryChangedListenersprotected List<org.pentaho.di.core.database.DatabaseMeta>databasesprotected Stringdescriptionprotected org.pentaho.di.repository.RepositoryDirectoryInterfacedirectoryprotected EmbeddedMetaStoreembeddedMetaStoreprotected StringextendedDescriptionprotected Stringfilenameprotected Set<FilenameChangedListener>filenameChangedListenersprotected org.pentaho.di.core.logging.LogLevellogLevelprotected intmax_undoprotected org.pentaho.metastore.api.IMetaStoremetaStoreprotected org.pentaho.di.core.osgi.api.MetastoreLocatorOsgimetastoreLocatorOsgiprotected DatemodifiedDateprotected StringmodifiedUserprotected Stringnameprotected Set<NameChangedListener>nameChangedListenersprotected NamedClusterEmbedManagernamedClusterEmbedManagerprotected org.pentaho.di.core.osgi.api.NamedClusterServiceOsginamedClusterServiceOsgiprotected org.pentaho.di.core.parameters.NamedParamsnamedParamsprotected List<NotePadMeta>notesprotected org.pentaho.di.repository.ObjectIdobjectIdprotected org.pentaho.di.repository.ObjectRevisionobjectRevisionprotected Set<String>privateDatabasesThe set of names of databases available only for this meta.protected RepositoryrepositoryThe repository to reference in the one-off case that it is neededprotected org.pentaho.di.base.AbstractMeta.RunOptionsrunOptionsprotected SharedObjectssharedObjectsThe last loaded version of the shared objectsprotected StringsharedObjectsFileIf this is null, we load from the default shared objects file : $KETTLE_HOME/.kettle/shared.xmlprotected List<SlaveServer>slaveServersstatic intTYPE_UNDO_CHANGEConstant = 1static intTYPE_UNDO_DELETEConstant = 3static intTYPE_UNDO_NEWConstant = 2static intTYPE_UNDO_POSITIONConstant = 4protected List<TransAction>undoprotected intundo_positionprotected org.pentaho.di.core.variables.VariableSpacevariables
-
Constructor Summary
Constructors Constructor Description AbstractMeta()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidactivateParameters()voidaddContentChangedListener(ContentChangedListener listener)Adds the passed ContentChangedListener to the list of listeners.voidaddCurrentDirectoryChangedListener(CurrentDirectoryChangedListener listener)Remove listenervoidaddDatabase(int p, org.pentaho.di.core.database.DatabaseMeta ci)Add a database connection to the transformation on a certain location.voidaddDatabase(org.pentaho.di.core.database.DatabaseMeta ci)Add a database connection to the transformation.protected voidaddDatabase(org.pentaho.di.core.database.DatabaseMeta databaseMeta, boolean replace)voidaddFilenameChangedListener(FilenameChangedListener listener)Adds the filename changed listener.voidaddNameChangedListener(NameChangedListener listener)Adds the name changed listener.voidaddNote(int p, NotePadMeta ni)Add a new note at a certain location (i.e.voidaddNote(NotePadMeta ni)Add a new note.voidaddObserver(PDIObserver o)voidaddOrReplaceDatabase(org.pentaho.di.core.database.DatabaseMeta databaseMeta)Add a database connection to the transformation if that connection didn't exists yet.voidaddOrReplaceSlaveServer(SlaveServer slaveServer)Add a new slave server to the transformation if that didn't exist yet.voidaddParameterDefinition(String key, String defValue, String description)voidaddUndo(Object[] from, Object[] to, int[] pos, org.pentaho.di.core.gui.Point[] prev, org.pentaho.di.core.gui.Point[] curr, int type_of_change, boolean nextAlso)Add an undo operation to the undo listbooleancanSave()Checks whether the job can be saved.voidclear()voidclearChanged()Clears the changed flag of this.voidclearChangedDatabases()Clears the flags for whether the transformation's databases have changed.voidclearCurrentDirectoryChangedListeners()voidclearNameChangedListeners()Removes all the name changed listenersvoidclearParameters()voidclearUndo()Clear undo.protected intcompare(AbstractMeta meta1, AbstractMeta meta2)voidcopyParametersFrom(org.pentaho.di.core.parameters.NamedParams params)voidcopyVariablesFrom(org.pentaho.di.core.variables.VariableSpace space)voiddeleteObserver(PDIObserver o)voiddisposeEmbeddedMetastoreProvider()StringenvironmentSubstitute(String aString)String[]environmentSubstitute(String[] aString)voideraseParameters()StringfieldSubstitute(String aString, org.pentaho.di.core.row.RowMetaInterface rowMeta, Object[] rowData)org.pentaho.di.core.database.DatabaseMetafindDatabase(String name)Find a database connection by it's nameSlaveServerfindSlaveServer(String serverString)Find a slave server using the nameprotected voidfireContentChangedListeners()Fire content changed listeners.protected voidfireContentChangedListeners(boolean ch)protected voidfireCurrentDirectoryChanged(String previous, String current)Notify listeners of a change in current directory.protected voidfireFilenameChangedListeners(String oldFilename, String newFilename)Fire filename changed listeners.protected voidfireNameChangedListeners(String oldName, String newName)Fire name changed listeners.protected List<org.pentaho.di.shared.SharedObjectInterface>getAllSharedObjects()StringgetAttribute(String groupName, String key)Map<String,String>getAttributes(String groupName)Map<String,Map<String,String>>getAttributesMap()booleangetBooleanValueOfVariable(String variableName, boolean defaultValue)ChannelLogTablegetChannelLogTable()Gets the channel log table for the job.StringgetContainerObjectId()Gets the container object id.List<ContentChangedListener>getContentChangedListeners()DategetCreatedDate()Gets the date the transformation was created.StringgetCreatedUser()Gets the user by whom the transformation was created.org.pentaho.di.core.database.DatabaseMetagetDatabase(int i)Retrieves a database connection information a a certain location.String[]getDatabaseNames()Gets the database names.List<org.pentaho.di.core.database.DatabaseMeta>getDatabases()Returns a list of the databases.StringgetDescription()Gets the description of the job.EmbeddedMetaStoregetEmbeddedMetaStore()StringgetEmbeddedMetastoreProviderKey()StringgetExtendedDescription()Gets the extended description of the job.StringgetFilename()Gets the filename.org.pentaho.di.core.logging.LogLevelgetLogLevel()intgetMaxUndo()Get the maximum number of undo operations possibleIMetaFileCachegetMetaFileCache()org.pentaho.metastore.api.IMetaStoregetMetaStore()org.pentaho.di.core.osgi.api.MetastoreLocatorOsgigetMetastoreLocatorOsgi()DategetModifiedDate()Gets the date the transformation was modified.StringgetModifiedUser()Gets the user who last modified the transformation.StringgetName()Get the name of the transformation.NamedClusterEmbedManagergetNamedClusterEmbedManager()org.pentaho.di.core.osgi.api.NamedClusterServiceOsgigetNamedClusterServiceOsgi()NotePadMetagetNote(int i)Gets the note.NotePadMetagetNote(int x, int y)Find the note that is located on a certain point on the canvas.int[]getNoteIndexes(List<NotePadMeta> notes)Get an array of the locations of an array of notesList<NotePadMeta>getNotes()Gets the notes.StringgetObjectCopy()org.pentaho.di.repository.ObjectIdgetObjectId()StringgetObjectName()org.pentaho.di.repository.ObjectRevisiongetObjectRevision()StringgetParameterDefault(String key)StringgetParameterDescription(String key)StringgetParameterValue(String key)org.pentaho.di.core.logging.LoggingObjectInterfacegetParent()Gets the interface to the parent log object.org.pentaho.di.core.variables.VariableSpacegetParentVariableSpace()Set<String>getPrivateDatabases()Returns the set of databases available only for this meta or null if it was not initialized.DategetRegistrationDate()Gets the registration date for the transformation.RepositorygetRepository()Gets the repository.org.pentaho.di.repository.RepositoryDirectoryInterfacegetRepositoryDirectory()Gets the directory.List<NotePadMeta>getSelectedNotes()Gets a list of all selected notes.SharedObjectsgetSharedObjects()Gets the shared objects.StringgetSharedObjectsFile()Gets the shared objects file.String[]getSlaveServerNames()Gets an array of slave server names.List<SlaveServer>getSlaveServers()Gets a list of slave servers.intgetUndoSize()Gets the undo size.StringgetVariable(String variableName)StringgetVariable(String variableName, String defaultValue)BooleangetVersioningEnabled()Is versioning enabled.booleanhasChanged()inthashCode()booleanhasMissingPlugins()booleanhaveConnectionsChanged()Checks whether or not the connections have changed.booleanhaveNotesChanged()Checks whether or not any of the notes have been changed.voidimportFromMetaStore()intindexOfDatabase(org.pentaho.di.core.database.DatabaseMeta di)Find the location of databaseintindexOfNote(NotePadMeta ni)Finds the location (index) of the specified note.voidinitializeVariablesFrom(org.pentaho.di.core.variables.VariableSpace parent)voidinjectVariables(Map<String,String> prop)booleanisAlwaysShowRunOptions()booleanisClearingLog()booleanisLoggingObjectInUse()booleanisSafeModeEnabled()booleanisShowDialog()String[]listParameters()String[]listVariables()protected booleanloadSharedObject(org.pentaho.di.shared.SharedObjectInterface object)voidlowerNote(int p)Lowers a note to the "bottom" of the list by removing the note at the specified index and re-inserting it at the front.voidmergeParametersWith(org.pentaho.di.core.parameters.NamedParams params, boolean replace)voidnameFromFilename()Builds a name - if no name is set, yet - from the filenameTransActionnextUndo()Get the next undo transaction on the list.voidnotifyObservers(Object arg)intnrDatabases()Count the nr of databases in the transformation.intnrNotes()Gets the number of notes.TransActionpreviousUndo()Get the previous undo operation and change the undo pointervoidraiseNote(int p)Raises a note to the "top" of the list by removing the note at the specified index and re-inserting it at the end.SharedObjectsreadSharedObjects()Read shared objects.voidremoveContentChangedListener(ContentChangedListener listener)Removes the passed ContentChangedListener from the list of listeners.voidremoveCurrentDirectoryChangedListener(CurrentDirectoryChangedListener listener)Add a listener to be notified of design-time changes to current directory variablevoidremoveDatabase(int i)Removes a database from the transformation on a certain location.voidremoveFilenameChangedListener(FilenameChangedListener listener)Removes the filename changed listener.voidremoveNameChangedListener(NameChangedListener listener)Removes the name changed listener.voidremoveNote(int i)Removes a note at a certain location (i.e.voidsaveMetaStoreObjects(Repository repository, org.pentaho.metastore.api.IMetaStore metaStore)Deprecated.This method is empty since 2013.voidsaveSharedObjects()Saves shared objects, including databases, steps, partition schemas, slave servers, and cluster schemas, to a file.voidsetAlwaysShowRunOptions(boolean alwaysShowRunOptions)voidsetAttribute(String groupName, String key, String value)voidsetAttributes(String groupName, Map<String,String> attributes)voidsetAttributesMap(Map<String,Map<String,String>> attributesMap)voidsetCarteObjectId(String containerObjectId)Sets the carte object id.voidsetChanged()voidsetChanged(boolean ch)voidsetChannelLogTable(ChannelLogTable channelLogTable)Sets the channel log table for the job.voidsetClearingLog(boolean clearingLog)voidsetCreatedDate(Date createdDate)Sets the date the transformation was created.voidsetCreatedUser(String createdUser)Sets the user by whom the transformation was created.voidsetDatabases(List<org.pentaho.di.core.database.DatabaseMeta> databases)Sets the databases.voidsetDescription(String description)Set the description of the job.voidsetExtendedDescription(String extendedDescription)Set the description of the job.voidsetFilename(String newFilename)Set the filename of the jobprotected abstract voidsetInternalFilenameKettleVariables(org.pentaho.di.core.variables.VariableSpace var)Sets the internal filename kettle variables.voidsetInternalKettleVariables()Calls setInternalKettleVariables on the default object.abstract voidsetInternalKettleVariables(org.pentaho.di.core.variables.VariableSpace var)This method sets various internal kettle variables.protected abstract voidsetInternalNameKettleVariable(org.pentaho.di.core.variables.VariableSpace var)Sets the internal name kettle variable.voidsetLogLevel(org.pentaho.di.core.logging.LogLevel logLevel)Sets the log level.voidsetMaxUndo(int mu)Sets the maximum number of undo operations that are allowed.voidsetMetaFileCache(IMetaFileCache metaFileCache)voidsetMetaStore(org.pentaho.metastore.api.IMetaStore metaStore)voidsetMetastoreLocatorOsgi(org.pentaho.di.core.osgi.api.MetastoreLocatorOsgi metastoreLocatorOsgi)voidsetModifiedDate(Date modifiedDate)Sets the date the transformation was modified.voidsetModifiedUser(String modifiedUser)Sets the user who last modified the transformation.voidsetName(String newName)Set the name.voidsetNamedClusterServiceOsgi(org.pentaho.di.core.osgi.api.NamedClusterServiceOsgi namedClusterServiceOsgi)voidsetObjectId(org.pentaho.di.repository.ObjectId objectId)Set the database ID for this in the repository.voidsetObjectRevision(org.pentaho.di.repository.ObjectRevision objectRevision)voidsetParameterValue(String key, String value)voidsetParentVariableSpace(org.pentaho.di.core.variables.VariableSpace parent)voidsetPrivateDatabases(Set<String> privateDatabases)Sets private databases' namesvoidsetRepository(Repository repository)Sets the repository.voidsetRepositoryDirectory(org.pentaho.di.repository.RepositoryDirectoryInterface directory)Sets the directory.voidsetSafeModeEnabled(boolean safeModeEnabled)voidsetSharedObjects(SharedObjects sharedObjects)Sets the shared objects.voidsetSharedObjectsFile(String sharedObjectsFile)Sets the shared objects file.voidsetShowDialog(boolean showDialog)voidsetSlaveServers(List<SlaveServer> slaveServers)Sets the slave servers.voidsetVariable(String variableName, String variableValue)voidsetVersioningEnabled(Boolean versioningEnabled)Set versioning enabledvoidshareVariablesWith(org.pentaho.di.core.variables.VariableSpace space)protected booleanshouldOverwrite(org.pentaho.di.core.gui.OverwritePrompter prompter, org.pentaho.di.core.Props props, String message, String rememberMessage)TransActionviewNextUndo()Get the next undo transaction on the list.TransActionviewPreviousUndo()View previous undo, don't change undo positionTransActionviewThisUndo()View current undo, don't change undo position-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.pentaho.di.core.EngineMetaInterface
getDefaultExtension, getFileType, getFilterExtensions, getFilterNames, getXML
-
Methods inherited from interface org.pentaho.di.core.logging.LoggingObjectInterface
getLogChannelId, getObjectType, isForcingSeparateLogging, isGatheringMetrics, setForcingSeparateLogging, setGatheringMetrics
-
Methods inherited from interface org.pentaho.di.core.logging.LoggingObjectLifecycleInterface
callAfterLog, callBeforeLog
-
-
-
-
Field Detail
-
TYPE_UNDO_CHANGE
public static final int TYPE_UNDO_CHANGE
Constant = 1- See Also:
- Constant Field Values
-
TYPE_UNDO_NEW
public static final int TYPE_UNDO_NEW
Constant = 2- See Also:
- Constant Field Values
-
TYPE_UNDO_DELETE
public static final int TYPE_UNDO_DELETE
Constant = 3- See Also:
- Constant Field Values
-
TYPE_UNDO_POSITION
public static final int TYPE_UNDO_POSITION
Constant = 4- See Also:
- Constant Field Values
-
objectId
protected org.pentaho.di.repository.ObjectId objectId
-
objectRevision
protected org.pentaho.di.repository.ObjectRevision objectRevision
-
containerObjectId
protected String containerObjectId
-
name
protected String name
-
description
protected String description
-
extendedDescription
protected String extendedDescription
-
filename
protected String filename
-
directory
protected org.pentaho.di.repository.RepositoryDirectoryInterface directory
-
repository
protected Repository repository
The repository to reference in the one-off case that it is needed
-
databases
protected List<org.pentaho.di.core.database.DatabaseMeta> databases
-
nameChangedListeners
protected Set<NameChangedListener> nameChangedListeners
-
filenameChangedListeners
protected Set<FilenameChangedListener> filenameChangedListeners
-
contentChangedListeners
protected Set<ContentChangedListener> contentChangedListeners
-
currentDirectoryChangedListeners
protected Set<CurrentDirectoryChangedListener> currentDirectoryChangedListeners
-
slaveServers
protected List<SlaveServer> slaveServers
-
notes
protected List<NotePadMeta> notes
-
channelLogTable
protected ChannelLogTable channelLogTable
-
changedNotes
protected boolean changedNotes
-
changedDatabases
protected boolean changedDatabases
-
undo
protected List<TransAction> undo
-
embeddedMetaStore
protected EmbeddedMetaStore embeddedMetaStore
-
variables
protected org.pentaho.di.core.variables.VariableSpace variables
-
namedParams
protected org.pentaho.di.core.parameters.NamedParams namedParams
-
logLevel
protected org.pentaho.di.core.logging.LogLevel logLevel
-
metaStore
protected org.pentaho.metastore.api.IMetaStore metaStore
-
createdUser
protected String createdUser
-
modifiedUser
protected String modifiedUser
-
createdDate
protected Date createdDate
-
modifiedDate
protected Date modifiedDate
-
namedClusterServiceOsgi
protected org.pentaho.di.core.osgi.api.NamedClusterServiceOsgi namedClusterServiceOsgi
-
metastoreLocatorOsgi
protected org.pentaho.di.core.osgi.api.MetastoreLocatorOsgi metastoreLocatorOsgi
-
namedClusterEmbedManager
protected NamedClusterEmbedManager namedClusterEmbedManager
-
sharedObjectsFile
protected String sharedObjectsFile
If this is null, we load from the default shared objects file : $KETTLE_HOME/.kettle/shared.xml
-
sharedObjects
protected SharedObjects sharedObjects
The last loaded version of the shared objects
-
changedFlag
protected final ChangedFlag changedFlag
-
max_undo
protected int max_undo
-
undo_position
protected int undo_position
-
runOptions
protected org.pentaho.di.base.AbstractMeta.RunOptions runOptions
-
-
Method Detail
-
isShowDialog
public boolean isShowDialog()
-
setShowDialog
public void setShowDialog(boolean showDialog)
-
isAlwaysShowRunOptions
public boolean isAlwaysShowRunOptions()
-
setAlwaysShowRunOptions
public void setAlwaysShowRunOptions(boolean alwaysShowRunOptions)
-
getObjectId
public org.pentaho.di.repository.ObjectId getObjectId()
- Specified by:
getObjectIdin interfaceorg.pentaho.di.core.logging.LoggingObjectInterface- Specified by:
getObjectIdin interfaceorg.pentaho.di.repository.RepositoryElementInterface- Specified by:
getObjectIdin interfaceorg.pentaho.di.repository.RepositoryObjectInterface
-
setObjectId
public void setObjectId(org.pentaho.di.repository.ObjectId objectId)
Description copied from interface:EngineMetaInterfaceSet the database ID for this in the repository.- Specified by:
setObjectIdin interfaceEngineMetaInterface- Specified by:
setObjectIdin interfaceorg.pentaho.di.repository.RepositoryElementInterface- Parameters:
objectId- the database ID for this in the repository
-
getContainerObjectId
public String getContainerObjectId()
Gets the container object id.- Specified by:
getContainerObjectIdin interfaceorg.pentaho.di.core.logging.LoggingObjectInterface- Returns:
- the carteObjectId
-
setCarteObjectId
public void setCarteObjectId(String containerObjectId)
Sets the carte object id.- Parameters:
containerObjectId- the execution container Object id to set
-
getName
public String getName()
Get the name of the transformation.- Specified by:
getNamein interfaceEngineMetaInterface- Specified by:
getNamein interfaceorg.pentaho.di.repository.RepositoryElementInterface- Specified by:
getNamein interfaceorg.pentaho.di.repository.RepositoryObjectInterface- Returns:
- The name of the transformation
-
setName
public void setName(String newName)
Set the name.- Specified by:
setNamein interfaceorg.pentaho.di.repository.RepositoryElementInterface- Parameters:
newName- The new name
-
getDescription
public String getDescription()
Gets the description of the job.- Specified by:
getDescriptionin interfaceorg.pentaho.di.repository.RepositoryElementInterface- Returns:
- The description of the job
-
setDescription
public void setDescription(String description)
Set the description of the job.- Specified by:
setDescriptionin interfaceorg.pentaho.di.repository.RepositoryElementInterface- Parameters:
description- The new description of the job
-
getExtendedDescription
public String getExtendedDescription()
Gets the extended description of the job.- Returns:
- The extended description of the job
-
setExtendedDescription
public void setExtendedDescription(String extendedDescription)
Set the description of the job.- Parameters:
extendedDescription- The new extended description of the job
-
nameFromFilename
public void nameFromFilename()
Builds a name - if no name is set, yet - from the filename- Specified by:
nameFromFilenamein interfaceEngineMetaInterface
-
getFilename
public String getFilename()
Gets the filename.- Specified by:
getFilenamein interfaceEngineMetaInterface- Specified by:
getFilenamein interfaceorg.pentaho.di.core.logging.LoggingObjectInterface- Returns:
- filename
- See Also:
EngineMetaInterface.getFilename()
-
setFilename
public void setFilename(String newFilename)
Set the filename of the job- Specified by:
setFilenamein interfaceEngineMetaInterface- Parameters:
newFilename- The new filename of the job
-
getRepositoryDirectory
public org.pentaho.di.repository.RepositoryDirectoryInterface getRepositoryDirectory()
Gets the directory.- Specified by:
getRepositoryDirectoryin interfaceEngineMetaInterface- Specified by:
getRepositoryDirectoryin interfaceorg.pentaho.di.core.logging.LoggingObjectInterface- Specified by:
getRepositoryDirectoryin interfaceorg.pentaho.di.repository.RepositoryElementInterface- Returns:
- Returns the directory.
-
setRepositoryDirectory
public void setRepositoryDirectory(org.pentaho.di.repository.RepositoryDirectoryInterface directory)
Sets the directory.- Specified by:
setRepositoryDirectoryin interfaceorg.pentaho.di.repository.RepositoryElementInterface- Parameters:
directory- The directory to set.
-
getRepository
public Repository getRepository()
Gets the repository.- Specified by:
getRepositoryin interfaceHasRepositoryInterface- Returns:
- the repository
-
setRepository
public void setRepository(Repository repository)
Sets the repository.- Specified by:
setRepositoryin interfaceHasRepositoryInterface- Parameters:
repository- the repository to set
-
setInternalKettleVariables
public void setInternalKettleVariables()
Calls setInternalKettleVariables on the default object.- Specified by:
setInternalKettleVariablesin interfaceEngineMetaInterface
-
setInternalKettleVariables
public abstract void setInternalKettleVariables(org.pentaho.di.core.variables.VariableSpace var)
This method sets various internal kettle variables.
-
setInternalFilenameKettleVariables
protected abstract void setInternalFilenameKettleVariables(org.pentaho.di.core.variables.VariableSpace var)
Sets the internal filename kettle variables.- Parameters:
var- the new internal filename kettle variables
-
findDatabase
public org.pentaho.di.core.database.DatabaseMeta findDatabase(String name)
Find a database connection by it's name- Specified by:
findDatabasein interfaceHasDatabasesInterface- Parameters:
name- The database name to look for- Returns:
- The database connection or null if nothing was found.
-
nrDatabases
public int nrDatabases()
Description copied from interface:HasDatabasesInterfaceCount the nr of databases in the transformation.- Specified by:
nrDatabasesin interfaceHasDatabasesInterface- Returns:
- The nr of databases
-
getDatabase
public org.pentaho.di.core.database.DatabaseMeta getDatabase(int i)
Description copied from interface:HasDatabasesInterfaceRetrieves a database connection information a a certain location.- Specified by:
getDatabasein interfaceHasDatabasesInterface- Parameters:
i- The database number.- Returns:
- The database connection information.
-
importFromMetaStore
public void importFromMetaStore() throws org.pentaho.metastore.api.exceptions.MetaStoreException, org.pentaho.di.core.exception.KettlePluginException- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreExceptionorg.pentaho.di.core.exception.KettlePluginException
-
addNameChangedListener
public void addNameChangedListener(NameChangedListener listener)
Adds the name changed listener.- Parameters:
listener- the listener
-
removeNameChangedListener
public void removeNameChangedListener(NameChangedListener listener)
Removes the name changed listener.- Parameters:
listener- the listener
-
clearNameChangedListeners
public void clearNameChangedListeners()
Removes all the name changed listeners
-
fireNameChangedListeners
protected void fireNameChangedListeners(String oldName, String newName)
Fire name changed listeners.- Parameters:
oldName- the old namenewName- the new name
-
addFilenameChangedListener
public void addFilenameChangedListener(FilenameChangedListener listener)
Adds the filename changed listener.- Parameters:
listener- the listener
-
removeFilenameChangedListener
public void removeFilenameChangedListener(FilenameChangedListener listener)
Removes the filename changed listener.- Parameters:
listener- the listener
-
fireFilenameChangedListeners
protected void fireFilenameChangedListeners(String oldFilename, String newFilename)
Fire filename changed listeners.- Parameters:
oldFilename- the old filenamenewFilename- the new filename
-
addContentChangedListener
public void addContentChangedListener(ContentChangedListener listener)
Adds the passed ContentChangedListener to the list of listeners.- Parameters:
listener-
-
removeContentChangedListener
public void removeContentChangedListener(ContentChangedListener listener)
Removes the passed ContentChangedListener from the list of listeners.- Parameters:
listener-
-
getContentChangedListeners
public List<ContentChangedListener> getContentChangedListeners()
-
fireContentChangedListeners
protected void fireContentChangedListeners()
Fire content changed listeners.
-
fireContentChangedListeners
protected void fireContentChangedListeners(boolean ch)
-
addCurrentDirectoryChangedListener
public void addCurrentDirectoryChangedListener(CurrentDirectoryChangedListener listener)
Remove listener
-
removeCurrentDirectoryChangedListener
public void removeCurrentDirectoryChangedListener(CurrentDirectoryChangedListener listener)
Add a listener to be notified of design-time changes to current directory variable
-
clearCurrentDirectoryChangedListeners
public void clearCurrentDirectoryChangedListeners()
-
fireCurrentDirectoryChanged
protected void fireCurrentDirectoryChanged(String previous, String current)
Notify listeners of a change in current directory.
-
addOrReplaceSlaveServer
public void addOrReplaceSlaveServer(SlaveServer slaveServer)
Add a new slave server to the transformation if that didn't exist yet. Otherwise, replace it.- Parameters:
slaveServer- The slave server to be added.
-
getSlaveServers
public List<SlaveServer> getSlaveServers()
Gets a list of slave servers.- Specified by:
getSlaveServersin interfaceHasSlaveServersInterface- Returns:
- the slaveServer list
-
setSlaveServers
public void setSlaveServers(List<SlaveServer> slaveServers)
Sets the slave servers.- Parameters:
slaveServers- the slaveServers to set
-
findSlaveServer
public SlaveServer findSlaveServer(String serverString)
Find a slave server using the name- Parameters:
serverString- the name of the slave server- Returns:
- the slave server or null if we couldn't spot an approriate entry.
-
getSlaveServerNames
public String[] getSlaveServerNames()
Gets an array of slave server names.- Returns:
- An array list slave server names
-
addUndo
public void addUndo(Object[] from, Object[] to, int[] pos, org.pentaho.di.core.gui.Point[] prev, org.pentaho.di.core.gui.Point[] curr, int type_of_change, boolean nextAlso)
Description copied from interface:UndoInterfaceAdd an undo operation to the undo list- Specified by:
addUndoin interfaceUndoInterface- Parameters:
from- array of objects representing the old stateto- array of objectes representing the new statepos- An array of object locationsprev- An array of points representing the old positionscurr- An array of points representing the new positionstype_of_change- The type of change that's being done to the transformation.nextAlso- indicates that the next undo operation needs to follow this one.
-
clearUndo
public void clearUndo()
Clear undo.
-
nextUndo
public TransAction nextUndo()
Description copied from interface:UndoInterfaceGet the next undo transaction on the list. Change the undo pointer.- Specified by:
nextUndoin interfaceUndoInterface- Returns:
- The next undo transaction (for redo)
-
viewNextUndo
public TransAction viewNextUndo()
Description copied from interface:UndoInterfaceGet the next undo transaction on the list.- Specified by:
viewNextUndoin interfaceUndoInterface- Returns:
- The next undo transaction (for redo)
-
previousUndo
public TransAction previousUndo()
Description copied from interface:UndoInterfaceGet the previous undo operation and change the undo pointer- Specified by:
previousUndoin interfaceUndoInterface- Returns:
- The undo transaction to be performed.
-
viewThisUndo
public TransAction viewThisUndo()
View current undo, don't change undo position- Specified by:
viewThisUndoin interfaceUndoInterface- Returns:
- The current undo transaction
-
viewPreviousUndo
public TransAction viewPreviousUndo()
Description copied from interface:UndoInterfaceView previous undo, don't change undo position- Specified by:
viewPreviousUndoin interfaceUndoInterface- Returns:
- The previous undo transaction
-
getMaxUndo
public int getMaxUndo()
Description copied from interface:UndoInterfaceGet the maximum number of undo operations possible- Specified by:
getMaxUndoin interfaceUndoInterface- Returns:
- The maximum number of undo operations that are allowed.
-
setMaxUndo
public void setMaxUndo(int mu)
Description copied from interface:UndoInterfaceSets the maximum number of undo operations that are allowed.- Specified by:
setMaxUndoin interfaceUndoInterface- Parameters:
mu- The maximum number of undo operations that are allowed.
-
getUndoSize
public int getUndoSize()
Gets the undo size.- Returns:
- the undo size
-
getEmbeddedMetaStore
public EmbeddedMetaStore getEmbeddedMetaStore()
-
setAttributesMap
public void setAttributesMap(Map<String,Map<String,String>> attributesMap)
- Specified by:
setAttributesMapin interfaceorg.pentaho.di.core.AttributesInterface
-
getAttributesMap
public Map<String,Map<String,String>> getAttributesMap()
- Specified by:
getAttributesMapin interfaceorg.pentaho.di.core.AttributesInterface
-
setAttribute
public void setAttribute(String groupName, String key, String value)
- Specified by:
setAttributein interfaceorg.pentaho.di.core.AttributesInterface
-
setAttributes
public void setAttributes(String groupName, Map<String,String> attributes)
- Specified by:
setAttributesin interfaceorg.pentaho.di.core.AttributesInterface
-
getAttributes
public Map<String,String> getAttributes(String groupName)
- Specified by:
getAttributesin interfaceorg.pentaho.di.core.AttributesInterface
-
getAttribute
public String getAttribute(String groupName, String key)
- Specified by:
getAttributein interfaceorg.pentaho.di.core.AttributesInterface
-
addNote
public void addNote(int p, NotePadMeta ni)Add a new note at a certain location (i.e. the specified index). Also marks that the notes have changed.- Parameters:
p- The index into the notes listni- The note to be added.
-
addNote
public void addNote(NotePadMeta ni)
Add a new note. Also marks that the notes have changed.- Parameters:
ni- The note to be added.
-
getNote
public NotePadMeta getNote(int x, int y)
Find the note that is located on a certain point on the canvas.- Parameters:
x- the x-coordinate of the point queriedy- the y-coordinate of the point queried- Returns:
- The note information if a note is located at the point. Otherwise, if nothing was found: null.
-
getNote
public NotePadMeta getNote(int i)
Gets the note.- Parameters:
i- the i- Returns:
- the note
-
getNotes
public List<NotePadMeta> getNotes()
Gets the notes.- Returns:
- the notes
-
getSelectedNotes
public List<NotePadMeta> getSelectedNotes()
Gets a list of all selected notes.- Returns:
- A list of all the selected notes.
-
indexOfNote
public int indexOfNote(NotePadMeta ni)
Finds the location (index) of the specified note.- Parameters:
ni- The note queried- Returns:
- The location of the note, or -1 if nothing was found.
-
lowerNote
public void lowerNote(int p)
Lowers a note to the "bottom" of the list by removing the note at the specified index and re-inserting it at the front. Also marks that the notes have changed.- Parameters:
p- the index into the notes list.
-
nrNotes
public int nrNotes()
Gets the number of notes.- Returns:
- The number of notes.
-
raiseNote
public void raiseNote(int p)
Raises a note to the "top" of the list by removing the note at the specified index and re-inserting it at the end. Also marks that the notes have changed.- Parameters:
p- the index into the notes list.
-
removeNote
public void removeNote(int i)
Removes a note at a certain location (i.e. the specified index). Also marks that the notes have changed.- Parameters:
i- The index into the notes list
-
haveNotesChanged
public boolean haveNotesChanged()
Checks whether or not any of the notes have been changed.- Returns:
- true if the notes have been changed, false otherwise
-
getNoteIndexes
public int[] getNoteIndexes(List<NotePadMeta> notes)
Get an array of the locations of an array of notes- Parameters:
notes- An array of notes- Returns:
- an array of the locations of an array of notes
-
getChannelLogTable
public ChannelLogTable getChannelLogTable()
Gets the channel log table for the job.- Returns:
- the channel log table for the job.
-
addOrReplaceDatabase
public void addOrReplaceDatabase(org.pentaho.di.core.database.DatabaseMeta databaseMeta)
Description copied from interface:HasDatabasesInterfaceAdd a database connection to the transformation if that connection didn't exists yet. Otherwise, replace the connection in the transformation- Specified by:
addOrReplaceDatabasein interfaceHasDatabasesInterface- Parameters:
databaseMeta- The database connection information.
-
addDatabase
protected void addDatabase(org.pentaho.di.core.database.DatabaseMeta databaseMeta, boolean replace)
-
addDatabase
public void addDatabase(org.pentaho.di.core.database.DatabaseMeta ci)
Description copied from interface:HasDatabasesInterfaceAdd a database connection to the transformation.- Specified by:
addDatabasein interfaceHasDatabasesInterface- Parameters:
ci- The database connection information.
-
addDatabase
public void addDatabase(int p, org.pentaho.di.core.database.DatabaseMeta ci)Description copied from interface:HasDatabasesInterfaceAdd a database connection to the transformation on a certain location.- Specified by:
addDatabasein interfaceHasDatabasesInterface- Parameters:
p- The locationci- The database connection information.
-
getDatabases
public List<org.pentaho.di.core.database.DatabaseMeta> getDatabases()
Returns a list of the databases.- Specified by:
getDatabasesin interfaceHasDatabasesInterface- Returns:
- Returns the databases.
-
getDatabaseNames
public String[] getDatabaseNames()
Gets the database names.- Returns:
- the database names
-
indexOfDatabase
public int indexOfDatabase(org.pentaho.di.core.database.DatabaseMeta di)
Description copied from interface:HasDatabasesInterfaceFind the location of database- Specified by:
indexOfDatabasein interfaceHasDatabasesInterface- Parameters:
di- The database queried- Returns:
- The location of the database, -1 if nothing was found.
-
setDatabases
public void setDatabases(List<org.pentaho.di.core.database.DatabaseMeta> databases)
Sets the databases.- Specified by:
setDatabasesin interfaceHasDatabasesInterface- Parameters:
databases- The databases to set.
-
haveConnectionsChanged
public boolean haveConnectionsChanged()
Description copied from interface:HasDatabasesInterfaceChecks whether or not the connections have changed.- Specified by:
haveConnectionsChangedin interfaceHasDatabasesInterface- Returns:
- True if the connections have been changed.
-
removeDatabase
public void removeDatabase(int i)
Description copied from interface:HasDatabasesInterfaceRemoves a database from the transformation on a certain location.- Specified by:
removeDatabasein interfaceHasDatabasesInterface- Parameters:
i- The location
-
clearChangedDatabases
public void clearChangedDatabases()
Clears the flags for whether the transformation's databases have changed.
-
setChannelLogTable
public void setChannelLogTable(ChannelLogTable channelLogTable)
Sets the channel log table for the job.- Parameters:
channelLogTable- the channelLogTable to set
-
copyVariablesFrom
public void copyVariablesFrom(org.pentaho.di.core.variables.VariableSpace space)
- Specified by:
copyVariablesFromin interfaceorg.pentaho.di.core.variables.VariableSpace
-
environmentSubstitute
public String environmentSubstitute(String aString)
- Specified by:
environmentSubstitutein interfaceorg.pentaho.di.core.variables.VariableSpace
-
environmentSubstitute
public String[] environmentSubstitute(String[] aString)
- Specified by:
environmentSubstitutein interfaceorg.pentaho.di.core.variables.VariableSpace
-
fieldSubstitute
public String fieldSubstitute(String aString, org.pentaho.di.core.row.RowMetaInterface rowMeta, Object[] rowData) throws org.pentaho.di.core.exception.KettleValueException
- Specified by:
fieldSubstitutein interfaceorg.pentaho.di.core.variables.VariableSpace- Throws:
org.pentaho.di.core.exception.KettleValueException
-
getParentVariableSpace
public org.pentaho.di.core.variables.VariableSpace getParentVariableSpace()
- Specified by:
getParentVariableSpacein interfaceorg.pentaho.di.core.variables.VariableSpace
-
setParentVariableSpace
public void setParentVariableSpace(org.pentaho.di.core.variables.VariableSpace parent)
- Specified by:
setParentVariableSpacein interfaceorg.pentaho.di.core.variables.VariableSpace
-
getVariable
public String getVariable(String variableName, String defaultValue)
- Specified by:
getVariablein interfaceorg.pentaho.di.core.variables.VariableSpace
-
getVariable
public String getVariable(String variableName)
- Specified by:
getVariablein interfaceorg.pentaho.di.core.variables.VariableSpace
-
getBooleanValueOfVariable
public boolean getBooleanValueOfVariable(String variableName, boolean defaultValue)
- Specified by:
getBooleanValueOfVariablein interfaceorg.pentaho.di.core.variables.VariableSpace
-
initializeVariablesFrom
public void initializeVariablesFrom(org.pentaho.di.core.variables.VariableSpace parent)
- Specified by:
initializeVariablesFromin interfaceorg.pentaho.di.core.variables.VariableSpace
-
listVariables
public String[] listVariables()
- Specified by:
listVariablesin interfaceorg.pentaho.di.core.variables.VariableSpace
-
setVariable
public void setVariable(String variableName, String variableValue)
- Specified by:
setVariablein interfaceorg.pentaho.di.core.variables.VariableSpace
-
shareVariablesWith
public void shareVariablesWith(org.pentaho.di.core.variables.VariableSpace space)
- Specified by:
shareVariablesWithin interfaceorg.pentaho.di.core.variables.VariableSpace
-
injectVariables
public void injectVariables(Map<String,String> prop)
- Specified by:
injectVariablesin interfaceorg.pentaho.di.core.variables.VariableSpace
-
addParameterDefinition
public void addParameterDefinition(String key, String defValue, String description) throws org.pentaho.di.core.parameters.DuplicateParamException
- Specified by:
addParameterDefinitionin interfaceorg.pentaho.di.core.parameters.NamedParams- Throws:
org.pentaho.di.core.parameters.DuplicateParamException
-
getParameterDescription
public String getParameterDescription(String key) throws org.pentaho.di.core.parameters.UnknownParamException
- Specified by:
getParameterDescriptionin interfaceorg.pentaho.di.core.parameters.NamedParams- Throws:
org.pentaho.di.core.parameters.UnknownParamException
-
getParameterDefault
public String getParameterDefault(String key) throws org.pentaho.di.core.parameters.UnknownParamException
- Specified by:
getParameterDefaultin interfaceorg.pentaho.di.core.parameters.NamedParams- Throws:
org.pentaho.di.core.parameters.UnknownParamException
-
getParameterValue
public String getParameterValue(String key) throws org.pentaho.di.core.parameters.UnknownParamException
- Specified by:
getParameterValuein interfaceorg.pentaho.di.core.parameters.NamedParams- Throws:
org.pentaho.di.core.parameters.UnknownParamException
-
listParameters
public String[] listParameters()
- Specified by:
listParametersin interfaceorg.pentaho.di.core.parameters.NamedParams
-
setParameterValue
public void setParameterValue(String key, String value) throws org.pentaho.di.core.parameters.UnknownParamException
- Specified by:
setParameterValuein interfaceorg.pentaho.di.core.parameters.NamedParams- Throws:
org.pentaho.di.core.parameters.UnknownParamException
-
eraseParameters
public void eraseParameters()
- Specified by:
eraseParametersin interfaceorg.pentaho.di.core.parameters.NamedParams
-
clearParameters
public void clearParameters()
- Specified by:
clearParametersin interfaceorg.pentaho.di.core.parameters.NamedParams
-
copyParametersFrom
public void copyParametersFrom(org.pentaho.di.core.parameters.NamedParams params)
- Specified by:
copyParametersFromin interfaceorg.pentaho.di.core.parameters.NamedParams
-
mergeParametersWith
public void mergeParametersWith(org.pentaho.di.core.parameters.NamedParams params, boolean replace)- Specified by:
mergeParametersWithin interfaceorg.pentaho.di.core.parameters.NamedParams
-
activateParameters
public void activateParameters()
- Specified by:
activateParametersin interfaceorg.pentaho.di.core.parameters.NamedParams
-
getLogLevel
public org.pentaho.di.core.logging.LogLevel getLogLevel()
- Specified by:
getLogLevelin interfaceorg.pentaho.di.core.logging.LoggingObjectInterface
-
setLogLevel
public void setLogLevel(org.pentaho.di.core.logging.LogLevel logLevel)
Sets the log level.- Parameters:
logLevel- the new log level
-
isLoggingObjectInUse
public boolean isLoggingObjectInUse()
- Specified by:
isLoggingObjectInUsein interfaceorg.pentaho.di.core.logging.LoggingObjectInterface
-
getMetaStore
public org.pentaho.metastore.api.IMetaStore getMetaStore()
-
setMetaStore
public void setMetaStore(org.pentaho.metastore.api.IMetaStore metaStore)
-
getSharedObjectsFile
public String getSharedObjectsFile()
Gets the shared objects file.- Returns:
- the sharedObjectsFile
-
setSharedObjectsFile
public void setSharedObjectsFile(String sharedObjectsFile)
Sets the shared objects file.- Parameters:
sharedObjectsFile- the sharedObjectsFile to set
-
getSharedObjects
public SharedObjects getSharedObjects()
Gets the shared objects.- Returns:
- the sharedObjects
-
setSharedObjects
public void setSharedObjects(SharedObjects sharedObjects)
Sets the shared objects.- Parameters:
sharedObjects- the sharedObjects to set
-
readSharedObjects
public SharedObjects readSharedObjects() throws org.pentaho.di.core.exception.KettleException
Read shared objects.- Returns:
- the shared objects
- Throws:
org.pentaho.di.core.exception.KettleException- the kettle exception
-
loadSharedObject
protected boolean loadSharedObject(org.pentaho.di.shared.SharedObjectInterface object)
-
setInternalNameKettleVariable
protected abstract void setInternalNameKettleVariable(org.pentaho.di.core.variables.VariableSpace var)
Sets the internal name kettle variable.- Parameters:
var- the new internal name kettle variable
-
getCreatedDate
public Date getCreatedDate()
Gets the date the transformation was created.- Specified by:
getCreatedDatein interfaceEngineMetaInterface- Returns:
- the date the transformation was created.
-
setCreatedDate
public void setCreatedDate(Date createdDate)
Sets the date the transformation was created.- Specified by:
setCreatedDatein interfaceEngineMetaInterface- Parameters:
createdDate- The creation date to set.
-
setCreatedUser
public void setCreatedUser(String createdUser)
Sets the user by whom the transformation was created.- Specified by:
setCreatedUserin interfaceEngineMetaInterface- Parameters:
createdUser- The user to set.
-
getCreatedUser
public String getCreatedUser()
Gets the user by whom the transformation was created.- Specified by:
getCreatedUserin interfaceEngineMetaInterface- Returns:
- the user by whom the transformation was created.
-
setModifiedDate
public void setModifiedDate(Date modifiedDate)
Sets the date the transformation was modified.- Specified by:
setModifiedDatein interfaceEngineMetaInterface- Parameters:
modifiedDate- The modified date to set.
-
getModifiedDate
public Date getModifiedDate()
Gets the date the transformation was modified.- Specified by:
getModifiedDatein interfaceEngineMetaInterface- Returns:
- the date the transformation was modified.
-
setModifiedUser
public void setModifiedUser(String modifiedUser)
Sets the user who last modified the transformation.- Specified by:
setModifiedUserin interfaceEngineMetaInterface- Parameters:
modifiedUser- The user name to set.
-
getModifiedUser
public String getModifiedUser()
Gets the user who last modified the transformation.- Specified by:
getModifiedUserin interfaceEngineMetaInterface- Returns:
- the user who last modified the transformation.
-
clear
public void clear()
-
clearChanged
public void clearChanged()
Description copied from interface:EngineMetaInterfaceClears the changed flag of this.- Specified by:
clearChangedin interfaceChangedFlagInterface- Specified by:
clearChangedin interfaceEngineMetaInterface
-
setChanged
public void setChanged()
- Specified by:
setChangedin interfaceChangedFlagInterface
-
setChanged
public final void setChanged(boolean ch)
- Specified by:
setChangedin interfaceChangedFlagInterface
-
addObserver
public void addObserver(PDIObserver o)
-
deleteObserver
public void deleteObserver(PDIObserver o)
-
notifyObservers
public void notifyObservers(Object arg)
-
canSave
public boolean canSave()
Checks whether the job can be saved. For JobMeta, this method always returns true- Specified by:
canSavein interfaceEngineMetaInterface- Returns:
- true
- See Also:
EngineMetaInterface.canSave()
-
hasChanged
public boolean hasChanged()
- Specified by:
hasChangedin interfaceChangedFlagInterface
-
getRegistrationDate
public Date getRegistrationDate()
Gets the registration date for the transformation. For AbstractMeta, this method always returns null.- Specified by:
getRegistrationDatein interfaceorg.pentaho.di.core.logging.LoggingObjectInterface- Returns:
- null
-
getParent
public org.pentaho.di.core.logging.LoggingObjectInterface getParent()
Gets the interface to the parent log object. For AbstractMeta, this method always returns null.- Specified by:
getParentin interfaceorg.pentaho.di.core.logging.LoggingObjectInterface- Returns:
- null
- See Also:
LoggingObjectInterface.getParent()
-
getObjectName
public String getObjectName()
- Specified by:
getObjectNamein interfaceorg.pentaho.di.core.logging.LoggingObjectInterface
-
getObjectCopy
public String getObjectCopy()
- Specified by:
getObjectCopyin interfaceorg.pentaho.di.core.logging.LoggingObjectInterface
-
getObjectRevision
public org.pentaho.di.repository.ObjectRevision getObjectRevision()
- Specified by:
getObjectRevisionin interfaceorg.pentaho.di.core.logging.LoggingObjectInterface- Specified by:
getObjectRevisionin interfaceorg.pentaho.di.repository.RepositoryElementInterface
-
setObjectRevision
public void setObjectRevision(org.pentaho.di.repository.ObjectRevision objectRevision)
- Specified by:
setObjectRevisionin interfaceorg.pentaho.di.repository.RepositoryElementInterface
-
shouldOverwrite
protected boolean shouldOverwrite(org.pentaho.di.core.gui.OverwritePrompter prompter, org.pentaho.di.core.Props props, String message, String rememberMessage)
-
hasMissingPlugins
public boolean hasMissingPlugins()
-
getPrivateDatabases
public Set<String> getPrivateDatabases()
Returns the set of databases available only for this meta or null if it was not initialized. Note, that the internal collection is returned with no protection wrapper!- Returns:
- nonSharableDatabases
-
setPrivateDatabases
public void setPrivateDatabases(Set<String> privateDatabases)
Sets private databases' names- Parameters:
privateDatabases- - The list of databases available only for this meta
-
saveSharedObjects
public void saveSharedObjects() throws org.pentaho.di.core.exception.KettleExceptionDescription copied from interface:EngineMetaInterfaceSaves shared objects, including databases, steps, partition schemas, slave servers, and cluster schemas, to a file.- Specified by:
saveSharedObjectsin interfaceEngineMetaInterface- Throws:
org.pentaho.di.core.exception.KettleException
-
getAllSharedObjects
protected List<org.pentaho.di.shared.SharedObjectInterface> getAllSharedObjects()
-
saveMetaStoreObjects
@Deprecated public void saveMetaStoreObjects(Repository repository, org.pentaho.metastore.api.IMetaStore metaStore) throws org.pentaho.metastore.api.exceptions.MetaStoreException
Deprecated.This method is empty since 2013.This method needs to be called to store those objects which are used and referenced in the transformation metadata but not saved in the XML serialization. For example, the Kettle data service definition is referenced by name but not stored when getXML() is called.- Parameters:
metaStore- The store to save to- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException- in case there is an error.
-
compare
protected int compare(AbstractMeta meta1, AbstractMeta meta2)
-
getNamedClusterServiceOsgi
public org.pentaho.di.core.osgi.api.NamedClusterServiceOsgi getNamedClusterServiceOsgi()
-
setNamedClusterServiceOsgi
public void setNamedClusterServiceOsgi(org.pentaho.di.core.osgi.api.NamedClusterServiceOsgi namedClusterServiceOsgi)
-
getMetastoreLocatorOsgi
public org.pentaho.di.core.osgi.api.MetastoreLocatorOsgi getMetastoreLocatorOsgi()
-
setMetastoreLocatorOsgi
public void setMetastoreLocatorOsgi(org.pentaho.di.core.osgi.api.MetastoreLocatorOsgi metastoreLocatorOsgi)
-
getNamedClusterEmbedManager
public NamedClusterEmbedManager getNamedClusterEmbedManager()
-
disposeEmbeddedMetastoreProvider
public void disposeEmbeddedMetastoreProvider()
-
getEmbeddedMetastoreProviderKey
public String getEmbeddedMetastoreProviderKey()
-
setVersioningEnabled
public void setVersioningEnabled(Boolean versioningEnabled)
Description copied from interface:EngineMetaInterfaceSet versioning enabled- Specified by:
setVersioningEnabledin interfaceEngineMetaInterface- Parameters:
versioningEnabled- is versioning enabled
-
getVersioningEnabled
public Boolean getVersioningEnabled()
Description copied from interface:EngineMetaInterfaceIs versioning enabled.- Specified by:
getVersioningEnabledin interfaceEngineMetaInterface- Returns:
- is versioning enabled
-
isClearingLog
public boolean isClearingLog()
-
setClearingLog
public void setClearingLog(boolean clearingLog)
-
isSafeModeEnabled
public boolean isSafeModeEnabled()
-
setSafeModeEnabled
public void setSafeModeEnabled(boolean safeModeEnabled)
-
getMetaFileCache
public IMetaFileCache getMetaFileCache()
-
setMetaFileCache
public void setMetaFileCache(IMetaFileCache metaFileCache)
-
-