public void cget(String cuid, int priority, Attributes data, String tsuid, DimseRSPHandler rspHandler) throws IOException, InterruptedException { PresentationContext pc = pcFor(cuid, tsuid); checkIsSCU(cuid); Attributes cgetrq = Commands.mkCGetRQ(rspHandler.getMessageID(), cuid, priority); invoke(pc, cgetrq, new DataWriterAdapter(data), rspHandler, conn.getRetrieveTimeout(), !conn.isRetrieveTimeoutTotal()); }
public void cmove(String cuid, int priority, Attributes data, String tsuid, String destination, DimseRSPHandler rspHandler) throws IOException, InterruptedException { PresentationContext pc = pcFor(cuid, tsuid); checkIsSCU(cuid); Attributes cmoverq = Commands.mkCMoveRQ(rspHandler.getMessageID(), cuid, priority, destination); invoke(pc, cmoverq, new DataWriterAdapter(data), rspHandler, conn.getRetrieveTimeout(), !conn.isRetrieveTimeoutTotal()); }
public void cmove(String cuid, int priority, Attributes data, String tsuid, String destination, DimseRSPHandler rspHandler) throws IOException, InterruptedException { PresentationContext pc = pcFor(cuid, tsuid); checkIsSCU(cuid); Attributes cmoverq = Commands.mkCMoveRQ(rspHandler.getMessageID(), cuid, priority, destination); invoke(pc, cmoverq, new DataWriterAdapter(data), rspHandler, conn.getRetrieveTimeout(), !conn.isRetrieveTimeoutTotal()); }
public void cget(String cuid, int priority, Attributes data, String tsuid, DimseRSPHandler rspHandler) throws IOException, InterruptedException { PresentationContext pc = pcFor(cuid, tsuid); checkIsSCU(cuid); Attributes cgetrq = Commands.mkCGetRQ(rspHandler.getMessageID(), cuid, priority); invoke(pc, cgetrq, new DataWriterAdapter(data), rspHandler, conn.getRetrieveTimeout(), !conn.isRetrieveTimeoutTotal()); }
void onDimseRSP(Dimse dimse, Attributes cmd, Attributes data) throws AAbort { int msgId = cmd.getInt(Tag.MessageIDBeingRespondedTo, -1); int status = cmd.getInt(Tag.Status, 0); boolean pending = Status.isPending(status); DimseRSPHandler rspHandler = getDimseRSPHandler(msgId); if (rspHandler == null) { Dimse.LOG.info("{}: unexpected message ID in DIMSE RSP:", name); Dimse.LOG.info("\n{}", cmd); throw new AAbort(); } rspHandler.onDimseRSP(this, cmd, data); if (pending) { if (rspHandler.isStopOnPending()) startTimeout(msgId, conn.getRetrieveTimeout(),true); } else { incReceivedCount(dimse); removeDimseRSPHandler(msgId); if (rspHandlerForMsgId.isEmpty() && performing == 0) startIdleOrReleaseTimeout(); } }
void onDimseRSP(Dimse dimse, Attributes cmd, Attributes data) throws AAbort { int msgId = cmd.getInt(Tag.MessageIDBeingRespondedTo, -1); int status = cmd.getInt(Tag.Status, 0); boolean pending = Status.isPending(status); DimseRSPHandler rspHandler = getDimseRSPHandler(msgId); if (rspHandler == null) { Dimse.LOG.info("{}: unexpected message ID in DIMSE RSP:", name); Dimse.LOG.info("\n{}", cmd); throw new AAbort(); } rspHandler.onDimseRSP(this, cmd, data); if (pending) { if (rspHandler.isStopOnPending()) startTimeout(msgId, conn.getRetrieveTimeout(),true); } else { incReceivedCount(dimse); removeDimseRSPHandler(msgId); if (rspHandlerForMsgId.isEmpty() && performing == 0) startIdleOrReleaseTimeout(); } }
Connection.NO_TIMEOUT); LdapUtils.storeDiff(ldapObj, mods, "dcmRetrieveTimeout", a.getRetrieveTimeout(), b.getRetrieveTimeout(), Connection.NO_TIMEOUT); LdapUtils.storeDiff(ldapObj, mods, "dcmRetrieveTimeoutTotal",
Connection.NO_TIMEOUT); LdapUtils.storeDiff(ldapObj, mods, "dcmRetrieveTimeout", a.getRetrieveTimeout(), b.getRetrieveTimeout(), Connection.NO_TIMEOUT); LdapUtils.storeDiff(ldapObj, mods, "dcmRetrieveTimeoutTotal",
conn.getResponseTimeout(), Connection.NO_TIMEOUT); writer.writeNotDef("dcmRetrieveTimeout", conn.getRetrieveTimeout(), Connection.NO_TIMEOUT); writer.writeNotDef("dcmRetrieveTimeoutTotal", conn.isRetrieveTimeoutTotal(), false);
conn.getResponseTimeout(), Connection.NO_TIMEOUT); LdapUtils.storeNotDef(ldapObj, attrs, "dcmRetrieveTimeout", conn.getRetrieveTimeout(), Connection.NO_TIMEOUT); LdapUtils.storeNotDef(ldapObj, attrs, "dcmRetrieveTimeoutTotal", conn.isRetrieveTimeoutTotal(), false);
conn.getResponseTimeout(), Connection.NO_TIMEOUT); writer.writeNotDef("dcmRetrieveTimeout", conn.getRetrieveTimeout(), Connection.NO_TIMEOUT); writer.writeNotDef("dcmRetrieveTimeoutTotal", conn.isRetrieveTimeoutTotal(), false);
conn.getResponseTimeout(), Connection.NO_TIMEOUT); LdapUtils.storeNotDef(ldapObj, attrs, "dcmRetrieveTimeout", conn.getRetrieveTimeout(), Connection.NO_TIMEOUT); LdapUtils.storeNotDef(ldapObj, attrs, "dcmRetrieveTimeoutTotal", conn.isRetrieveTimeoutTotal(), false);