|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pixelmed.dicom.SOPClass
com.pixelmed.network.StorageSOPClassSCP
public class StorageSOPClassSCP
This class implements the SCP role of SOP Classes of the Storage Service Class, the Study Root Query Retrieve Information Model Find, Get and Move SOP Classes, and the Verification SOP Class.
The class has a constructor and a run() method. The
constructor is passed a socket on which has been received a transport
connection open indication. The run() method waits for an association to be initiated
(i.e. acts as an association acceptor), then waits for storage or
verification commands, storing data sets in Part 10 files in the specified folder.
Debugging messages with a varying degree of verbosity can be activated.
This class is not normally used directly, but rather is instantiated by the
StorageSOPClassSCPDispatcher,
which takes care of listening for transport connection open indications, and
creates new threads and starts them to handle each incoming association request.
StorageSOPClassSCPDispatcher| Field Summary | |
|---|---|
protected StoredFilePathStrategy |
storedFilePathStrategy
|
| Constructor Summary | |
|---|---|
StorageSOPClassSCP(Socket socket,
String calledAETitle,
File savedImagesFolder,
StoredFilePathStrategy storedFilePathStrategy,
ReceivedObjectHandler receivedObjectHandler,
int debugLevel)
Construct an instance of an association acceptor and storage and verification SCP to be passed to the constructor of a thread that will be started. |
|
StorageSOPClassSCP(Socket socket,
String calledAETitle,
int ourMaximumLengthReceived,
int socketReceiveBufferSize,
int socketSendBufferSize,
File savedImagesFolder,
StoredFilePathStrategy storedFilePathStrategy,
ReceivedObjectHandler receivedObjectHandler,
int debugLevel)
Construct an instance of an association acceptor and storage and verification SCP to be passed to the constructor of a thread that will be started. |
|
StorageSOPClassSCP(Socket socket,
String calledAETitle,
int ourMaximumLengthReceived,
int socketReceiveBufferSize,
int socketSendBufferSize,
File savedImagesFolder,
StoredFilePathStrategy storedFilePathStrategy,
ReceivedObjectHandler receivedObjectHandler,
QueryResponseGeneratorFactory queryResponseGeneratorFactory,
RetrieveResponseGeneratorFactory retrieveResponseGeneratorFactory,
ApplicationEntityMap applicationEntityMap,
int debugLevel)
Construct an instance of an association acceptor and storage, query, retrieve and verification SCP to be passed to the constructor of a thread that will be started. |
|
| Method Summary | |
|---|---|
void |
run()
Waits for an association to be initiated (acts as an association acceptor), then waits for storage or verification commands, storing data sets in Part 10 files in the specified folder, until the association is released or the transport connection closes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected StoredFilePathStrategy storedFilePathStrategy
| Constructor Detail |
|---|
public StorageSOPClassSCP(Socket socket,
String calledAETitle,
int ourMaximumLengthReceived,
int socketReceiveBufferSize,
int socketSendBufferSize,
File savedImagesFolder,
StoredFilePathStrategy storedFilePathStrategy,
ReceivedObjectHandler receivedObjectHandler,
QueryResponseGeneratorFactory queryResponseGeneratorFactory,
RetrieveResponseGeneratorFactory retrieveResponseGeneratorFactory,
ApplicationEntityMap applicationEntityMap,
int debugLevel)
throws DicomNetworkException,
DicomException,
IOException
Construct an instance of an association acceptor and storage, query, retrieve and verification SCP to be passed to the constructor of a thread that will be started.
socket - the socket on which a transport connection open indication has been receivedcalledAETitle - our AE TitleourMaximumLengthReceived - the maximum PDU length that we will offer to receivesocketReceiveBufferSize - the TCP socket receive buffer size to set (if possible), 0 means leave at the defaultsocketSendBufferSize - the TCP socket send buffer size to set (if possible), 0 means leave at the defaultsavedImagesFolder - the folder in which to store received data sets (may be null, to ignore received data for testing)storedFilePathStrategy - the strategy to use for naming received files and foldersreceivedObjectHandler - the handler to call after each data set has been received and storedqueryResponseGeneratorFactory - a factory to make handlers to generate query responses from a supplied query messageretrieveResponseGeneratorFactory - a factory to make handlers to generate retrieve responses from a supplied retrieve messageapplicationEntityMap - a map of application entity titles to presentation addressesdebugLevel - zero for no debugging messages, higher values more verbose messages
IOException
DicomException
DicomNetworkException
public StorageSOPClassSCP(Socket socket,
String calledAETitle,
int ourMaximumLengthReceived,
int socketReceiveBufferSize,
int socketSendBufferSize,
File savedImagesFolder,
StoredFilePathStrategy storedFilePathStrategy,
ReceivedObjectHandler receivedObjectHandler,
int debugLevel)
throws DicomNetworkException,
DicomException,
IOException
Construct an instance of an association acceptor and storage and verification SCP to be passed to the constructor of a thread that will be started.
socket - the socket on which a transport connection open indication has been receivedcalledAETitle - our AE TitleourMaximumLengthReceived - the maximum PDU length that we will offer to receivesocketReceiveBufferSize - the TCP socket receive buffer size to set (if possible), 0 means leave at the defaultsocketSendBufferSize - the TCP socket send buffer size to set (if possible), 0 means leave at the defaultsavedImagesFolder - the folder in which to store received data sets (may be null, to ignore received data for testing)storedFilePathStrategy - the strategy to use for naming received files and foldersreceivedObjectHandler - the handler to call after each data set has been received and storeddebugLevel - zero for no debugging messages, higher values more verbose messages
IOException
DicomException
DicomNetworkException
public StorageSOPClassSCP(Socket socket,
String calledAETitle,
File savedImagesFolder,
StoredFilePathStrategy storedFilePathStrategy,
ReceivedObjectHandler receivedObjectHandler,
int debugLevel)
throws DicomNetworkException,
DicomException,
IOException
Construct an instance of an association acceptor and storage and verification SCP to be passed to the constructor of a thread that will be started.
socket - the socket on which a transport connection open indication has been receivedcalledAETitle - our AE TitlesavedImagesFolder - the folder in which to store received data sets (may be null, to ignore received data for testing)storedFilePathStrategy - the strategy to use for naming received files and foldersreceivedObjectHandler - the handler to call after each data set has been received and storeddebugLevel - zero for no debugging messages, higher values more verbose messages
IOException
DicomException
DicomNetworkException| Method Detail |
|---|
public void run()
Waits for an association to be initiated (acts as an association acceptor), then waits for storage or verification commands, storing data sets in Part 10 files in the specified folder, until the association is released or the transport connection closes.
run in interface Runnable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||