public class ParallelStreamsList extends AbstractServerObject<ServerContext>
Note that each file transfer is a stateless connection just for transferring one particular file.
The entries of this list are FileStreamJob objects. If the stream is successfully transferred
then the entry is removed and the waiting FileStreamDownloadAgent is released.
| Constructor and Description |
|---|
ParallelStreamsList(ServerContext serverCtx) |
| Modifier and Type | Method and Description |
|---|---|
FileStreamEntry |
addJob(FileStreamJob job) |
JobId[] |
getRunningJobIds() |
void |
removeJob(FileStreamEntry entry) |
FileStreamEntry |
setStreamRunning(AsyncTask task,
JobId jobId) |
checkPermission, getServerConfig, getServerContext, getStatisticManager, toStringgetApplicationContext, getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannelconfigureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toDumpString, toStringpublic ParallelStreamsList(ServerContext serverCtx)
public FileStreamEntry addJob(FileStreamJob job) throws TooManyTransfersException
TooManyTransfersExceptionpublic void removeJob(FileStreamEntry entry)
public FileStreamEntry setStreamRunning(AsyncTask task, JobId jobId) throws NoSuchStreamJobException
NoSuchStreamJobExceptionpublic JobId[] getRunningJobIds()
Copyright © 2014 EsprIT-Systems. All Rights Reserved.