|
WebLogic Server 7.0 Code Examples, BEA Systems, Inc. | |||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Object | +--examples.io.SpeedTrap
This example writes a 10 MB file to the server, reads it back in again, and then reports the data transfer rates.
The following sections cover what to do:
prompt> javac -d %CLIENT_CLASSES% SpeedTrap.java
Name: mySys
Path: c:\\temp
prompt> java examples.io.SpeedTrap t3://hostname:port mySys myfile>where:
Example:
prompt> java examples.io.SpeedTrap t3://localhost:7001 mySys myfile
- Getting the file //mySys/myfile
- Writing to the file ...
- Write speed = 20.22 Mbits/sec
- Reading from the file ...
- Read speed = 51.18 Mbits/sec
prompt> java examples.io.SpeedTrap t3://hostname:port myfile>
When a registered file system name is not specified, the local file system is used. File names are always absolute on a remote file system, but may be relative on a local file system.
| Constructor Summary | |
SpeedTrap()
|
|
| Method Summary | |
static void |
main(java.lang.String[] argv)
Runs the SpeedTrap file example. |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public SpeedTrap()
| Method Detail |
public static void main(java.lang.String[] argv)
throws java.lang.Exception
|
Documentation is available at http://e-docs.bea.com/wls/docs70 |
|||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||