public class FileRemoteProgressEventConsumer extends EventConsumerAwait<FileRemoteProgressEvData,FileRemoteCmdEventData>
FileRemote
calls.
It is an EventConsumer
and hence immediately usable
for a EventWithDst
with FileRemoteProgressEvData
as payload.
#processEvent(FileRemoteProgressEvData, EventWithDst)
to evaluate the progress information given in FileRemoteProgressEvData
.
It includes the PayloadBack.bDone
to inform all is done and more.Modifier and Type | Field and Description |
---|---|
int |
nrDirAvail
Number of available directories and files, filled on check.
|
int |
nrFilesAvail
Number of available directories and files, filled on check.
|
long |
nrofBytesAllAvail |
static java.lang.String |
version
Version, history and license.
|
bDone, cmdData, evBack, evThread, name, progressData, sError
mEventConsumed, mEventConsumerException, mEventConsumFinished, mEventDonotRelinquish, mMaskReservedHere
Constructor and Description |
---|
FileRemoteProgressEventConsumer(java.lang.String name,
EventThread_ifc progressThread,
EventThread_ifc cmdThread)
Constructs the FileRemoteProgress instance maybe also inherit.
|
Modifier and Type | Method and Description |
---|---|
FileRemoteProgressEventConsumer |
clean()
Cleans
EventConsumerAwait.bDone and also EventConsumerAwait.sError . |
void |
setAvail(FileRemoteProgressEvData ev)
This operation moves the gathered number of to the available numbers.
|
awaitExecution, done, evThread, processEvent, processEvent, setDone
public static final java.lang.String version
EventConsumerAwait
in a common kind instead here.
EventConsumerAwait
super class.
Hence it is a complete usable class for one event handling.
This class is then only a concretion with non generics.
public int nrDirAvail
public int nrFilesAvail
public long nrofBytesAllAvail
public FileRemoteProgressEventConsumer(java.lang.String name, EventThread_ifc progressThread, EventThread_ifc cmdThread)
name
- A nameprogressThread
- The thread where EventThread_ifc.storeEvent(EventObject)
is called to store the event if it is used.cmdThread
- if given the using command is executed in this thread.
If null then the command is executed in the own thread which calls the command.public FileRemoteProgressEventConsumer clean()
EventConsumerAwait
EventConsumerAwait.bDone
and also EventConsumerAwait.sError
.
It should be called on initializing the event,
in any case before EventConsumerAwait.awaitExecution(long, boolean)
was called.clean
in class EventConsumerAwait<FileRemoteProgressEvData,FileRemoteCmdEventData>
public void setAvail(FileRemoteProgressEvData ev)