T - instance locator typepublic class BasicCStoreSCU<T extends InstanceLocator> extends Observable implements CStoreSCU<T>
| Modifier and Type | Class and Description |
|---|---|
private class |
BasicCStoreSCU.CStoreRSPHandler |
| Modifier and Type | Field and Description |
|---|---|
protected List<T> |
completed |
protected List<T> |
failed |
protected static Logger |
LOG |
protected int |
nr_instances |
protected int |
outstandingRSP |
protected Object |
outstandingRSPLock |
protected int |
priority |
protected int |
status |
protected List<T> |
warning |
| Constructor and Description |
|---|
BasicCStoreSCU() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel() |
protected void |
close() |
protected DataWriter |
createDataWriter(T inst,
String tsuid) |
protected int |
cstore(Association storeas,
T inst,
String tsuid,
DataWriter dataWriter) |
BasicCStoreSCUResp |
cstore(List<T> instances,
Association storeas,
int priority) |
List<T> |
getCompleted() |
List<T> |
getFailed() |
int |
getPriority() |
int |
getRemaining() |
int |
getStatus() |
List<T> |
getWarning() |
private BasicCStoreSCUResp |
makeRSP(int status)
returns an aggregated store rsp
|
protected void |
releaseStoreAssociation(Association storeas) |
protected String |
selectTransferSyntaxFor(Association storeas,
T inst) |
private void |
setFinalStatus() |
protected void |
storeInstance(Association storeas,
T inst) |
private void |
waitForOutstandingCStoreRSP(Association storeas) |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedprotected volatile int status
protected int priority
protected int nr_instances
protected List<T extends InstanceLocator> completed
protected List<T extends InstanceLocator> warning
protected List<T extends InstanceLocator> failed
protected int outstandingRSP
protected Object outstandingRSPLock
public BasicCStoreSCU()
public int getStatus()
getStatus in interface CStoreSCU<T extends InstanceLocator>public boolean cancel()
cancel in interface CStoreSCU<T extends InstanceLocator>public int getPriority()
getPriority in interface CStoreSCU<T extends InstanceLocator>public List<T> getCompleted()
getCompleted in interface CStoreSCU<T extends InstanceLocator>public List<T> getWarning()
getWarning in interface CStoreSCU<T extends InstanceLocator>public List<T> getFailed()
getFailed in interface CStoreSCU<T extends InstanceLocator>public int getRemaining()
getRemaining in interface CStoreSCU<T extends InstanceLocator>public BasicCStoreSCUResp cstore(List<T> instances, Association storeas, int priority)
cstore in interface CStoreSCU<T extends InstanceLocator>protected void storeInstance(Association storeas, T inst) throws IOException, InterruptedException
IOExceptionInterruptedExceptionprivate void setFinalStatus()
private void waitForOutstandingCStoreRSP(Association storeas)
protected void releaseStoreAssociation(Association storeas)
protected int cstore(Association storeas, T inst, String tsuid, DataWriter dataWriter) throws IOException, InterruptedException
IOExceptionInterruptedExceptionprotected String selectTransferSyntaxFor(Association storeas, T inst) throws Exception
Exceptionprotected DataWriter createDataWriter(T inst, String tsuid) throws Exception
Exceptionprivate BasicCStoreSCUResp makeRSP(int status)
protected void close()
Copyright © 2017 dcm4che.org. All rights reserved.