|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TransferJobSignals
Method Summary | |
---|---|
void |
canResume(Job job,
long offset)
Emitted if the "put" job found an existing partial file (in which case offset is the size of that file) and emitted by the "get" job if it supports resuming to the given offset - in this case offset is unused) |
void |
data(Job job,
byte[] data)
Data from the slave has arrived. |
void |
dataReq(Job job,
byte[] data)
Request for data. |
void |
mimetype(Job job,
java.lang.String type)
Mimetype determined. |
void |
permanentRedirection(Job job,
KURL fromUrl,
KURL toUrl)
Signals a permanent redirection. |
void |
redirection(Job job,
KURL url)
Signals a redirection. |
Method Detail |
---|
void data(Job job, byte[] data)
job
- the job that emitted this signaldata
- data received from the slave.
End of data (EOD) has been reached if data.size() == 0, however, you
should not be certain of data.size() == 0 ever happening (e.g. in case
of an error), so you should rely on result() instead.void dataReq(Job job, byte[] data)
job
- the job that emitted this signaldata
- buffer to fill with data to send to the
slave. An empty buffer indicates end of data. (EOD)void redirection(Job job, KURL url)
job
- the job that emitted this signalurl
- the new URLvoid permanentRedirection(Job job, KURL fromUrl, KURL toUrl)
job
- the job that emitted this signalfromUrl
- the original URLtoUrl
- the new URLvoid mimetype(Job job, java.lang.String type)
job
- the job that emitted this signaltype
- the mime typevoid canResume(Job job, long offset)
offset
is unused)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |