public class BasicMultiCStoreProgressListener extends java.lang.Object implements MultiCStoreProgressListener
MultiCStoreProgressListener
.Constructor and Description |
---|
BasicMultiCStoreProgressListener() |
Modifier and Type | Method and Description |
---|---|
void |
bytesSent(long numberOfBytesSent)
will be called every time a buffer of bytes has been sent to the remote AE.
|
void |
bytesTotal(long totalNumberOfBytes)
will be called right before the C-STORE items will be sent.
|
void |
itemStored(CStoreItemResult storeItemResult)
will be called every time an item has been sent to the remote AE.
|
void |
itemWillStore(AssociationItem associationItem,
DicomObject dataset)
will be called every time the sending of an item to the remote AE will be started.
|
public void bytesSent(long numberOfBytesSent)
MultiCStoreProgressListener
bytesSent
in interface MultiCStoreProgressListener
numberOfBytesSent
- the accumulative total number of bytes that have been sent.public void bytesTotal(long totalNumberOfBytes)
MultiCStoreProgressListener
bytesTotal
in interface MultiCStoreProgressListener
totalNumberOfBytes
- the total number of bytes that will be sent to the remote AE.public void itemWillStore(AssociationItem associationItem, DicomObject dataset) throws StoreContinueVetoException
MultiCStoreProgressListener
itemWillStore
in interface MultiCStoreProgressListener
associationItem
- the item that will be sentdataset
- a reference to the actual DicomObject that will be sentStoreContinueVetoException
- throw this if you want to interrupt the current C-STORE operation.public void itemStored(CStoreItemResult storeItemResult) throws StoreContinueVetoException
MultiCStoreProgressListener
itemStored
in interface MultiCStoreProgressListener
storeItemResult
- the result of the C-STORE operation of 1 item.StoreContinueVetoException
- throw this if you want to interrupt the current C-STORE operation.