public class RetrieveTool extends Object implements TestTool
Modifier and Type | Field and Description |
---|---|
private String |
aeTitle |
private Connection |
conn |
private Device |
device |
private int |
expectedMatches |
private String |
host |
private static String[] |
IVR_LE_FIRST |
private static Logger |
LOG |
private int |
numCGetFailed |
private int |
numCGetSuccess |
private int |
numCGetWarning |
private int |
numCStoreFailed |
private int |
numCStores |
private int |
numCStoreSuccess |
private int |
port |
private boolean |
rememberResultAttributes |
private List<Attributes> |
response |
private TestResult |
result |
private Attributes |
retrieveatts |
private File |
retrieveDir |
private GetSCU.InformationModel |
retrieveInformationModel |
private String |
retrieveLevel |
private GetSCU |
retrievescu |
Constructor and Description |
---|
RetrieveTool(String host,
int port,
String aeTitle,
File retrieveDir,
Device device,
String sourceAETitle,
String retrieveLevel,
String informationModel,
boolean relational,
Connection conn) |
Modifier and Type | Method and Description |
---|---|
void |
addAll(Attributes attrs) |
void |
addOfferedStorageSOPClass(String cuid,
String... tsuids) |
void |
addTag(int tag,
String... values) |
void |
clearTags() |
private static void |
configureServiceClass(GetSCU main) |
private static void |
configureStorageSOPClass(GetSCU main,
String cuid,
String tsuids0) |
private DimseRSPHandler |
getResponseHandler() |
TestResult |
getResult() |
java.nio.file.Path |
getRetrieveDir() |
void |
init(TestResult resultIn) |
private void |
onCGetReponse(Association as,
Attributes cmd,
Attributes data) |
protected void |
onCStoreReq(Attributes cmd,
Attributes data) |
private void |
registerSCPservice(File storeDir) |
void |
retrieve(String testDescription) |
void |
setExpectedMatches(int expectedResult) |
void |
setRememberResultAttributes(boolean rememberResultAttributes)
If set to false, does not keep the attributes retrieved.
|
private final int port
private final Connection conn
private final File retrieveDir
private int numCGetFailed
private int numCGetSuccess
private int numCGetWarning
private int numCStores
private int numCStoreSuccess
private int numCStoreFailed
private int expectedMatches
private final Attributes retrieveatts
private final GetSCU retrievescu
private final List<Attributes> response
private TestResult result
private final String retrieveLevel
private final GetSCU.InformationModel retrieveInformationModel
private boolean rememberResultAttributes
private static String[] IVR_LE_FIRST
public RetrieveTool(String host, int port, String aeTitle, File retrieveDir, Device device, String sourceAETitle, String retrieveLevel, String informationModel, boolean relational, Connection conn)
public void retrieve(String testDescription) throws IOException, InterruptedException, IncompatibleConnectionException, GeneralSecurityException, FileNotFoundException, IOException
private DimseRSPHandler getResponseHandler()
private void onCGetReponse(Association as, Attributes cmd, Attributes data)
public void addOfferedStorageSOPClass(String cuid, String... tsuids)
public void addAll(Attributes attrs)
public void clearTags()
public void setExpectedMatches(int expectedResult)
private void registerSCPservice(File storeDir)
protected void onCStoreReq(Attributes cmd, Attributes data)
private static void configureServiceClass(GetSCU main) throws FileNotFoundException, IOException
FileNotFoundException
IOException
private static void configureStorageSOPClass(GetSCU main, String cuid, String tsuids0)
public void init(TestResult resultIn)
public TestResult getResult()
public java.nio.file.Path getRetrieveDir()
public void setRememberResultAttributes(boolean rememberResultAttributes)
rememberResultAttributes
- Copyright © 2017 dcm4che.org. All rights reserved.