|
JXTA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.jxta.impl.content.defprovider.ActiveTransfer
public class ActiveTransfer
A node being tracked by the ActiveTransferTracker class. This class acts as a session object of sorts, maintaining client/request specific information for use in the near future.
| Constructor Summary | |
|---|---|
ActiveTransfer(PeerGroup peerGroup,
DefaultContentShare toShare,
PipeAdvertisement destination)
Constructs a new transfer client node. |
|
| Method Summary | |
|---|---|
void |
close()
Close out this session. |
DefaultContentShare |
getContentShare()
Gets the ContentShare object that this transfer session is serving. |
int |
getData(long offset,
int length,
OutputStream out)
Attempt to get the data specified for the destination given. |
OutputPipe |
getOutputPipe()
Gets the output pipe for sending responses back to this client. |
boolean |
isIdle()
Determines whether or not this session has been idle for too long. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ActiveTransfer(PeerGroup peerGroup,
DefaultContentShare toShare,
PipeAdvertisement destination)
throws IOException
IOException| Method Detail |
|---|
public int getData(long offset,
int length,
OutputStream out)
throws IOException
offset - position in the file of the beginning of the datalength - number of bytes desiredout - stream to write the data to
IOException - when a problem arises working with IOpublic boolean isIdle()
public void close()
throws IOException
IOException - when IO problem arisespublic OutputPipe getOutputPipe()
public DefaultContentShare getContentShare()
|
JXSE | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||