类 StepContribution
- java.lang.Object
- org.springframework.batch.core.StepContribution
- 所有已实现的接口:
java.io.Serializable
public class StepContribution extends java.lang.Object implements java.io.Serializable
Represents a contribution to aStepExecution
, buffering changes until they can be applied at a chunk boundary.- 作者:
- Dave Syer
- 另请参阅:
- 序列化表格
构造器概要
构造器 构造器 说明 StepContribution(StepExecution execution)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 boolean
equals(java.lang.Object obj)
ExitStatus
getExitStatus()
Public getter for the status.int
getFilterCount()
Public getter for the filter counter.int
getProcessSkipCount()
Public getter for the process skip count.int
getReadCount()
Public access to the read counter.int
getReadSkipCount()
int
getSkipCount()
int
getStepSkipCount()
int
getWriteCount()
Public access to the write counter.int
getWriteSkipCount()
int
hashCode()
void
incrementFilterCount(int count)
Increment the counter for the number of items processed.void
incrementProcessSkipCount()
void
incrementReadCount()
Increment the counter for the number of items read.void
incrementReadSkipCount()
Increment the read skip count for this contributionvoid
incrementReadSkipCount(int count)
Increment the read skip count for this contributionvoid
incrementWriteCount(int count)
Increment the counter for the number of items written.void
incrementWriteSkipCount()
Increment the write skip count for this contributionvoid
setExitStatus(ExitStatus status)
Set theExitStatus
for this contribution.java.lang.String
toString()
构造器详细资料
StepContribution
public StepContribution(StepExecution execution)
- 参数:
execution
-StepExecution
the stepExecution used to initializeskipCount
.
方法详细资料
setExitStatus
public void setExitStatus(ExitStatus status)
Set theExitStatus
for this contribution.- 参数:
status
-ExitStatus
instance to be used to set the exit status.
getExitStatus
public ExitStatus getExitStatus()
Public getter for the status.- 返回:
- the
ExitStatus
for this contribution
incrementFilterCount
public void incrementFilterCount(int count)
Increment the counter for the number of items processed.- 参数:
count
- int amount to increment by.
incrementReadCount
public void incrementReadCount()
Increment the counter for the number of items read.
incrementWriteCount
public void incrementWriteCount(int count)
Increment the counter for the number of items written.- 参数:
count
- int amount to increment by.
getReadCount
public int getReadCount()
Public access to the read counter.- 返回:
- the item counter.
getWriteCount
public int getWriteCount()
Public access to the write counter.- 返回:
- the item counter.
getFilterCount
public int getFilterCount()
Public getter for the filter counter.- 返回:
- the filter counter
getStepSkipCount
public int getStepSkipCount()
- 返回:
- the sum of skips accumulated in the parent
StepExecution
and thisStepContribution
.
getSkipCount
public int getSkipCount()
- 返回:
- the number of skips collected in this
StepContribution
(not including skips accumulated in the parentStepExecution
).
incrementReadSkipCount
public void incrementReadSkipCount()
Increment the read skip count for this contribution
incrementReadSkipCount
public void incrementReadSkipCount(int count)
Increment the read skip count for this contribution- 参数:
count
- int amount to increment by.
incrementWriteSkipCount
public void incrementWriteSkipCount()
Increment the write skip count for this contribution
incrementProcessSkipCount
public void incrementProcessSkipCount()
getReadSkipCount
public int getReadSkipCount()
- 返回:
- the read skip count
getWriteSkipCount
public int getWriteSkipCount()
- 返回:
- the write skip count
getProcessSkipCount
public int getProcessSkipCount()
Public getter for the process skip count.- 返回:
- the process skip count
toString
public java.lang.String toString()
- 覆盖:
toString
在类中java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- 覆盖:
equals
在类中java.lang.Object
- 另请参阅:
Object.equals(java.lang.Object)
hashCode
public int hashCode()
- 覆盖:
hashCode
在类中java.lang.Object
- 另请参阅:
Object.hashCode()