|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object examples.transfer.DataTransferAgent
The agent's purpose is migrate data from one host to another. This
is done by means of a special service.
The agent accesses a IOStreamService at a well known name and waits
for data transmission. The received stream (propably from a file)
is stored in the agent's corpus. Then the agent migrates to a host
given at command line and finally pipes the data back to
IOStreamService
at the destination host.
Field Summary | |
int |
BUFSIZE
Size of the read/write buffer. |
String |
FILENAME
Filename which specifies the file in the agent's corpus where the file to be transported is stored. |
String |
SERVICENAME
The path name where the IOService is published in the server environment. |
Constructor Summary | |
DataTransferAgent()
Constructor. |
Method Summary | |
void |
run()
Performs the agent's job. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public final String FILENAME
public final String SERVICENAME
public final int BUFSIZE
Constructor Detail |
public DataTransferAgent()
Method Detail |
public void run()
run
in interface Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |