public class Association extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Association.State |
public long getConnectTimeInMillis()
public int getSerialNo()
public Device getDevice()
public int nextMessageID()
public int getNumberOfSent(Dimse dimse)
public int getNumberOfReceived(Dimse dimse)
public void incSentCount(Dimse dimse)
public final Socket getSocket()
public final Connection getConnection()
public final AAssociateRQ getAAssociateRQ()
public final AAssociateAC getAAssociateAC()
public final IOException getException()
public final ApplicationEntity getApplicationEntity()
public <T> T getProperty(Class<T> clazz)
public boolean containsProperty(String key)
public void addAssociationListener(AssociationListener listener)
public void removeAssociationListener(AssociationListener listener)
public final boolean isRequestor()
public boolean isReadyForDataTransfer()
public boolean isSCPFor(String cuid)
public boolean isSCUFor(String cuid)
public String getCallingAET()
public String getCalledAET()
public String getRemoteAET()
public String getLocalAET()
public String getRemoteImplVersionName()
public String getRemoteImplClassUID()
public String getLocalImplVersionName()
public String getLocalImplClassUID()
public final int getMaxPDULengthSend()
public boolean isPackPDV()
public void release()
throws IOException
IOExceptionpublic void abort()
public void onIOException(IOException e)
public void waitForOutstandingRSP()
throws InterruptedException
InterruptedExceptionpublic final Association.State getState()
public void waitForSocketClose()
throws InterruptedException,
IOException
InterruptedExceptionIOExceptionpublic void onAAssociateRQ(AAssociateRQ rq) throws IOException
IOExceptionpublic void onAAssociateAC(AAssociateAC ac) throws IOException
IOExceptionpublic void onAAssociateRJ(AAssociateRJ rj) throws IOException
IOExceptionpublic void onAReleaseRQ()
throws IOException
IOExceptionpublic void onAReleaseRP()
throws IOException
IOExceptionpublic void onAAbort(AAbort aa)
public void onPDataTF()
throws IOException
IOExceptionpublic void writePDataTF()
throws IOException
IOExceptionpublic void onDimseRQ(Presentation pc, Dimse dimse, Attributes cmd, PDVInputStream data) throws IOException
IOExceptionpublic void onDimseRSP(Dimse dimse, Attributes cmd, Attributes data) throws AAbort
AAbortpublic boolean tryWriteDimseRSP(Presentation pc, Attributes cmd)
public boolean tryWriteDimseRSP(Presentation pc, Attributes cmd, Attributes data)
public void writeDimseRSP(Presentation pc, Attributes cmd) throws IOException
IOExceptionpublic void writeDimseRSP(Presentation pc, Attributes cmd, Attributes data) throws IOException
IOExceptionpublic void onCancelRQ(Attributes cmd)
public void addCancelRQHandler(int msgId,
CancelRQHandler handler)
public CancelRQHandler removeCancelRQHandler(int msgId)
public Presentation pcFor(String cuid, String tsuid) throws org.aoju.bus.core.lang.exception.InstrumentException
org.aoju.bus.core.lang.exception.InstrumentExceptionpublic Presentation getPresentationContext(int pcid)
public CommonExtended getCommonExtendedNegotiationFor(String cuid)
public void cstore(String cuid, String iuid, int priority, DataWriter data, String tsuid, DimseRSPHandler rspHandler) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic DimseRSP cstore(String cuid, String iuid, int priority, DataWriter data, String tsuid) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void cstore(String cuid, String iuid, int priority, String moveOriginatorAET, int moveOriginatorMsgId, DataWriter data, String tsuid, DimseRSPHandler rspHandler) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic DimseRSP cstore(String cuid, String iuid, int priority, String moveOriginatorAET, int moveOriginatorMsgId, DataWriter data, String tsuid) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void cfind(String cuid, int priority, Attributes data, String tsuid, DimseRSPHandler rspHandler) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic DimseRSP cfind(String cuid, int priority, Attributes data, String tsuid, int autoCancel) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic DimseRSP cfind(String cuid, int priority, Attributes data, String tsuid, int autoCancel, int capacity) throws IOException, InterruptedException
DimseRSP.next()阻塞的DimseRSP,直到接收到下一个C-FIND-RSP
如果在返回的DimseRSP中缓存的接收到的C-FIND-RSP的数量达到指定的capacity
则从关联块中读取C-FIND-RSP,直到缓存的C-FIND-RSP为通过调用DimseRSP.next()删除cuid - 与操作关联的SOP类UIDpriority - C-FIND操作的优先级 0 = MEDIUM, 1 = HIGH, 2 = LOWdata - 编码要匹配的标识符的数据集tsuid - 用于编码标识符的传输语法autoCancel - 待发送的C-CINDL-RQ的挂起C-FIND RSP的数量capacity - 接收的未决C-FIND-RSP的缓冲区大小DimseRSP.next()会阻止,直到接收到下一个C-FIND-RSPIOException - 如果发送C-FIND-RQ时出错InterruptedException - 如果任何线程在当前*线程正在等待其他调用的操作完成之前或之时中断了当前线程public void cget(String cuid, int priority, Attributes data, String tsuid, DimseRSPHandler rspHandler) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic DimseRSP cget(String cuid, int priority, Attributes data, String tsuid) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void cmove(String cuid, int priority, Attributes data, String tsuid, String destination, DimseRSPHandler rspHandler) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic DimseRSP cmove(String cuid, int priority, Attributes data, String tsuid, String destination) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic DimseRSP cecho() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic DimseRSP cecho(String cuid) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void neventReport(String cuid, String iuid, int eventTypeId, Attributes data, String tsuid, DimseRSPHandler rspHandler) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void neventReport(String asuid, String cuid, String iuid, int eventTypeId, Attributes data, String tsuid, DimseRSPHandler rspHandler) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic DimseRSP neventReport(String cuid, String iuid, int eventTypeId, Attributes data, String tsuid) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic DimseRSP neventReport(String asuid, String cuid, String iuid, int eventTypeId, Attributes data, String tsuid) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void nget(String cuid, String iuid, int[] tags, DimseRSPHandler rspHandler) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void nget(String asuid, String cuid, String iuid, int[] tags, DimseRSPHandler rspHandler) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic DimseRSP nget(String cuid, String iuid, int[] tags) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic DimseRSP nget(String asuid, String cuid, String iuid, int[] tags) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void nset(String cuid, String iuid, Attributes data, String tsuid, DimseRSPHandler rspHandler) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void nset(String asuid, String cuid, String iuid, Attributes data, String tsuid, DimseRSPHandler rspHandler) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic DimseRSP nset(String cuid, String iuid, Attributes data, String tsuid) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic DimseRSP nset(String asuid, String cuid, String iuid, Attributes data, String tsuid) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void nset(String cuid, String iuid, DataWriter data, String tsuid, DimseRSPHandler rspHandler) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void nset(String asuid, String cuid, String iuid, DataWriter data, String tsuid, DimseRSPHandler rspHandler) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic DimseRSP nset(String cuid, String iuid, DataWriter data, String tsuid) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic DimseRSP nset(String asuid, String cuid, String iuid, DataWriter data, String tsuid) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void naction(String cuid, String iuid, int actionTypeId, Attributes data, String tsuid, DimseRSPHandler rspHandler) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void naction(String asuid, String cuid, String iuid, int actionTypeId, Attributes data, String tsuid, DimseRSPHandler rspHandler) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic DimseRSP naction(String cuid, String iuid, int actionTypeId, Attributes data, String tsuid) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic DimseRSP naction(String asuid, String cuid, String iuid, int actionTypeId, Attributes data, String tsuid) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void ncreate(String cuid, String iuid, Attributes data, String tsuid, DimseRSPHandler rspHandler) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void ncreate(String asuid, String cuid, String iuid, Attributes data, String tsuid, DimseRSPHandler rspHandler) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic DimseRSP ncreate(String cuid, String iuid, Attributes data, String tsuid) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic DimseRSP ncreate(String asuid, String cuid, String iuid, Attributes data, String tsuid) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void ndelete(String cuid, String iuid, DimseRSPHandler rspHandler) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void ndelete(String asuid, String cuid, String iuid, DimseRSPHandler rspHandler) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic DimseRSP ndelete(String cuid, String iuid) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic DimseRSP ndelete(String asuid, String cuid, String iuid) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void invoke(Presentation pc, Attributes cmd, DataWriter data, DimseRSPHandler rspHandler, int rspTimeout) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void invoke(Presentation pc, Attributes cmd, DataWriter data, DimseRSPHandler rspHandler, int rspTimeout, boolean stopOnPending) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic Attributes createFileMetaInformation(String iuid, String cuid, String tsuid)
public EnumSet<Option.Type> getQueryOptionsFor(String cuid)
Copyright © 2020. All rights reserved.