Package org.aoju.bus.image.metric
Class Association
java.lang.Object
org.aoju.bus.image.metric.Association
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidabort()voidaddAssociationListener(AssociationListener listener) voidaddCancelRQHandler(int msgId, CancelRQHandler handler) cecho()cfind(String cuid, int priority, Attributes data, String tsuid, int autoCancel) cfind(String cuid, int priority, Attributes data, String tsuid, int autoCancel, int capacity) 发送C-FIND-RQ返回一个DimseRSP.next()阻塞的DimseRSP,直到接收到下一个C-FIND-RSP 如果在返回的DimseRSP中缓存的接收到的C-FIND-RSP的数量达到指定的capacity则从关联块中读取C-FIND-RSP,直到缓存的C-FIND-RSP为通过调用DimseRSP.next()删除voidcfind(String cuid, int priority, Attributes data, String tsuid, DimseRSPHandler rspHandler) cget(String cuid, int priority, Attributes data, String tsuid) voidcget(String cuid, int priority, Attributes data, String tsuid, DimseRSPHandler rspHandler) clearProperty(String key) cmove(String cuid, int priority, Attributes data, String tsuid, String destination) voidcmove(String cuid, int priority, Attributes data, String tsuid, String destination, DimseRSPHandler rspHandler) booleancontainsProperty(String key) createFileMetaInformation(String iuid, String cuid, String tsuid) cstore(String cuid, String iuid, int priority, String moveOriginatorAET, int moveOriginatorMsgId, DataWriter data, String tsuid) voidcstore(String cuid, String iuid, int priority, String moveOriginatorAET, int moveOriginatorMsgId, DataWriter data, String tsuid, DimseRSPHandler rspHandler) cstore(String cuid, String iuid, int priority, DataWriter data, String tsuid) voidcstore(String cuid, String iuid, int priority, DataWriter data, String tsuid, DimseRSPHandler rspHandler) final AAssociateACfinal AAssociateRQfinal ApplicationEntityfinal Connectionlongfinal IOExceptionfinal intintgetNumberOfReceived(Dimse dimse) intgetNumberOfSent(Dimse dimse) getPresentationContext(int pcid) <T> TgetProperty(Class<T> clazz) getProperty(String key) getQueryOptionsFor(String cuid) intfinal Socketfinal Association.StategetState()getTransferSyntaxesFor(String cuid) voidincSentCount(Dimse dimse) voidinvoke(Presentation pc, Attributes cmd, DataWriter data, DimseRSPHandler rspHandler, int rspTimeout) voidinvoke(Presentation pc, Attributes cmd, DataWriter data, DimseRSPHandler rspHandler, int rspTimeout, boolean stopOnPending) booleanbooleanfinal booleanbooleanbooleannaction(String cuid, String iuid, int actionTypeId, Attributes data, String tsuid) voidnaction(String cuid, String iuid, int actionTypeId, Attributes data, String tsuid, DimseRSPHandler rspHandler) voidnaction(String asuid, String cuid, String iuid, int actionTypeId, Attributes data, String tsuid, DimseRSPHandler rspHandler) voidncreate(String asuid, String cuid, String iuid, Attributes data, String tsuid, DimseRSPHandler rspHandler) ncreate(String cuid, String iuid, Attributes data, String tsuid) voidncreate(String cuid, String iuid, Attributes data, String tsuid, DimseRSPHandler rspHandler) voidndelete(String asuid, String cuid, String iuid, DimseRSPHandler rspHandler) voidndelete(String cuid, String iuid, DimseRSPHandler rspHandler) neventReport(String cuid, String iuid, int eventTypeId, Attributes data, String tsuid) voidneventReport(String cuid, String iuid, int eventTypeId, Attributes data, String tsuid, DimseRSPHandler rspHandler) neventReport(String asuid, String cuid, String iuid, int eventTypeId, Attributes data, String tsuid) voidneventReport(String asuid, String cuid, String iuid, int eventTypeId, Attributes data, String tsuid, DimseRSPHandler rspHandler) intvoidnget(String cuid, String iuid, int[] tags, DimseRSPHandler rspHandler) voidnget(String asuid, String cuid, String iuid, int[] tags, DimseRSPHandler rspHandler) voidnset(String asuid, String cuid, String iuid, Attributes data, String tsuid, DimseRSPHandler rspHandler) voidnset(String asuid, String cuid, String iuid, DataWriter data, String tsuid, DimseRSPHandler rspHandler) nset(String cuid, String iuid, Attributes data, String tsuid) voidnset(String cuid, String iuid, Attributes data, String tsuid, DimseRSPHandler rspHandler) nset(String cuid, String iuid, DataWriter data, String tsuid) voidnset(String cuid, String iuid, DataWriter data, String tsuid, DimseRSPHandler rspHandler) voidvoidvoidvoidvoidvoidvoidonCancelRQ(Attributes cmd) voidonDimseRQ(Presentation pc, Dimse dimse, Attributes cmd, PDVInputStream data) voidonDimseRSP(Dimse dimse, Attributes cmd, Attributes data) voidvoidvoidrelease()voidremoveAssociationListener(AssociationListener listener) removeCancelRQHandler(int msgId) <T> voidsetProperty(Class<T> clazz, Object value) setProperty(String key, Object value) toString()booleantryWriteDimseRSP(Presentation pc, Attributes cmd) booleantryWriteDimseRSP(Presentation pc, Attributes cmd, Attributes data) voidvoidvoidwriteDimseRSP(Presentation pc, Attributes cmd) voidwriteDimseRSP(Presentation pc, Attributes cmd, Attributes data) void
-
Method Details
-
getConnectTimeInMillis
public long getConnectTimeInMillis() -
getSerialNo
public int getSerialNo() -
getDevice
-
nextMessageID
public int nextMessageID() -
getNumberOfSent
-
getNumberOfReceived
-
incSentCount
-
toString
-
getSocket
-
getConnection
-
getAAssociateRQ
-
getAAssociateAC
-
getException
-
getApplicationEntity
-
getPropertyNames
-
getProperty
-
getProperty
-
setProperty
-
containsProperty
-
setProperty
-
clearProperty
-
addAssociationListener
-
removeAssociationListener
-
isRequestor
public final boolean isRequestor() -
isReadyForDataTransfer
public boolean isReadyForDataTransfer() -
isSCPFor
-
isSCUFor
-
getCallingAET
-
getCalledAET
-
getRemoteAET
-
getLocalAET
-
getRemoteImplVersionName
-
getRemoteImplClassUID
-
getLocalImplVersionName
-
getLocalImplClassUID
-
getMaxPDULengthSend
public final int getMaxPDULengthSend() -
isPackPDV
public boolean isPackPDV() -
release
- Throws:
IOException
-
abort
public void abort() -
onIOException
-
waitForOutstandingRSP
- Throws:
InterruptedException
-
getState
-
waitForSocketClose
- Throws:
InterruptedExceptionIOException
-
onAAssociateRQ
- Throws:
IOException
-
onAAssociateAC
- Throws:
IOException
-
onAAssociateRJ
- Throws:
IOException
-
onAReleaseRQ
- Throws:
IOException
-
onAReleaseRP
- Throws:
IOException
-
onAAbort
-
onPDataTF
- Throws:
IOException
-
writePDataTF
- Throws:
IOException
-
onDimseRQ
public void onDimseRQ(Presentation pc, Dimse dimse, Attributes cmd, PDVInputStream data) throws IOException - Throws:
IOException
-
onDimseRSP
- Throws:
AAbort
-
tryWriteDimseRSP
-
tryWriteDimseRSP
-
writeDimseRSP
- Throws:
IOException
-
writeDimseRSP
- Throws:
IOException
-
onCancelRQ
-
addCancelRQHandler
-
removeCancelRQHandler
-
pcFor
public Presentation pcFor(String cuid, String tsuid) throws org.aoju.bus.core.exception.InternalException - Throws:
org.aoju.bus.core.exception.InternalException
-
getTransferSyntaxesFor
-
getPresentationContext
-
getCommonExtendedNegotiationFor
-
cstore
public void cstore(String cuid, String iuid, int priority, DataWriter data, String tsuid, DimseRSPHandler rspHandler) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
cstore
public DimseRSP cstore(String cuid, String iuid, int priority, DataWriter data, String tsuid) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
cstore
public void cstore(String cuid, String iuid, int priority, String moveOriginatorAET, int moveOriginatorMsgId, DataWriter data, String tsuid, DimseRSPHandler rspHandler) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
cstore
public DimseRSP cstore(String cuid, String iuid, int priority, String moveOriginatorAET, int moveOriginatorMsgId, DataWriter data, String tsuid) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
cfind
public void cfind(String cuid, int priority, Attributes data, String tsuid, DimseRSPHandler rspHandler) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
cfind
public DimseRSP cfind(String cuid, int priority, Attributes data, String tsuid, int autoCancel) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
cfind
public DimseRSP cfind(String cuid, int priority, Attributes data, String tsuid, int autoCancel, int capacity) throws IOException, InterruptedException 发送C-FIND-RQ返回一个DimseRSP.next()阻塞的DimseRSP,直到接收到下一个C-FIND-RSP 如果在返回的DimseRSP中缓存的接收到的C-FIND-RSP的数量达到指定的capacity则从关联块中读取C-FIND-RSP,直到缓存的C-FIND-RSP为通过调用DimseRSP.next()删除- Parameters:
cuid- 与操作关联的SOP类UIDpriority- C-FIND操作的优先级 0 = MEDIUM, 1 = HIGH, 2 = LOWdata- 编码要匹配的标识符的数据集tsuid- 用于编码标识符的传输语法autoCancel- 待发送的C-CINDL-RQ的挂起C-FIND RSP的数量capacity- 接收的未决C-FIND-RSP的缓冲区大小- Returns:
DimseRSP.next()会阻止,直到接收到下一个C-FIND-RSP- Throws:
IOException- 如果发送C-FIND-RQ时出错InterruptedException- 如果任何线程在当前*线程正在等待其他调用的操作完成之前或之时中断了当前线程
-
cget
public void cget(String cuid, int priority, Attributes data, String tsuid, DimseRSPHandler rspHandler) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
cget
public DimseRSP cget(String cuid, int priority, Attributes data, String tsuid) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
cmove
public void cmove(String cuid, int priority, Attributes data, String tsuid, String destination, DimseRSPHandler rspHandler) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
cmove
public DimseRSP cmove(String cuid, int priority, Attributes data, String tsuid, String destination) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
cecho
- Throws:
IOExceptionInterruptedException
-
cecho
- Throws:
IOExceptionInterruptedException
-
neventReport
public void neventReport(String cuid, String iuid, int eventTypeId, Attributes data, String tsuid, DimseRSPHandler rspHandler) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
neventReport
public void neventReport(String asuid, String cuid, String iuid, int eventTypeId, Attributes data, String tsuid, DimseRSPHandler rspHandler) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
neventReport
public DimseRSP neventReport(String cuid, String iuid, int eventTypeId, Attributes data, String tsuid) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
neventReport
public DimseRSP neventReport(String asuid, String cuid, String iuid, int eventTypeId, Attributes data, String tsuid) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
nget
public void nget(String cuid, String iuid, int[] tags, DimseRSPHandler rspHandler) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
nget
public void nget(String asuid, String cuid, String iuid, int[] tags, DimseRSPHandler rspHandler) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
nget
- Throws:
IOExceptionInterruptedException
-
nget
public DimseRSP nget(String asuid, String cuid, String iuid, int[] tags) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
nset
public void nset(String cuid, String iuid, Attributes data, String tsuid, DimseRSPHandler rspHandler) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
nset
public void nset(String asuid, String cuid, String iuid, Attributes data, String tsuid, DimseRSPHandler rspHandler) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
nset
public DimseRSP nset(String cuid, String iuid, Attributes data, String tsuid) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
nset
public DimseRSP nset(String asuid, String cuid, String iuid, Attributes data, String tsuid) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
nset
public void nset(String cuid, String iuid, DataWriter data, String tsuid, DimseRSPHandler rspHandler) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
nset
public void nset(String asuid, String cuid, String iuid, DataWriter data, String tsuid, DimseRSPHandler rspHandler) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
nset
public DimseRSP nset(String cuid, String iuid, DataWriter data, String tsuid) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
nset
public DimseRSP nset(String asuid, String cuid, String iuid, DataWriter data, String tsuid) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
naction
public void naction(String cuid, String iuid, int actionTypeId, Attributes data, String tsuid, DimseRSPHandler rspHandler) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
naction
public void naction(String asuid, String cuid, String iuid, int actionTypeId, Attributes data, String tsuid, DimseRSPHandler rspHandler) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
naction
public DimseRSP naction(String cuid, String iuid, int actionTypeId, Attributes data, String tsuid) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
naction
public DimseRSP naction(String asuid, String cuid, String iuid, int actionTypeId, Attributes data, String tsuid) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
ncreate
public void ncreate(String cuid, String iuid, Attributes data, String tsuid, DimseRSPHandler rspHandler) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
ncreate
public void ncreate(String asuid, String cuid, String iuid, Attributes data, String tsuid, DimseRSPHandler rspHandler) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
ncreate
public DimseRSP ncreate(String cuid, String iuid, Attributes data, String tsuid) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
ncreate
public DimseRSP ncreate(String asuid, String cuid, String iuid, Attributes data, String tsuid) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
ndelete
public void ndelete(String cuid, String iuid, DimseRSPHandler rspHandler) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
ndelete
public void ndelete(String asuid, String cuid, String iuid, DimseRSPHandler rspHandler) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
ndelete
- Throws:
IOExceptionInterruptedException
-
ndelete
public DimseRSP ndelete(String asuid, String cuid, String iuid) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
invoke
public void invoke(Presentation pc, Attributes cmd, DataWriter data, DimseRSPHandler rspHandler, int rspTimeout) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
invoke
public void invoke(Presentation pc, Attributes cmd, DataWriter data, DimseRSPHandler rspHandler, int rspTimeout, boolean stopOnPending) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
createFileMetaInformation
-
getQueryOptionsFor
-