public class NActionSCP extends SCP
objClientSession| Modifier and Type | Method and Description |
|---|---|
void |
addNEventReportSCPInformation(java.lang.String strAETile,
java.lang.String strIP,
int port)
Add IP and Port information for N-Event Report SCP.
|
void |
close()
Closes all the currently executing sessions gracefully.
|
static NActionSCP |
createInstance()
Instantiates a new NAction SCP.
|
static NActionSCP |
createInstance(ClientSession objClientSession)
This method returns new object of NAction SCP.
|
java.lang.String |
getAELStoragePath()
Retrieves the Storage Path of SR document for Application Event Logging.
|
IPairedCollection<EnumDataSink,IDataSink> |
getDataSinkList()
Retrieves the DataSink List
|
IPairedCollection<EnumDataSource,IDataSource> |
getDataSourceList()
Retrieves the DataSink List
|
java.lang.String |
getStorageCommitmentPath()
Retrieves the Storage Commitment Path.
|
void |
onAssociateReceive(ClientSession objClientSession)
This method notifies when Association Request, Associate Release Request or Abort is received from one of the
SCUs.
|
void |
onClose(ClientSession objClientSession)
Closes client Session.
|
void |
onConnect(ClientSession objClientSession)
This method notifies when a new client connection is requested.
|
void |
onServiceRequest(ClientSession objClientSession)
This method notifies when a service related request is received.
|
DIMSEResponse |
processRequest(DicomMessage objDicomMessage)
This will give the response of NAction Request.
|
void |
setAELStoragePath(java.lang.String strAELStoragePath)
Sets the Storage Path in Application Event Logging for SR document.
|
void |
setDataSinkList(IPairedCollection<EnumDataSink,IDataSink> objSinkCollection)
Sets the DataSink List.
|
void |
setDataSourceList(IPairedCollection<EnumDataSource,IDataSource> objSinkCollection)
Sets the DataSink List.
|
void |
setStorageCommitmentPath(java.lang.String strStorageCommitmentPath)
Sets the Storage Commitment Path.
|
void |
start(java.lang.String strAETitle,
int port)
This method will Start the Server on the local host at the port specified.
|
void |
start(java.lang.String strAETitle,
java.lang.String strIP,
int port)
Starts the SCP.
|
void |
stopListening()
Stops accepting new connection's from SCU's and continue to process
already connected clients.
|
onExceptionpublic static NActionSCP createInstance(ClientSession objClientSession)
objClientSession - object of Client session.public static NActionSCP createInstance()
public void setAELStoragePath(java.lang.String strAELStoragePath)
strAELStoragePath - String value of AEL Storage Pathpublic java.lang.String getAELStoragePath()
public void start(java.lang.String strAETitle,
java.lang.String strIP,
int port)
throws java.io.IOException
strIP - IP at which Server has to be started.strAETitle - value of AE Title for service provider.port - port at which Server has to be started.java.io.IOException - throws IOException if IO operation fails.public void start(java.lang.String strAETitle,
int port)
throws java.io.IOException
strAETitle - value of AE Title for service provider.port - port at which Server has to be started at local host.java.io.IOException - throws IOException if IO operation fails.public DIMSEResponse processRequest(DicomMessage objDicomMessage)
processRequest in class SCPobjDicomMessage - object of DIMSE request.java.io.IOException - if IO operation fails.public void onAssociateReceive(ClientSession objClientSession)
objClientSession - instance of Client Session.public void onClose(ClientSession objClientSession)
objClientSession - Object of Client Session.public void onConnect(ClientSession objClientSession)
objClientSession - object of client session.public void onServiceRequest(ClientSession objClientSession) throws java.io.IOException
objClientSession - Object of Client Session.java.io.IOException - Signals that an I/O exception has occurred.public IPairedCollection<EnumDataSource,IDataSource> getDataSourceList()
public void setDataSourceList(IPairedCollection<EnumDataSource,IDataSource> objSinkCollection)
objSinkCollection - collection of Data Sink.public IPairedCollection<EnumDataSink,IDataSink> getDataSinkList()
public void setDataSinkList(IPairedCollection<EnumDataSink,IDataSink> objSinkCollection)
objSinkCollection - collection of Data Sink.public void setStorageCommitmentPath(java.lang.String strStorageCommitmentPath)
strStorageCommitmentPath - String value of Storage Commitment Path.public java.lang.String getStorageCommitmentPath()
public void addNEventReportSCPInformation(java.lang.String strAETile,
java.lang.String strIP,
int port)
strAETile - String value of AETitle.strIP - String value of IP.port - int value of port.public void stopListening()
public void close()