public class TransLogTable extends BaseLogTable implements Cloneable, LogTableInterface
Modifier and Type | Class and Description |
---|---|
static class |
TransLogTable.ID
The client executing the transformation
|
Modifier and Type | Field and Description |
---|---|
static String |
XML_TAG |
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
Constructor and Description |
---|
TransLogTable(org.pentaho.di.core.variables.VariableSpace space,
HasDatabasesInterface databasesInterface,
List<StepMeta> steps) |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
org.pentaho.di.core.logging.LogTableField |
findField(TransLogTable.ID id) |
String |
getConnectionNameVariable() |
static TransLogTable |
getDefault(org.pentaho.di.core.variables.VariableSpace space,
HasDatabasesInterface databasesInterface,
List<StepMeta> steps) |
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 required
|
String |
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(TransLogTable.ID id) |
String |
getSubjectString(TransLogTable.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 node
|
void |
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) |
void |
setStepInput(StepMeta input) |
void |
setStepOutput(StepMeta output) |
void |
setStepRead(StepMeta read) |
void |
setStepRejected(StepMeta rejected) |
void |
setStepUpdate(StepMeta update) |
void |
setStepWritten(StepMeta written) |
containsKeyField, equals, findField, getActualConnectionName, getActualSchemaName, getActualTableName, getConnectionName, getDatabaseMeta, getErrorsField, getFields, getKeyField, getLogDateField, getLogField, getNameField, getQuotedSchemaTableCombination, getSchemaName, getStatusField, getSubject, getSubjectString, getTableName, getTimeoutInDays, isDefined, loadFieldsXML, replaceMeta, setConnectionName, setFields, setSchemaName, setTableName, setTimeoutInDays, toString
getClass, hashCode, notify, notifyAll, wait, wait, wait
getActualSchemaName, getActualTableName, getConnectionName, getDatabaseMeta, getErrorsField, getFields, getKeyField, getLogDateField, getLogField, getNameField, getQuotedSchemaTableCombination, getSchemaName, getStatusField, getTableName, getTimeoutInDays, isDefined, setConnectionName
public static final String XML_TAG
public TransLogTable(org.pentaho.di.core.variables.VariableSpace space, HasDatabasesInterface databasesInterface, List<StepMeta> steps)
public Object clone()
clone
in interface org.pentaho.di.core.logging.LogTableCoreInterface
public String getXML()
getXML
in interface LogTableInterface
public void loadXML(Node node, List<org.pentaho.di.core.database.DatabaseMeta> databases, List<StepMeta> steps)
LogTableInterface
loadXML
in interface LogTableInterface
node
- the node to load fromdatabases
- the list of database to reference.steps
- the steps to reference (or null)public void saveToRepository(org.pentaho.di.repository.RepositoryAttributeInterface attributeInterface) throws org.pentaho.di.core.exception.KettleException
BaseLogTable
saveToRepository
in interface org.pentaho.di.core.logging.LogTableCoreInterface
saveToRepository
in class BaseLogTable
attributeInterface
- The attribute interface to use to set attributesorg.pentaho.di.core.exception.KettleException
public void loadFromRepository(org.pentaho.di.repository.RepositoryAttributeInterface attributeInterface) throws org.pentaho.di.core.exception.KettleException
loadFromRepository
in interface org.pentaho.di.core.logging.LogTableCoreInterface
loadFromRepository
in class BaseLogTable
org.pentaho.di.core.exception.KettleException
public void replaceMeta(org.pentaho.di.core.logging.LogTableCoreInterface logTableInterface)
replaceMeta
in interface org.pentaho.di.core.logging.LogTableCoreInterface
public static TransLogTable getDefault(org.pentaho.di.core.variables.VariableSpace space, HasDatabasesInterface databasesInterface, List<StepMeta> steps)
public org.pentaho.di.core.logging.LogTableField findField(TransLogTable.ID id)
public Object getSubject(TransLogTable.ID id)
public String getSubjectString(TransLogTable.ID id)
public void setBatchIdUsed(boolean use)
public boolean isBatchIdUsed()
public void setLogFieldUsed(boolean use)
public boolean isLogFieldUsed()
public String getStepnameRead()
public void setStepRead(StepMeta read)
public String getStepnameWritten()
public void setStepWritten(StepMeta written)
public String getStepnameInput()
public void setStepInput(StepMeta input)
public String getStepnameOutput()
public void setStepOutput(StepMeta output)
public String getStepnameUpdated()
public void setStepUpdate(StepMeta update)
public String getStepnameRejected()
public void setStepRejected(StepMeta rejected)
public void setLogInterval(String logInterval)
logInterval
- The log interval value. A value higher than 0 means that the log table is updated every 'logInterval'
seconds.public String getLogInterval()
logInterval
- The log interval,public String getLogSizeLimit()
public void setLogSizeLimit(String logSizeLimit)
logSizeLimit
- the logSizeLimit to setpublic org.pentaho.di.core.RowMetaAndData getLogRecord(org.pentaho.di.core.logging.LogStatus status, Object subject, Object parent)
getLogRecord
in interface org.pentaho.di.core.logging.LogTableCoreInterface
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 objectpublic String getLogTableCode()
getLogTableCode
in class BaseLogTable
public String getLogTableType()
getLogTableType
in interface org.pentaho.di.core.logging.LogTableCoreInterface
public String getConnectionNameVariable()
getConnectionNameVariable
in interface org.pentaho.di.core.logging.LogTableCoreInterface
getConnectionNameVariable
in class BaseLogTable
public String getSchemaNameVariable()
getSchemaNameVariable
in interface org.pentaho.di.core.logging.LogTableCoreInterface
getSchemaNameVariable
in class BaseLogTable
public String getTableNameVariable()
getTableNameVariable
in interface org.pentaho.di.core.logging.LogTableCoreInterface
getTableNameVariable
in class BaseLogTable
public List<org.pentaho.di.core.row.RowMetaInterface> getRecommendedIndexes()
getRecommendedIndexes
in interface org.pentaho.di.core.logging.LogTableCoreInterface
public void setAllGlobalParametersToNull()
setAllGlobalParametersToNull
in class BaseLogTable