|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.univocity.api.statistics.NoopDataTransfer
public final class NoopDataTransfer
A singleton DataTransfer that does nothing.
| Field Summary | |
|---|---|
static DataTransfer |
instance
The only instance available of a NoopDataTransfer |
| Method Summary | ||
|---|---|---|
void |
aborted(Object source,
Object target,
Exception error)
Notifies that the data transfer has been aborted. |
|
void |
completed(Object source,
Object target)
Notifies that a data transfer has been finalized. |
|
static
|
getInstance()
Returns the singleton instance of a NoopDataTransfer in generic-friendly way |
|
boolean |
isAborted()
Returns a flag indicating whether the data transfer was aborted. |
|
boolean |
isRunning()
Returns a flag indicating whether the data transfer is running. |
|
boolean |
isStarted()
Returns a flag indicating whether the data transfer has been started. |
|
void |
started(Object source,
long totalSize,
Object target)
Notifies a data transfer has been started. |
|
void |
transferred(Object source,
long transferred,
Object target)
Notifies how much data has been transferred from source to target. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final DataTransfer instance
NoopDataTransfer
| Method Detail |
|---|
public static final <S,T> DataTransfer<S,T> getInstance()
instance of a NoopDataTransfer in generic-friendly way
S - the source of data, where data is coming fromT - the target of data, where data is being transferred into.
NoopDataTransfer singleton instance
public final void started(Object source,
long totalSize,
Object target)
DataTransfer
started in interface DataTransfersource - the source of datatotalSize - the total size of the data. The meaning of the
amount provided depends on the underlying implementation: this can be bytes, number of
records, etc. If -1, the total size is unknown ahead of time.target - the data target
public final void transferred(Object source,
long transferred,
Object target)
DataTransfer
transferred in interface DataTransfersource - the source of datatransferred - the amount of data transferred since the last time this method was called. The meaning of the
amount provided depends on the underlying implementation: this can be bytes, number of
records, etc.target - the data target
public final void completed(Object source,
Object target)
DataTransfer
completed in interface DataTransfersource - the source of datatarget - the data target
public final void aborted(Object source,
Object target,
Exception error)
DataTransfer
aborted in interface DataTransfersource - the source of datatarget - the data targeterror - exception that caused the process abortion.public boolean isStarted()
DataTransfer
isStarted in interface DataTransferpublic boolean isRunning()
DataTransfer
isRunning in interface DataTransferpublic boolean isAborted()
DataTransfer
isAborted in interface DataTransfer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||