本文整理了Java中org.dcm4che3.net.Association.getRemoteAET()
方法的一些代码示例,展示了Association.getRemoteAET()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Association.getRemoteAET()
方法的具体详情如下:
包路径:org.dcm4che3.net.Association
类名称:Association
方法名:getRemoteAET
暂无
代码示例来源:origin: dcm4che/dcm4che
private void waitForOutstandingCStoreRSP(Association storeas) {
try {
synchronized (outstandingRSPLock) {
while (outstandingRSP > 0)
outstandingRSPLock.wait();
}
} catch (InterruptedException e) {
LOG.warn("{}: failed to wait for outstanding RSP on association to {}",
rqas, storeas.getRemoteAET(), e);
}
}
代码示例来源:origin: org.dcm4che/dcm4che-net
private void waitForOutstandingCStoreRSP(Association storeas) {
try {
synchronized (outstandingRSPLock) {
while (outstandingRSP > 0)
outstandingRSPLock.wait();
}
} catch (InterruptedException e) {
LOG.warn("{}: failed to wait for outstanding RSP on association to {}",
rqas, storeas.getRemoteAET(), e);
}
}
代码示例来源:origin: org.dcm4che/dcm4che-net
protected void releaseStoreAssociation(Association storeas) {
try {
storeas.release();
} catch (IOException e) {
LOG.warn("{}: failed to release association to {}",
rqas, storeas.getRemoteAET(), e);
}
}
代码示例来源:origin: dcm4che/dcm4che
protected void releaseStoreAssociation(Association storeas) {
try {
storeas.release();
} catch (IOException e) {
LOG.warn("{}: failed to release association to {}",
rqas, storeas.getRemoteAET(), e);
}
}
代码示例来源:origin: dcm4che/dcm4che
@Override
public synchronized void onClose(Association as) {
super.onClose(as);
if (!finished) {
ex = as.getException();
if (ex == null)
ex = new IOException("Association to " + as.getRemoteAET()
+ " released before receive of outstanding DIMSE RSP");
notifyAll();
}
}
代码示例来源:origin: org.dcm4che/dcm4che-net
@Override
public synchronized void onClose(Association as) {
super.onClose(as);
if (!finished) {
ex = as.getException();
if (ex == null)
ex = new IOException("Association to " + as.getRemoteAET()
+ " released before receive of outstanding DIMSE RSP");
notifyAll();
}
}
代码示例来源:origin: dcm4che/dcm4che
private void writeRSP(Attributes cmd, Attributes data) {
try {
rqas.writeDimseRSP(pc, cmd, data);
} catch (IOException e) {
pendingRSP = false;
stopWritePendingRSP();
LOG.warn("{}: Unable to send C-GET or C-MOVE RSP on association to {}",
rqas, rqas.getRemoteAET(), e);
}
}
代码示例来源:origin: org.dcm4che/dcm4che-net
private void writeRSP(Attributes cmd, Attributes data) {
try {
rqas.writeDimseRSP(pc, cmd, data);
} catch (IOException e) {
pendingRSP = false;
stopWritePendingRSP();
LOG.warn("{}: Unable to send C-GET or C-MOVE RSP on association to {}",
rqas, rqas.getRemoteAET(), e);
}
}
代码示例来源:origin: org.dcm4che.dcm4chee-proxy/dcm4chee-proxy-conf
public boolean isAssociationFromDestinationAET(Association asAccepted) {
ProxyAEExtension pae = (ProxyAEExtension) asAccepted.getApplicationEntity().getAEExtension(
ProxyAEExtension.class);
for (ForwardRule rule : pae.getForwardRules())
for (String destinationAET : rule.getDestinationAETitles())
if (asAccepted.getRemoteAET().equals(destinationAET))
return true;
return false;
}
代码示例来源:origin: dcm4che/dcm4che
LOG.info("{}: Unable to retrieve {}/{} to {}", rqas,
UID.nameOf(inst.cuid), UID.nameOf(inst.tsuid),
storeas.getRemoteAET(), e);
failed.add(inst);
continue;
status = Status.UnableToPerformSubOperations;
LOG.warn("{}: Unable to perform sub-operation on association to {}",
rqas, storeas.getRemoteAET(), e);
failed.add(inst);
while (iter.hasNext())
代码示例来源:origin: org.dcm4che/dcm4che-net
LOG.info("{}: Unable to retrieve {}/{} to {}", rqas,
UID.nameOf(inst.cuid), UID.nameOf(inst.tsuid),
storeas.getRemoteAET(), e);
failed.add(inst);
continue;
status = Status.UnableToPerformSubOperations;
LOG.warn("{}: Unable to perform sub-operation on association to {}",
rqas, storeas.getRemoteAET(), e);
failed.add(inst);
while (iter.hasNext())
代码示例来源:origin: dcm4che/dcm4che
protected void cstore(Association storeas, T inst, String tsuid,
DataWriter dataWriter) throws IOException, InterruptedException {
DimseRSPHandler rspHandler =
new CStoreRSPHandler(storeas.nextMessageID(), inst);
if (isCMove())
storeas.cstore(inst.cuid, inst.iuid, priority,
rqas.getRemoteAET(), msgId,
dataWriter, tsuid, rspHandler);
else
storeas.cstore(inst.cuid, inst.iuid, priority,
dataWriter, tsuid, rspHandler);
synchronized (outstandingRSPLock) {
outstandingRSP++;
}
}
代码示例来源:origin: dcm4che/dcm4che
t2 = System.currentTimeMillis();
System.out.println(MessageFormat.format(
rb.getString("connected"), main.as.getRemoteAET(), t2
- t1));
if (echo)
代码示例来源:origin: org.dcm4che/dcm4che-net
protected void cstore(Association storeas, T inst, String tsuid,
DataWriter dataWriter) throws IOException, InterruptedException {
DimseRSPHandler rspHandler =
new CStoreRSPHandler(storeas.nextMessageID(), inst);
if (isCMove())
storeas.cstore(inst.cuid, inst.iuid, priority,
rqas.getRemoteAET(), msgId,
dataWriter, tsuid, rspHandler);
else
storeas.cstore(inst.cuid, inst.iuid, priority,
dataWriter, tsuid, rspHandler);
synchronized (outstandingRSPLock) {
outstandingRSP++;
}
}
代码示例来源:origin: usnistgov/iheos-toolkit2
t2 = System.currentTimeMillis();
System.out.println(MessageFormat.format(
rb.getString("connected"), main.as.getRemoteAET(), t2
- t1));
if (echo)
代码示例来源:origin: dcm4che/dcm4che
public Attributes createFileMetaInformation(String iuid, String cuid,
String tsuid) {
Attributes fmi = new Attributes(7);
fmi.setBytes(Tag.FileMetaInformationVersion, VR.OB, new byte[] { 0, 1 });
fmi.setString(Tag.MediaStorageSOPClassUID, VR.UI, cuid);
fmi.setString(Tag.MediaStorageSOPInstanceUID, VR.UI, iuid);
fmi.setString(Tag.TransferSyntaxUID, VR.UI, tsuid);
fmi.setString(Tag.ImplementationClassUID, VR.UI,
getRemoteImplClassUID());
String versionName = getRemoteImplVersionName();
if (versionName != null)
fmi.setString(Tag.ImplementationVersionName, VR.SH, versionName);
fmi.setString(Tag.SourceApplicationEntityTitle, VR.AE,
getRemoteAET());
return fmi;
}
代码示例来源:origin: org.dcm4che/dcm4che-net
public Attributes createFileMetaInformation(String iuid, String cuid,
String tsuid) {
Attributes fmi = new Attributes(7);
fmi.setBytes(Tag.FileMetaInformationVersion, VR.OB, new byte[] { 0, 1 });
fmi.setString(Tag.MediaStorageSOPClassUID, VR.UI, cuid);
fmi.setString(Tag.MediaStorageSOPInstanceUID, VR.UI, iuid);
fmi.setString(Tag.TransferSyntaxUID, VR.UI, tsuid);
fmi.setString(Tag.ImplementationClassUID, VR.UI,
getRemoteImplClassUID());
String versionName = getRemoteImplVersionName();
if (versionName != null)
fmi.setString(Tag.ImplementationVersionName, VR.SH, versionName);
fmi.setString(Tag.SourceApplicationEntityTitle, VR.AE,
getRemoteAET());
return fmi;
}
代码示例来源:origin: dcm4che/dcm4che
private AAssociateRQ makeAAssociateRQ() {
AAssociateRQ aarq = new AAssociateRQ();
aarq.setCallingAET(as.getLocalAET());
aarq.setCalledAET(as.getRemoteAET());
ApplicationEntity ae = as.getApplicationEntity();
TransferCapability tc = ae.getTransferCapabilityFor(
UID.StorageCommitmentPushModelSOPClass, TransferCapability.Role.SCP);
aarq.addPresentationContext(
new PresentationContext(
1,
UID.StorageCommitmentPushModelSOPClass,
tc.getTransferSyntaxes()));
aarq.addRoleSelection(
new RoleSelection(UID.StorageCommitmentPushModelSOPClass, false, true));
return aarq;
}
代码示例来源:origin: org.dcm4che.tool/dcm4che-tool-dcmqrscp
private AAssociateRQ makeAAssociateRQ() {
AAssociateRQ aarq = new AAssociateRQ();
aarq.setCallingAET(as.getLocalAET());
aarq.setCalledAET(as.getRemoteAET());
ApplicationEntity ae = as.getApplicationEntity();
TransferCapability tc = ae.getTransferCapabilityFor(
UID.StorageCommitmentPushModelSOPClass, TransferCapability.Role.SCP);
aarq.addPresentationContext(
new PresentationContext(
1,
UID.StorageCommitmentPushModelSOPClass,
tc.getTransferSyntaxes()));
aarq.addRoleSelection(
new RoleSelection(UID.StorageCommitmentPushModelSOPClass, false, true));
return aarq;
}
内容来源于网络,如有侵权,请联系作者删除!