Package org.apache.hop.pipeline.engine
Class EngineComponent
- java.lang.Object
-
- org.apache.hop.pipeline.engine.EngineComponent
-
- All Implemented Interfaces:
IEngineComponent
public class EngineComponent extends Object implements IEngineComponent
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEngineComponent.ComponentExecutionStatus
-
Constructor Summary
Constructors Constructor Description EngineComponent()EngineComponent(String name, int copyNr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRowListener(IRowListener rowListener)Add a rowlistener to the transform allowing you to inspect (or manipulate, be careful) the rows coming in or exiting the transform.booleanequals(Object o)intgetCopyNr()Gets copyNrlonggetErrors()Gets errorslonggetExecutionDuration()Gets executionDurationDategetExecutionEndDate()Gets executionEndDateDategetExecutionStartDate()Gets executionStartDateDategetFirstRowReadDate()Gets firstRowReadDateDategetInitStartDate()Gets initStartDatelonggetInputBufferSize()Gets inputBufferSizeDategetLastRowWrittenDate()Gets lastRowWrittenDatelonggetLinesInput()Gets linesInputlonggetLinesOutput()Gets linesOutputlonggetLinesRead()Gets linesReadlonggetLinesRejected()Gets linesRejectedlonggetLinesUpdated()Gets linesUpdatedlonggetLinesWritten()Gets linesWrittenILogChannelgetLogChannel()Gets logChannelStringgetLogChannelId()Gets logChannelIdLogLevelgetLogLevel()Gets logLevelStringgetLogText()Gets logTextStringgetName()Gets namelonggetOutputBufferSize()Gets outputBufferSizeEngineComponent.ComponentExecutionStatusgetStatus()Gets statusStringgetStatusDescription()Gets statusDescriptioninthashCode()booleanisPaused()Gets pausedbooleanisRunning()Gets runningbooleanisSelected()Gets selectedbooleanisStopped()Gets stoppedvoidremoveRowListener(IRowListener rowListener)voidsetCopyNr(int copyNr)voidsetErrors(long errors)voidsetExecutionDuration(long executionDuration)voidsetExecutionEndDate(Date executionEndDate)voidsetExecutionStartDate(Date executionStartDate)voidsetFirstRowReadDate(Date firstRowReadDate)voidsetInitStartDate(Date initStartDate)voidsetInputBufferSize(long inputBufferSize)voidsetLastRowWrittenDate(Date lastRowWrittenDate)voidsetLinesInput(long linesInput)voidsetLinesOutput(long linesOutput)voidsetLinesRead(long linesRead)voidsetLinesRejected(long linesRejected)voidsetLinesUpdated(long linesUpdated)voidsetLinesWritten(long linesWritten)voidsetLogChannel(ILogChannel logChannel)voidsetLogChannelId(String logChannelId)voidsetLogLevel(LogLevel logLevel)voidsetLogText(String logText)voidsetName(String name)voidsetOutputBufferSize(long outputBufferSize)voidsetPaused(boolean paused)voidsetRunning(boolean running)voidsetSelected(boolean selected)voidsetStatus(EngineComponent.ComponentExecutionStatus status)voidsetStopped(boolean stopped)
-
-
-
Constructor Detail
-
EngineComponent
public EngineComponent()
-
EngineComponent
public EngineComponent(String name, int copyNr)
-
-
Method Detail
-
getName
public String getName()
Gets name- Specified by:
getNamein interfaceIEngineComponent- Returns:
- value of name
-
setName
public void setName(String name)
- Parameters:
name- The name to set
-
getCopyNr
public int getCopyNr()
Gets copyNr- Specified by:
getCopyNrin interfaceIEngineComponent- Returns:
- value of copyNr
-
setCopyNr
public void setCopyNr(int copyNr)
- Parameters:
copyNr- The copyNr to set
-
getLogChannel
public ILogChannel getLogChannel()
Gets logChannel- Specified by:
getLogChannelin interfaceIEngineComponent- Returns:
- value of logChannel
-
setLogChannel
public void setLogChannel(ILogChannel logChannel)
- Parameters:
logChannel- The logChannel to set
-
getLogChannelId
public String getLogChannelId()
Gets logChannelId- Specified by:
getLogChannelIdin interfaceIEngineComponent- Returns:
- value of logChannelId
-
setLogChannelId
public void setLogChannelId(String logChannelId)
- Parameters:
logChannelId- The logChannelId to set
-
getLogLevel
public LogLevel getLogLevel()
Gets logLevel- Specified by:
getLogLevelin interfaceIEngineComponent- Returns:
- value of logLevel
-
setLogLevel
public void setLogLevel(LogLevel logLevel)
- Specified by:
setLogLevelin interfaceIEngineComponent- Parameters:
logLevel- The logLevel to set
-
getLogText
public String getLogText()
Gets logText- Specified by:
getLogTextin interfaceIEngineComponent- Returns:
- value of logText
-
setLogText
public void setLogText(String logText)
- Parameters:
logText- The logText to set
-
isRunning
public boolean isRunning()
Gets running- Specified by:
isRunningin interfaceIEngineComponent- Returns:
- value of running
-
setRunning
public void setRunning(boolean running)
- Parameters:
running- The running to set
-
isSelected
public boolean isSelected()
Gets selected- Specified by:
isSelectedin interfaceIEngineComponent- Returns:
- value of selected
-
setSelected
public void setSelected(boolean selected)
- Parameters:
selected- The selected to set
-
getErrors
public long getErrors()
Gets errors- Specified by:
getErrorsin interfaceIEngineComponent- Returns:
- value of errors
-
addRowListener
public void addRowListener(IRowListener rowListener)
Description copied from interface:IEngineComponentAdd a rowlistener to the transform allowing you to inspect (or manipulate, be careful) the rows coming in or exiting the transform.- Specified by:
addRowListenerin interfaceIEngineComponent- Parameters:
rowListener- the rowlistener to add
-
removeRowListener
public void removeRowListener(IRowListener rowListener)
- Specified by:
removeRowListenerin interfaceIEngineComponent
-
setErrors
public void setErrors(long errors)
- Parameters:
errors- The errors to set
-
getLinesRead
public long getLinesRead()
Gets linesRead- Specified by:
getLinesReadin interfaceIEngineComponent- Returns:
- value of linesRead
-
setLinesRead
public void setLinesRead(long linesRead)
- Parameters:
linesRead- The linesRead to set
-
getLinesWritten
public long getLinesWritten()
Gets linesWritten- Specified by:
getLinesWrittenin interfaceIEngineComponent- Returns:
- value of linesWritten
-
setLinesWritten
public void setLinesWritten(long linesWritten)
- Parameters:
linesWritten- The linesWritten to set
-
getLinesInput
public long getLinesInput()
Gets linesInput- Specified by:
getLinesInputin interfaceIEngineComponent- Returns:
- value of linesInput
-
setLinesInput
public void setLinesInput(long linesInput)
- Parameters:
linesInput- The linesInput to set
-
getLinesOutput
public long getLinesOutput()
Gets linesOutput- Specified by:
getLinesOutputin interfaceIEngineComponent- Returns:
- value of linesOutput
-
setLinesOutput
public void setLinesOutput(long linesOutput)
- Parameters:
linesOutput- The linesOutput to set
-
getLinesRejected
public long getLinesRejected()
Gets linesRejected- Specified by:
getLinesRejectedin interfaceIEngineComponent- Returns:
- value of linesRejected
-
setLinesRejected
public void setLinesRejected(long linesRejected)
- Parameters:
linesRejected- The linesRejected to set
-
getLinesUpdated
public long getLinesUpdated()
Gets linesUpdated- Specified by:
getLinesUpdatedin interfaceIEngineComponent- Returns:
- value of linesUpdated
-
setLinesUpdated
public void setLinesUpdated(long linesUpdated)
- Parameters:
linesUpdated- The linesUpdated to set
-
getStatusDescription
public String getStatusDescription()
Gets statusDescription- Specified by:
getStatusDescriptionin interfaceIEngineComponent- Returns:
- value of statusDescription
-
getExecutionDuration
public long getExecutionDuration()
Gets executionDuration- Specified by:
getExecutionDurationin interfaceIEngineComponent- Returns:
- value of executionDuration
-
setExecutionDuration
public void setExecutionDuration(long executionDuration)
- Parameters:
executionDuration- The executionDuration to set
-
getInputBufferSize
public long getInputBufferSize()
Gets inputBufferSize- Specified by:
getInputBufferSizein interfaceIEngineComponent- Returns:
- value of inputBufferSize
-
setInputBufferSize
public void setInputBufferSize(long inputBufferSize)
- Parameters:
inputBufferSize- The inputBufferSize to set
-
getOutputBufferSize
public long getOutputBufferSize()
Gets outputBufferSize- Specified by:
getOutputBufferSizein interfaceIEngineComponent- Returns:
- value of outputBufferSize
-
setOutputBufferSize
public void setOutputBufferSize(long outputBufferSize)
- Parameters:
outputBufferSize- The outputBufferSize to set
-
isStopped
public boolean isStopped()
Gets stopped- Specified by:
isStoppedin interfaceIEngineComponent- Returns:
- value of stopped
-
setStopped
public void setStopped(boolean stopped)
- Parameters:
stopped- The stopped to set
-
isPaused
public boolean isPaused()
Gets paused- Specified by:
isPausedin interfaceIEngineComponent- Returns:
- value of paused
-
setPaused
public void setPaused(boolean paused)
- Parameters:
paused- The paused to set
-
getStatus
public EngineComponent.ComponentExecutionStatus getStatus()
Gets status- Specified by:
getStatusin interfaceIEngineComponent- Returns:
- value of status
-
setStatus
public void setStatus(EngineComponent.ComponentExecutionStatus status)
- Parameters:
status- The status to set
-
getInitStartDate
public Date getInitStartDate()
Gets initStartDate- Specified by:
getInitStartDatein interfaceIEngineComponent- Returns:
- value of initStartDate
-
setInitStartDate
public void setInitStartDate(Date initStartDate)
- Specified by:
setInitStartDatein interfaceIEngineComponent- Parameters:
initStartDate- The initStartDate to set
-
getExecutionStartDate
public Date getExecutionStartDate()
Gets executionStartDate- Specified by:
getExecutionStartDatein interfaceIEngineComponent- Returns:
- value of executionStartDate
-
setExecutionStartDate
public void setExecutionStartDate(Date executionStartDate)
- Specified by:
setExecutionStartDatein interfaceIEngineComponent- Parameters:
executionStartDate- The executionStartDate to set
-
getFirstRowReadDate
public Date getFirstRowReadDate()
Gets firstRowReadDate- Specified by:
getFirstRowReadDatein interfaceIEngineComponent- Returns:
- value of firstRowReadDate
-
setFirstRowReadDate
public void setFirstRowReadDate(Date firstRowReadDate)
- Specified by:
setFirstRowReadDatein interfaceIEngineComponent- Parameters:
firstRowReadDate- The firstRowReadDate to set
-
getLastRowWrittenDate
public Date getLastRowWrittenDate()
Gets lastRowWrittenDate- Specified by:
getLastRowWrittenDatein interfaceIEngineComponent- Returns:
- value of lastRowWrittenDate
-
setLastRowWrittenDate
public void setLastRowWrittenDate(Date lastRowWrittenDate)
- Specified by:
setLastRowWrittenDatein interfaceIEngineComponent- Parameters:
lastRowWrittenDate- The lastRowWrittenDate to set
-
getExecutionEndDate
public Date getExecutionEndDate()
Gets executionEndDate- Specified by:
getExecutionEndDatein interfaceIEngineComponent- Returns:
- value of executionEndDate
-
setExecutionEndDate
public void setExecutionEndDate(Date executionEndDate)
- Specified by:
setExecutionEndDatein interfaceIEngineComponent- Parameters:
executionEndDate- The executionEndDate to set
-
-