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
Modifier and TypeFieldDescriptionprotected String
protected HasDatabasesInterface
protected List<org.pentaho.di.core.logging.LogTableField>
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
protected String
protected org.pentaho.di.core.variables.VariableSpace
protected String
protected String
static final String
-
Constructor Summary
ConstructorDescriptionBaseLogTable
(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.RowMetaInterface
addFieldsToIndex
(org.pentaho.di.core.logging.LogTableField... logTableFields) protected void
addFieldToIndex
(org.pentaho.di.core.logging.LogTableField field, org.pentaho.di.core.row.RowMetaInterface index) protected Object
clone()
protected org.pentaho.di.core.row.ValueMetaInterface
computeValueMeta
(org.pentaho.di.core.logging.LogTableField field) boolean
boolean
org.pentaho.di.core.logging.LogTableField
Find a log table field in this log table definition.generateTableSQL
(LogTableInterface logTable, AbstractMeta meta) abstract String
org.pentaho.di.core.database.DatabaseMeta
org.pentaho.di.core.logging.LogTableField
List<org.pentaho.di.core.logging.LogTableField>
protected String
org.pentaho.di.core.logging.LogTableField
protected String
getLogBuffer
(org.pentaho.di.core.variables.VariableSpace space, String logChannelId, org.pentaho.di.core.logging.LogStatus status, String limit) protected String
getLogBuffer
(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.LogTableField
org.pentaho.di.core.logging.LogTableField
abstract String
org.pentaho.di.core.logging.LogTableField
abstract String
org.pentaho.di.core.logging.LogTableField
getSubject
(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 String
boolean
protected boolean
isGlobalParameter
(String parameter) void
loadFieldsXML
(Node node) void
loadFromRepository
(org.pentaho.di.repository.RepositoryAttributeInterface attributeInterface) void
replaceMeta
(BaseLogTable baseLogTable) void
saveToRepository
(org.pentaho.di.repository.RepositoryAttributeInterface attributeInterface) Save this core information of the log table to the repository using the specified attribute interface.void
void
setConnectionName
(String connectionName) void
void
setSchemaName
(String schemaName) void
setTableName
(String tableName) void
setTimeoutInDays
(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:
clone
in 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
-