public class BasicDataIoTask<T extends DataItem> extends BasicIoTask<T> implements DataIoTask<T>
IoTask.Status| Modifier and Type | Field and Description |
|---|---|
protected long |
contentSize |
protected long |
countBytesDone |
protected DataInput |
dataInput |
protected java.util.BitSet[] |
markedRangesMaskPair |
protected long |
respDataTimeStart |
credential, dstPath, ioType, item, nodeAddr, originCode, reqTimeDone, reqTimeStart, respTimeDone, respTimeStart, srcPath, status, STRBSLASH, START_OFFSET_MICROS| Modifier | Constructor and Description |
|---|---|
|
BasicDataIoTask() |
protected |
BasicDataIoTask(BasicDataIoTask<T> other) |
|
BasicDataIoTask(int originCode,
IoType ioType,
T item,
java.lang.String srcPath,
java.lang.String dstPath,
Credential credential,
java.util.List<com.github.akurilov.commons.collection.Range> fixedRanges,
int randomRangesCount) |
|
BasicDataIoTask(int originCode,
IoType ioType,
T item,
java.lang.String srcPath,
java.lang.String dstPath,
Credential credential,
java.util.List<com.github.akurilov.commons.collection.Range> fixedRanges,
int randomRangesCount,
java.util.List<T> srcItemsToConcat) |
| Modifier and Type | Method and Description |
|---|---|
long |
getCountBytesDone() |
DataItem |
getCurrRange() |
int |
getCurrRangeIdx() |
DataItem |
getCurrRangeUpdate() |
long |
getDataLatency() |
java.util.List<com.github.akurilov.commons.collection.Range> |
getFixedRanges() |
java.util.BitSet[] |
getMarkedRangesMaskPair() |
long |
getMarkedRangesSize() |
int |
getRandomRangesCount() |
long |
getRespDataTimeStart() |
BasicDataIoTask<T> |
getResult() |
java.util.List<T> |
getSrcItemsToConcat() |
boolean |
hasMarkedRanges() |
void |
markRandomRanges(int count) |
void |
readExternal(java.io.ObjectInput in) |
void |
reset() |
void |
setCountBytesDone(long n) |
void |
setCurrRangeIdx(int currRangeIdx) |
void |
startDataResponse() |
void |
writeExternal(java.io.ObjectOutput out) |
finishRequest, finishResponse, getCredential, getDstPath, getDuration, getIoType, getItem, getLatency, getNodeAddr, getOriginCode, getReqTimeDone, getReqTimeStart, getRespTimeDone, getRespTimeStart, getSrcPath, getStatus, hashCode, setCredential, setDstPath, setNodeAddr, setSrcPath, setStatus, startRequest, startResponse, toStringclone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitgetItembuildItemPath, finishRequest, finishResponse, getCredential, getDstPath, getDuration, getIoType, getLatency, getNodeAddr, getOriginCode, getReqTimeDone, getReqTimeStart, getRespTimeDone, getRespTimeStart, getSrcPath, getStatus, setCredential, setDstPath, setNodeAddr, setSrcPath, setStatus, startRequest, startResponseprotected final java.util.BitSet[] markedRangesMaskPair
protected long contentSize
protected transient volatile DataInput dataInput
protected transient volatile long countBytesDone
protected transient volatile long respDataTimeStart
public BasicDataIoTask()
public BasicDataIoTask(int originCode,
IoType ioType,
T item,
java.lang.String srcPath,
java.lang.String dstPath,
Credential credential,
java.util.List<com.github.akurilov.commons.collection.Range> fixedRanges,
int randomRangesCount)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic BasicDataIoTask(int originCode,
IoType ioType,
T item,
java.lang.String srcPath,
java.lang.String dstPath,
Credential credential,
java.util.List<com.github.akurilov.commons.collection.Range> fixedRanges,
int randomRangesCount,
java.util.List<T> srcItemsToConcat)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionprotected BasicDataIoTask(BasicDataIoTask<T> other)
public BasicDataIoTask<T> getResult()
public void reset()
throws java.lang.IllegalArgumentException
public final void markRandomRanges(int count)
markRandomRanges in interface DataIoTask<T extends DataItem>public final boolean hasMarkedRanges()
hasMarkedRanges in interface DataIoTask<T extends DataItem>public final java.util.BitSet[] getMarkedRangesMaskPair()
getMarkedRangesMaskPair in interface DataIoTask<T extends DataItem>public final long getMarkedRangesSize()
getMarkedRangesSize in interface DataIoTask<T extends DataItem>public final java.util.List<com.github.akurilov.commons.collection.Range> getFixedRanges()
getFixedRanges in interface DataIoTask<T extends DataItem>public final int getRandomRangesCount()
getRandomRangesCount in interface DataIoTask<T extends DataItem>public final java.util.List<T> getSrcItemsToConcat()
getSrcItemsToConcat in interface DataIoTask<T extends DataItem>public final int getCurrRangeIdx()
getCurrRangeIdx in interface DataIoTask<T extends DataItem>public final void setCurrRangeIdx(int currRangeIdx)
setCurrRangeIdx in interface DataIoTask<T extends DataItem>public final DataItem getCurrRange()
getCurrRange in interface DataIoTask<T extends DataItem>public final DataItem getCurrRangeUpdate()
getCurrRangeUpdate in interface DataIoTask<T extends DataItem>public final long getCountBytesDone()
getCountBytesDone in interface DataIoTask<T extends DataItem>public final void setCountBytesDone(long n)
setCountBytesDone in interface DataIoTask<T extends DataItem>public final long getRespDataTimeStart()
getRespDataTimeStart in interface DataIoTask<T extends DataItem>public final void startDataResponse()
startDataResponse in interface DataIoTask<T extends DataItem>public final long getDataLatency()
getDataLatency in interface DataIoTask<T extends DataItem>public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.ExternalizablewriteExternal in class BasicIoTask<T extends DataItem>java.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.ExternalizablereadExternal in class BasicIoTask<T extends DataItem>java.io.IOExceptionjava.lang.ClassNotFoundException