com.goldenhammer.dicom.dcm4che
Class CEcho

java.lang.Object
  extended bycom.goldenhammer.dicom.dcm4che.DCM4CHECommand
      extended bycom.goldenhammer.dicom.dcm4che.CEcho
All Implemented Interfaces:
CEchoCommand, Command

public class CEcho
extends DCM4CHECommand
implements CEchoCommand

This class uses dcm4che to send a dicom echo


Field Summary
 
Fields inherited from class com.goldenhammer.dicom.dcm4che.DCM4CHECommand
aFactory, association, oFactory, properties
 
Constructor Summary
CEcho(java.util.Properties properties)
          Constructor
 
Method Summary
 void close()
          This method completes all necessary steps to close this command down
 void execute()
          Executes this command.
 
Methods inherited from class com.goldenhammer.dicom.dcm4che.DCM4CHECommand
close, openActiveAssociaton
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CEcho

public CEcho(java.util.Properties properties)
      throws java.io.IOException,
             DCM4CHEException
Constructor

Parameters:
properties - the properties for this command to use
Throws:
java.io.IOException - thrown if there is problem connecting
DCM4CHEException - thrown if there is a problem with dcm4che connections
Method Detail

execute

public void execute()
             throws java.lang.Exception
Description copied from interface: Command
Executes this command.

Specified by:
execute in interface Command
Throws:
java.lang.Exception - if a problem occurs during execution

close

public void close()
           throws java.lang.InterruptedException,
                  java.io.IOException
Description copied from interface: Command
This method completes all necessary steps to close this command down

Specified by:
close in interface Command
Throws:
java.io.IOException - thrown if this command cannot be closed
java.lang.InterruptedException - thrown if this command cannot be closed