Package org.pentaho.di.core.logging
Class TransLogTable
java.lang.Object
org.pentaho.di.core.logging.BaseLogTable
org.pentaho.di.core.logging.TransLogTable
- All Implemented Interfaces:
Cloneable,org.pentaho.di.core.logging.LogTableCoreInterface,LogTableInterface
This class describes a transformation logging table
- Author:
- matt
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe client executing the transformation -
Field Summary
FieldsFields inherited from class org.pentaho.di.core.logging.BaseLogTable
connectionName, databasesInterface, fields, PROP_LOG_TABLE_CONNECTION_NAME, PROP_LOG_TABLE_FIELD_ENABLED, PROP_LOG_TABLE_FIELD_ID, PROP_LOG_TABLE_FIELD_NAME, PROP_LOG_TABLE_FIELD_SUBJECT, PROP_LOG_TABLE_INTERVAL, PROP_LOG_TABLE_SCHEMA_NAME, PROP_LOG_TABLE_SIZE_LIMIT, PROP_LOG_TABLE_TABLE_NAME, PROP_LOG_TABLE_TIMEOUT_DAYS, schemaName, space, tableName, timeoutInDays -
Constructor Summary
ConstructorsConstructorDescriptionTransLogTable(org.pentaho.di.core.variables.VariableSpace space, HasDatabasesInterface databasesInterface, List<StepMeta> steps) -
Method Summary
Modifier and TypeMethodDescriptionclone()org.pentaho.di.core.logging.LogTableFieldstatic TransLogTablegetDefault(org.pentaho.di.core.variables.VariableSpace space, HasDatabasesInterface databasesInterface, List<StepMeta> steps) Get the logging interval in seconds.org.pentaho.di.core.RowMetaAndDatagetLogRecord(org.pentaho.di.core.logging.LogStatus status, Object subject, Object parent) This method calculates all the values that are requiredList<org.pentaho.di.core.row.RowMetaInterface>getXML()booleanbooleanvoidloadFromRepository(org.pentaho.di.repository.RepositoryAttributeInterface attributeInterface) voidLoad the information for this logging table from the job XML nodevoidreplaceMeta(org.pentaho.di.core.logging.LogTableCoreInterface logTableInterface) voidsaveToRepository(org.pentaho.di.repository.RepositoryAttributeInterface attributeInterface) Save this core information of the log table to the repository using the specified attribute interface.voidvoidsetBatchIdUsed(boolean use) voidsetLogFieldUsed(boolean use) voidsetLogInterval(String logInterval) Sets the logging interval in seconds.voidsetLogSizeLimit(String logSizeLimit) voidsetStepInput(StepMeta input) voidsetStepOutput(StepMeta output) voidsetStepRead(StepMeta read) voidsetStepRejected(StepMeta rejected) voidsetStepUpdate(StepMeta update) voidsetStepWritten(StepMeta written) Methods inherited from class org.pentaho.di.core.logging.BaseLogTable
addFieldsToIndex, addFieldToIndex, computeValueMeta, containsKeyField, equals, findField, generateTableSQL, getActualConnectionName, getActualSchemaName, getActualTableName, getConnectionName, getDatabaseMeta, getErrorsField, getFields, getFieldsXML, getKeyField, getLogBuffer, getLogBuffer, getLogDateField, getLogField, getNameField, getQuotedSchemaTableCombination, getSchemaName, getStatusField, getSubject, getSubjectString, getTableName, getTimeoutInDays, isDefined, isGlobalParameter, loadFieldsXML, replaceMeta, setConnectionName, setFields, setSchemaName, setTableName, setTimeoutInDays, toStringMethods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.pentaho.di.core.logging.LogTableCoreInterface
getActualSchemaName, getActualTableName, getConnectionName, getDatabaseMeta, getErrorsField, getFields, getKeyField, getLogDateField, getLogField, getNameField, getQuotedSchemaTableCombination, getSchemaName, getStatusField, getTableName, getTimeoutInDays, isDefined, setConnectionNameMethods inherited from interface org.pentaho.di.core.logging.LogTableInterface
generateTableSQL
-
Field Details
-
XML_TAG
- See Also:
-
-
Constructor Details
-
TransLogTable
public TransLogTable(org.pentaho.di.core.variables.VariableSpace space, HasDatabasesInterface databasesInterface, List<StepMeta> steps)
-
-
Method Details
-
clone
- Specified by:
clonein interfaceorg.pentaho.di.core.logging.LogTableCoreInterface- Overrides:
clonein classBaseLogTable
-
getXML
- Specified by:
getXMLin interfaceLogTableInterface- Returns:
- The log table meta-data in XML format.
-
loadXML
public void loadXML(Node node, List<org.pentaho.di.core.database.DatabaseMeta> databases, List<StepMeta> steps) Description copied from interface:LogTableInterfaceLoad the information for this logging table from the job XML node- Specified by:
loadXMLin interfaceLogTableInterface- Parameters:
node- the node to load fromdatabases- the list of database to reference.steps- the steps to reference (or null)
-
saveToRepository
public void saveToRepository(org.pentaho.di.repository.RepositoryAttributeInterface attributeInterface) throws org.pentaho.di.core.exception.KettleException Description copied from class:BaseLogTableSave this core information of the log table to the repository using the specified attribute interface.- Specified by:
saveToRepositoryin interfaceorg.pentaho.di.core.logging.LogTableCoreInterface- Overrides:
saveToRepositoryin classBaseLogTable- Parameters:
attributeInterface- The attribute interface to use to set attributes- Throws:
org.pentaho.di.core.exception.KettleException
-
loadFromRepository
public void loadFromRepository(org.pentaho.di.repository.RepositoryAttributeInterface attributeInterface) throws org.pentaho.di.core.exception.KettleException - Specified by:
loadFromRepositoryin interfaceorg.pentaho.di.core.logging.LogTableCoreInterface- Overrides:
loadFromRepositoryin classBaseLogTable- Throws:
org.pentaho.di.core.exception.KettleException
-
replaceMeta
public void replaceMeta(org.pentaho.di.core.logging.LogTableCoreInterface logTableInterface) - Specified by:
replaceMetain interfaceorg.pentaho.di.core.logging.LogTableCoreInterface
-
getDefault
public static TransLogTable getDefault(org.pentaho.di.core.variables.VariableSpace space, HasDatabasesInterface databasesInterface, List<StepMeta> steps) -
findField
-
getSubject
-
getSubjectString
-
setBatchIdUsed
public void setBatchIdUsed(boolean use) -
isBatchIdUsed
public boolean isBatchIdUsed() -
setLogFieldUsed
public void setLogFieldUsed(boolean use) -
isLogFieldUsed
public boolean isLogFieldUsed() -
getStepnameRead
-
setStepRead
-
getStepnameWritten
-
setStepWritten
-
getStepnameInput
-
setStepInput
-
getStepnameOutput
-
setStepOutput
-
getStepnameUpdated
-
setStepUpdate
-
getStepnameRejected
-
setStepRejected
-
setLogInterval
Sets the logging interval in seconds. Disabled if the logging interval is <=0.- Parameters:
logInterval- The log interval value. A value higher than 0 means that the log table is updated every 'logInterval' seconds.
-
getLogInterval
Get the logging interval in seconds. Disabled if the logging interval is <=0. A value higher than 0 means that the log table is updated every 'logInterval' seconds.- Parameters:
logInterval- The log interval,
-
getLogSizeLimit
- Returns:
- the logSizeLimit
-
setLogSizeLimit
- Parameters:
logSizeLimit- the logSizeLimit to set
-
getLogRecord
public org.pentaho.di.core.RowMetaAndData getLogRecord(org.pentaho.di.core.logging.LogStatus status, Object subject, Object parent) This method calculates all the values that are required- Specified by:
getLogRecordin interfaceorg.pentaho.di.core.logging.LogTableCoreInterface- Parameters:
id- the id to use or -1 if no id is neededstatus- the log status to usesubject- the subject to query, in this case a Trans object
-
getLogTableCode
- Specified by:
getLogTableCodein classBaseLogTable
-
getLogTableType
- Specified by:
getLogTableTypein interfaceorg.pentaho.di.core.logging.LogTableCoreInterface
-
getConnectionNameVariable
- Specified by:
getConnectionNameVariablein interfaceorg.pentaho.di.core.logging.LogTableCoreInterface- Specified by:
getConnectionNameVariablein classBaseLogTable
-
getSchemaNameVariable
- Specified by:
getSchemaNameVariablein interfaceorg.pentaho.di.core.logging.LogTableCoreInterface- Specified by:
getSchemaNameVariablein classBaseLogTable
-
getTableNameVariable
- Specified by:
getTableNameVariablein interfaceorg.pentaho.di.core.logging.LogTableCoreInterface- Specified by:
getTableNameVariablein classBaseLogTable
-
getRecommendedIndexes
- Specified by:
getRecommendedIndexesin interfaceorg.pentaho.di.core.logging.LogTableCoreInterface
-
setAllGlobalParametersToNull
public void setAllGlobalParametersToNull()- Overrides:
setAllGlobalParametersToNullin classBaseLogTable
-