@KFStep(name="WriteToWekaLog", category="Flow", toolTipText="Write data to the log", iconPath="weka/gui/knowledgeflow/icons/WriteWekaLog.gif") public class WriteWekaLog extends BaseStep
| Modifier and Type | Field and Description |
|---|---|
protected int |
m_incrCount
Count of how many incremental data points have been seen so far
|
protected java.lang.String |
m_incrementalWriteFrequency
How often to write incremental data to the log
|
protected int |
m_incrFreq
Resolved frequency
|
protected boolean |
m_inputIsIncremental
True if the input is incremental
|
protected boolean |
m_isReset
True if the step has been reset
|
protected LoggingLevel |
m_logLevel
Level to log at
|
m_stepIsResourceIntensive, m_stepManager, m_stepName| Constructor and Description |
|---|
WriteWekaLog() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
getIncomingConnectionTypes()
Get a list of acceptable incoming connection types (at this point in time)
|
java.lang.String |
getIncrementalLoggingFrequency()
Get how frequently to write an incremental data point to the log
|
LoggingLevel |
getLoggingLevel()
Get the logging level to use
|
java.util.List<java.lang.String> |
getOutgoingConnectionTypes()
Get currently generatable outgoing connection types
|
protected void |
processBatch(Data data)
Process a batch data point
|
void |
processIncoming(Data data)
Process an incoming piece of data
|
protected void |
processStreaming(Data data)
Process a streaming data point
|
void |
setIncrementalLoggingFrequency(java.lang.String frequency)
Set how frequently to write an incremental data point to the log
|
void |
setLoggingLevel(LoggingLevel level)
Set the logging level to use
|
void |
stepInit()
Initialize the step
|
environmentSubstitute, getCustomEditorForStep, getDefaultSettings, getInteractiveViewers, getInteractiveViewersImpls, getName, getStepManager, globalInfo, isResourceIntensive, isStopRequested, outputStructureForConnectionType, setName, setStepIsResourceIntensive, setStepManager, setStepMustRunSingleThreaded, start, stepMustRunSingleThreaded, stopprotected java.lang.String m_incrementalWriteFrequency
protected int m_incrFreq
protected int m_incrCount
protected boolean m_isReset
protected boolean m_inputIsIncremental
protected LoggingLevel m_logLevel
@OptionMetadata(displayName="Logging level", description="The level at which to write log messages", displayOrder=1) public void setLoggingLevel(LoggingLevel level)
level - the level to usepublic LoggingLevel getLoggingLevel()
@OptionMetadata(displayName="Incremental logging frequency", description="How often to write an incremental/streaming data point to the log", displayOrder=2) public void setIncrementalLoggingFrequency(java.lang.String frequency)
frequency - the frequency (in data points) to write to the logpublic java.lang.String getIncrementalLoggingFrequency()
public void stepInit()
throws WekaException
WekaException - if a problem occurspublic void processIncoming(Data data) throws WekaException
processIncoming in interface BaseStepExtenderprocessIncoming in interface StepprocessIncoming in class BaseStepdata - the payload to processWekaException - if a problem occursprotected void processStreaming(Data data) throws WekaException
data - the dataWekaException - if a problem occursprotected void processBatch(Data data) throws WekaException
data - the dataWekaException - if a problem occurspublic java.util.List<java.lang.String> getIncomingConnectionTypes()
public java.util.List<java.lang.String> getOutgoingConnectionTypes()