Package org.pentaho.di.core.logging
Class JobLogTable
- java.lang.Object
-
- org.pentaho.di.core.logging.BaseLogTable
-
- org.pentaho.di.core.logging.JobLogTable
-
- All Implemented Interfaces:
Cloneable
,org.pentaho.di.core.logging.LogTableCoreInterface
,LogTableInterface
public class JobLogTable extends BaseLogTable implements Cloneable, LogTableInterface
This class describes a job logging table- Author:
- matt
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JobLogTable.ID
-
Field Summary
Fields Modifier and Type Field Description static String
XML_TAG
-
Fields 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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
org.pentaho.di.core.logging.LogTableField
findField(JobLogTable.ID id)
String
getConnectionNameVariable()
static JobLogTable
getDefault(org.pentaho.di.core.variables.VariableSpace space, HasDatabasesInterface databasesInterface)
String
getLogInterval()
Get the logging interval in seconds.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 requiredString
getLogSizeLimit()
String
getLogTableCode()
String
getLogTableType()
List<org.pentaho.di.core.row.RowMetaInterface>
getRecommendedIndexes()
String
getSchemaNameVariable()
String
getStepnameInput()
String
getStepnameOutput()
String
getStepnameRead()
String
getStepnameRejected()
String
getStepnameUpdated()
String
getStepnameWritten()
Object
getSubject(JobLogTable.ID id)
String
getSubjectString(JobLogTable.ID id)
String
getTableNameVariable()
String
getXML()
boolean
isBatchIdUsed()
boolean
isLogFieldUsed()
void
loadFromRepository(org.pentaho.di.repository.RepositoryAttributeInterface attributeInterface)
void
loadXML(Node node, List<org.pentaho.di.core.database.DatabaseMeta> databases, List<StepMeta> steps)
Load the information for this logging table from the job XML nodevoid
replaceMeta(org.pentaho.di.core.logging.LogTableCoreInterface logTableInterface)
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
setAllGlobalParametersToNull()
void
setBatchIdUsed(boolean use)
void
setLogFieldUsed(boolean use)
void
setLogInterval(String logInterval)
Sets the logging interval in seconds.void
setLogSizeLimit(String logSizeLimit)
-
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, getLogDateField, getLogField, getNameField, getQuotedSchemaTableCombination, getSchemaName, getStatusField, getSubject, getSubjectString, getTableName, getTimeoutInDays, isDefined, isGlobalParameter, loadFieldsXML, replaceMeta, setConnectionName, setFields, setSchemaName, setTableName, setTimeoutInDays, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods 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, setConnectionName
-
Methods inherited from interface org.pentaho.di.core.logging.LogTableInterface
generateTableSQL
-
-
-
-
Field Detail
-
XML_TAG
public static final String XML_TAG
- See Also:
- Constant Field Values
-
-
Method Detail
-
clone
public Object clone()
- Specified by:
clone
in interfaceorg.pentaho.di.core.logging.LogTableCoreInterface
- Overrides:
clone
in classBaseLogTable
-
getXML
public String getXML()
- Specified by:
getXML
in 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:LogTableInterface
Load the information for this logging table from the job XML node- Specified by:
loadXML
in 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:BaseLogTable
Save this core information of the log table to the repository using the specified attribute interface.- Specified by:
saveToRepository
in interfaceorg.pentaho.di.core.logging.LogTableCoreInterface
- Overrides:
saveToRepository
in 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:
loadFromRepository
in interfaceorg.pentaho.di.core.logging.LogTableCoreInterface
- Overrides:
loadFromRepository
in classBaseLogTable
- Throws:
org.pentaho.di.core.exception.KettleException
-
replaceMeta
public void replaceMeta(org.pentaho.di.core.logging.LogTableCoreInterface logTableInterface)
- Specified by:
replaceMeta
in interfaceorg.pentaho.di.core.logging.LogTableCoreInterface
-
getDefault
public static JobLogTable getDefault(org.pentaho.di.core.variables.VariableSpace space, HasDatabasesInterface databasesInterface)
-
findField
public org.pentaho.di.core.logging.LogTableField findField(JobLogTable.ID id)
-
getSubject
public Object getSubject(JobLogTable.ID id)
-
getSubjectString
public String getSubjectString(JobLogTable.ID id)
-
setBatchIdUsed
public void setBatchIdUsed(boolean use)
-
isBatchIdUsed
public boolean isBatchIdUsed()
-
setLogFieldUsed
public void setLogFieldUsed(boolean use)
-
isLogFieldUsed
public boolean isLogFieldUsed()
-
getStepnameRead
public String getStepnameRead()
-
getStepnameWritten
public String getStepnameWritten()
-
getStepnameInput
public String getStepnameInput()
-
getStepnameOutput
public String getStepnameOutput()
-
getStepnameUpdated
public String getStepnameUpdated()
-
getStepnameRejected
public String getStepnameRejected()
-
setLogInterval
public void setLogInterval(String logInterval)
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
public String 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
public String getLogSizeLimit()
- Returns:
- the logSizeLimit
-
setLogSizeLimit
public void setLogSizeLimit(String logSizeLimit)
- 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:
getLogRecord
in interfaceorg.pentaho.di.core.logging.LogTableCoreInterface
- Parameters:
id
- the id to use or -1 if no id is neededstatus
- the log status to use
-
getLogTableCode
public String getLogTableCode()
- Specified by:
getLogTableCode
in classBaseLogTable
-
getLogTableType
public String getLogTableType()
- Specified by:
getLogTableType
in interfaceorg.pentaho.di.core.logging.LogTableCoreInterface
-
getConnectionNameVariable
public String getConnectionNameVariable()
- Specified by:
getConnectionNameVariable
in interfaceorg.pentaho.di.core.logging.LogTableCoreInterface
- Specified by:
getConnectionNameVariable
in classBaseLogTable
-
getSchemaNameVariable
public String getSchemaNameVariable()
- Specified by:
getSchemaNameVariable
in interfaceorg.pentaho.di.core.logging.LogTableCoreInterface
- Specified by:
getSchemaNameVariable
in classBaseLogTable
-
getTableNameVariable
public String getTableNameVariable()
- Specified by:
getTableNameVariable
in interfaceorg.pentaho.di.core.logging.LogTableCoreInterface
- Specified by:
getTableNameVariable
in classBaseLogTable
-
getRecommendedIndexes
public List<org.pentaho.di.core.row.RowMetaInterface> getRecommendedIndexes()
- Specified by:
getRecommendedIndexes
in interfaceorg.pentaho.di.core.logging.LogTableCoreInterface
-
setAllGlobalParametersToNull
public void setAllGlobalParametersToNull()
- Overrides:
setAllGlobalParametersToNull
in classBaseLogTable
-
-