Class BasicRetrieve<T extends Instance>
java.lang.Object
org.aoju.bus.image.metric.service.BasicRetrieve<T>
- All Implemented Interfaces:
Runnable,CancelRQHandler,Retrieve
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected final intprotected intprotected Objectprotected final Presentationprotected booleanprotected intprotected final intprotected final Dimseprotected final Associationprotected final Attributesprotected intprotected final Association -
Constructor Summary
ConstructorsConstructorDescriptionBasicRetrieve(Dimse rq, Association rqas, Presentation pc, Attributes rqCmd, List<T> insts, Association storeas) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidclose()protected DataWritercreateDataWriter(T inst, String tsuid) protected voidcstore(Association storeas, T inst, String tsuid, DataWriter dataWriter) intbooleanbooleanisCMove()voidprotected voidreleaseStoreAssociation(Association storeas) voidrun()protected StringselectTransferSyntaxFor(Association storeas, T inst) voidsetSendPendingRSP(boolean pendingRSP) voidsetSendPendingRSPInterval(int pendingRSPInterval) void
-
Field Details
-
rq
-
rqas
-
storeas
-
pc
-
rqCmd
-
msgId
protected final int msgId -
priority
protected final int priority -
insts
-
completed
-
warning
-
failed
-
status
protected int status -
pendingRSP
protected boolean pendingRSP -
pendingRSPInterval
protected int pendingRSPInterval -
canceled
protected boolean canceled -
outstandingRSP
protected int outstandingRSP -
outstandingRSPLock
-
-
Constructor Details
-
BasicRetrieve
public BasicRetrieve(Dimse rq, Association rqas, Presentation pc, Attributes rqCmd, List<T> insts, Association storeas)
-
-
Method Details
-
setSendPendingRSP
public void setSendPendingRSP(boolean pendingRSP) -
setSendPendingRSPInterval
public void setSendPendingRSPInterval(int pendingRSPInterval) -
isCMove
public boolean isCMove() -
isCanceled
public boolean isCanceled() -
getStatus
public int getStatus() -
getRequestAssociation
-
getStoreAssociation
-
getCompleted
-
getWarning
-
getFailed
-
onCancelRQ
- Specified by:
onCancelRQin interfaceCancelRQHandler
-
run
public void run() -
releaseStoreAssociation
-
cstore
protected void cstore(Association storeas, T inst, String tsuid, DataWriter dataWriter) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
selectTransferSyntaxFor
-
createDataWriter
- Throws:
Exception
-
writePendingRSP
public void writePendingRSP() -
close
protected void close()
-