Package org.pentaho.di.core.logging
Interface LogTableCoreInterface
public interface LogTableCoreInterface
-
Method Summary
Modifier and TypeMethodDescriptionclone()Clone the log tablegetLogRecord(LogStatus status, Object subject, Object parent) Assemble the log record from the logging subject.booleanvoidloadFromRepository(RepositoryAttributeInterface attributeInterface) Loads details of the log table from a repository.voidreplaceMeta(LogTableCoreInterface logTableInterface) Replace the metadata of the logtable with the one of the specifiedvoidsaveToRepository(RepositoryAttributeInterface attributeInterface) Saves the log table to a repository.voidsetConnectionName(String connectionName)
-
Method Details
-
saveToRepository
Saves the log table to a repository.- Parameters:
attributeInterface- The attribute interface used to store the attributes- Throws:
KettleException
-
loadFromRepository
Loads details of the log table from a repository.- Parameters:
attributeInterface- The attribute interface used to load the attributes- Throws:
KettleException
-
getConnectionName
String getConnectionName() -
setConnectionName
-
getDatabaseMeta
DatabaseMeta getDatabaseMeta() -
getFields
List<LogTableField> getFields() -
getSchemaName
String getSchemaName()- Returns:
- The locally defined log schema name
-
getTableName
String getTableName()- Returns:
- The locally defined log table name
-
getActualSchemaName
String getActualSchemaName()- Returns:
- The actual schema name taking into account optionally defined KETTLE variables for global logging configuration
-
getActualTableName
String getActualTableName()- Returns:
- The actual table name taking into account optionally defined KETTLE variabled for global logging configuration
-
getLogRecord
Assemble the log record from the logging subject.- Parameters:
status- The status to logsubject- The subject object to logparent- The parent object to log- Returns:
- The log record to write
- Throws:
in- case there is a problem with the log record creation (incorrect settings, ...)KettleException
-
getLogTableType
String getLogTableType() -
getConnectionNameVariable
String getConnectionNameVariable() -
getSchemaNameVariable
String getSchemaNameVariable() -
getTableNameVariable
String getTableNameVariable() -
isDefined
boolean isDefined() -
getTimeoutInDays
String getTimeoutInDays()- Returns:
- The string that describes the timeout in days (variable supported) as a floating point number
-
getLogDateField
LogTableField getLogDateField()- Returns:
- the field that represents the log date field or null if none was defined.
-
getKeyField
LogTableField getKeyField()- Returns:
- the field that represents the key to this logging table (batch id etc)
-
getQuotedSchemaTableCombination
String getQuotedSchemaTableCombination()- Returns:
- the appropriately quoted (by the database metadata) schema/table combination
-
getLogField
LogTableField getLogField()- Returns:
- the field that represents the logging text (or null if none is found)
-
getStatusField
LogTableField getStatusField()- Returns:
- the field that represents the status (or null if none is found)
-
getErrorsField
LogTableField getErrorsField()- Returns:
- the field that represents the number of errors (or null if none is found)
-
getNameField
LogTableField getNameField()- Returns:
- the field that represents the name of the object that is being used (or null if none is found)
-
getRecommendedIndexes
List<RowMetaInterface> getRecommendedIndexes()- Returns:
- A list of rows that contain the recommended indexed fields for this logging table.
-
clone
Object clone()Clone the log table- Returns:
- The cloned log table
-
replaceMeta
Replace the metadata of the logtable with the one of the specified- Parameters:
logTableInterface- the new log table details
-