Package org.pentaho.di.core.logging
Class BaseLogTable
java.lang.Object
org.pentaho.di.core.logging.BaseLogTable
- Direct Known Subclasses:
ChannelLogTable,JobEntryLogTable,JobLogTable,MetricsLogTable,PerformanceLogTable,StepLogTable,TransLogTable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected HasDatabasesInterfaceprotected List<org.pentaho.di.core.logging.LogTableField>static Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringprotected Stringprotected org.pentaho.di.core.variables.VariableSpaceprotected Stringprotected Stringstatic final String -
Constructor Summary
ConstructorsConstructorDescriptionBaseLogTable(org.pentaho.di.core.variables.VariableSpace space, HasDatabasesInterface databasesInterface, String connectionName, String schemaName, String tableName) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.pentaho.di.core.row.RowMetaInterfaceaddFieldsToIndex(org.pentaho.di.core.logging.LogTableField... logTableFields) protected voidaddFieldToIndex(org.pentaho.di.core.logging.LogTableField field, org.pentaho.di.core.row.RowMetaInterface index) protected Objectclone()protected org.pentaho.di.core.row.ValueMetaInterfacecomputeValueMeta(org.pentaho.di.core.logging.LogTableField field) booleanbooleanorg.pentaho.di.core.logging.LogTableFieldFind a log table field in this log table definition.generateTableSQL(LogTableInterface logTable, AbstractMeta meta) abstract Stringorg.pentaho.di.core.database.DatabaseMetaorg.pentaho.di.core.logging.LogTableFieldList<org.pentaho.di.core.logging.LogTableField>protected Stringorg.pentaho.di.core.logging.LogTableFieldprotected StringgetLogBuffer(org.pentaho.di.core.variables.VariableSpace space, String logChannelId, org.pentaho.di.core.logging.LogStatus status, String limit) protected StringgetLogBuffer(org.pentaho.di.core.variables.VariableSpace space, String logChannelId, org.pentaho.di.core.logging.LogStatus status, String limit, int logBufferFrom) org.pentaho.di.core.logging.LogTableFieldorg.pentaho.di.core.logging.LogTableFieldabstract Stringorg.pentaho.di.core.logging.LogTableFieldabstract Stringorg.pentaho.di.core.logging.LogTableFieldgetSubject(String id) Get the subject of a field with the specified IDReturn the subject in the form of a string for the specified ID.abstract Stringbooleanprotected booleanisGlobalParameter(String parameter) voidloadFieldsXML(Node node) voidloadFromRepository(org.pentaho.di.repository.RepositoryAttributeInterface attributeInterface) voidreplaceMeta(BaseLogTable baseLogTable) voidsaveToRepository(org.pentaho.di.repository.RepositoryAttributeInterface attributeInterface) Save this core information of the log table to the repository using the specified attribute interface.voidvoidsetConnectionName(String connectionName) voidvoidsetSchemaName(String schemaName) voidsetTableName(String tableName) voidsetTimeoutInDays(String timeoutInDays) toString()
-
Field Details
-
XML_TAG
- See Also:
-
PROP_LOG_TABLE_CONNECTION_NAME
-
PROP_LOG_TABLE_SCHEMA_NAME
-
PROP_LOG_TABLE_TABLE_NAME
-
PROP_LOG_TABLE_FIELD_ID
-
PROP_LOG_TABLE_FIELD_NAME
-
PROP_LOG_TABLE_FIELD_ENABLED
-
PROP_LOG_TABLE_FIELD_SUBJECT
-
PROP_LOG_TABLE_INTERVAL
-
PROP_LOG_TABLE_SIZE_LIMIT
-
PROP_LOG_TABLE_TIMEOUT_DAYS
-
space
protected org.pentaho.di.core.variables.VariableSpace space -
databasesInterface
-
connectionName
-
schemaName
-
tableName
-
timeoutInDays
-
fields
-
-
Constructor Details
-
BaseLogTable
public BaseLogTable(org.pentaho.di.core.variables.VariableSpace space, HasDatabasesInterface databasesInterface, String connectionName, String schemaName, String tableName)
-
-
Method Details
-
replaceMeta
-
toString
-
clone
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
saveToRepository
public void saveToRepository(org.pentaho.di.repository.RepositoryAttributeInterface attributeInterface) throws org.pentaho.di.core.exception.KettleException Save this core information of the log table to the repository using the specified attribute interface.- 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 - Throws:
org.pentaho.di.core.exception.KettleException
-
getLogTableCode
-
getConnectionNameVariable
-
getSchemaNameVariable
-
getTableNameVariable
-
getDatabaseMeta
public org.pentaho.di.core.database.DatabaseMeta getDatabaseMeta()- Returns:
- the databaseMeta
-
getActualConnectionName
- Returns:
- the connectionName
-
getActualSchemaName
- Returns:
- the schemaName
-
setSchemaName
- Parameters:
schemaName- the schemaName to set
-
getSchemaName
-
getActualTableName
- Returns:
- the tableName
-
getTableName
-
setTableName
- Parameters:
tableName- the tableName to set
-
getQuotedSchemaTableCombination
-
getFields
- Returns:
- the fields
-
setFields
- Parameters:
fields- the fields to set
-
findField
Find a log table field in this log table definition. Use the id of the field to do the lookup.- Parameters:
id- the id of the field to search for- Returns:
- the log table field or null if nothing was found.
-
getSubject
Get the subject of a field with the specified ID- Parameters:
id-- Returns:
- the subject or null if no field could be find with the specified id
-
getSubjectString
Return the subject in the form of a string for the specified ID.- Parameters:
id- the id of the field to look for.- Returns:
- the string of the subject (name of step) or null if nothing was found.
-
containsKeyField
public boolean containsKeyField() -
getLogDateField
public org.pentaho.di.core.logging.LogTableField getLogDateField()- Returns:
- the field that represents the log date field or null if none was defined.
-
getKeyField
public org.pentaho.di.core.logging.LogTableField getKeyField()- Returns:
- the field that represents the key to this logging table (batch id etc)
-
getLogField
public org.pentaho.di.core.logging.LogTableField getLogField()- Returns:
- the field that represents the logging text (or null if none is found)
-
getStatusField
public org.pentaho.di.core.logging.LogTableField getStatusField()- Returns:
- the field that represents the status (or null if none is found)
-
getErrorsField
public org.pentaho.di.core.logging.LogTableField getErrorsField()- Returns:
- the field that represents the number of errors (or null if none is found)
-
getNameField
public org.pentaho.di.core.logging.LogTableField getNameField()- Returns:
- the field that represents the name of the object that is being used (or null if none is found)
-
getFieldsXML
-
loadFieldsXML
-
isDefined
public boolean isDefined() -
getTimeoutInDays
- Returns:
- the timeoutInDays
-
setTimeoutInDays
- Parameters:
timeoutInDays- the timeoutInDays to set
-
getConnectionName
- Returns:
- the connectionName
-
setConnectionName
- Parameters:
connectionName- the connectionName to set
-
getLogBuffer
-
getLogBuffer
-
equals
-
setAllGlobalParametersToNull
public void setAllGlobalParametersToNull() -
isGlobalParameter
-
addFieldsToIndex
protected org.pentaho.di.core.row.RowMetaInterface addFieldsToIndex(org.pentaho.di.core.logging.LogTableField... logTableFields) -
addFieldToIndex
protected void addFieldToIndex(org.pentaho.di.core.logging.LogTableField field, org.pentaho.di.core.row.RowMetaInterface index) -
computeValueMeta
protected org.pentaho.di.core.row.ValueMetaInterface computeValueMeta(org.pentaho.di.core.logging.LogTableField field) -
generateTableSQL
public StringBuilder generateTableSQL(LogTableInterface logTable, AbstractMeta meta) throws org.pentaho.di.core.exception.KettleException - Throws:
org.pentaho.di.core.exception.KettleException
-