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)
MultiCStoreProgressListenerbytesSent in interface MultiCStoreProgressListenernumberOfBytesSent - the accumulative total number of bytes that have been sent.public void bytesTotal(long totalNumberOfBytes)
MultiCStoreProgressListenerbytesTotal in interface MultiCStoreProgressListenertotalNumberOfBytes - the total number of bytes that will be sent to the remote AE.public void itemWillStore(AssociationItem associationItem, DicomObject dataset) throws StoreContinueVetoException
MultiCStoreProgressListeneritemWillStore in interface MultiCStoreProgressListenerassociationItem - 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
MultiCStoreProgressListeneritemStored in interface MultiCStoreProgressListenerstoreItemResult - the result of the C-STORE operation of 1 item.StoreContinueVetoException - throw this if you want to interrupt the current C-STORE operation.