Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 1ebf22c7 authored by Gabriel Landais's avatar Gabriel Landais
Browse files

proxy-load tests

git-svn-id: https://scm.gforge.inria.fr/authscm/ycadoret/svn/gazelle/Maven/gazelle-proxy/trunk@27327 356b4b1a-1d2b-0410-8bf1-ffa24008f01e
parent e2227893
No related branches found
No related tags found
No related merge requests found
...@@ -22,6 +22,16 @@ ...@@ -22,6 +22,16 @@
</properties> </properties>
<dependencies> <dependencies>
<dependency>
<groupId>dcm4che.tool</groupId>
<artifactId>dcm4che-tool-dcmsnd</artifactId>
<version>2.0.25</version>
</dependency>
<dependency>
<groupId>dcm4che.tool</groupId>
<artifactId>dcm4che-tool-dcmrcv</artifactId>
<version>2.0.25</version>
</dependency>
<dependency> <dependency>
<groupId>junit</groupId> <groupId>junit</groupId>
<artifactId>junit</artifactId> <artifactId>junit</artifactId>
......
package org.gazelle.proxy.loadtests;
import java.io.IOException;
import org.dcm4che2.tool.dcmrcv.DcmRcv;
public class DcmRcvTest {
public static void main(String[] args) throws IOException {
DcmRcv dcmRcv = new DcmRcv("TEST");
dcmRcv.setAEtitle("TEST");
dcmRcv.setPort(60000);
dcmRcv.setDestination("/tmp");
dcmRcv.start();
}
}
package org.gazelle.proxy.loadtests;
import java.io.File;
import java.util.concurrent.Callable;
import org.dcm4che2.tool.dcmsnd.DcmSnd;
public class DcmSend implements Callable<String> {
public static void main(String[] args) throws Exception {
new DcmSend().call();
}
@Override
public String call() throws Exception {
// String[] args = { "DCMRCV@localhost:11112", "/opt/dicom/" };
String[] args = { "DCMRCV@192.168.20.100:10000", "/opt/dicom/" };
DcmSnd.main(args);
/*
DcmSnd dcmsnd = new DcmSnd("DCMSND");
dcmsnd.setCalledAET("DCMRCV");
dcmsnd.setRemoteHost("127.0.0.1");
dcmsnd.setRemotePort(11112);
dcmsnd.setOfferDefaultTransferSyntaxInSeparatePresentationContext(false);
dcmsnd.setSendFileRef(false);
dcmsnd.setStorageCommitment(false);
dcmsnd.setPackPDV(true);
dcmsnd.setTcpNoDelay(true);
dcmsnd.configureTransferCapability();
dcmsnd.addFile(new File("/opt/dicom/13/06F0A7FC/C16CDBC0/FCCBBAA0"));
dcmsnd.start();
dcmsnd.open();
dcmsnd.send();
dcmsnd.close();
*/
return "OK";
}
}
# sample properties to initialise log4j
log4j.rootCategory=INFO, stdout
# stdout appender
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%-5p %d [%t] %c: %m%n
log4j.logger.org.dcm4che2=DEBUG
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment