    All Examples  This Package

# Class examples.io.SpeedTrap

    java.lang.Object
       |
       +----examples.io.SpeedTrap

public class SpeedTrap
extends Object

This example illustrates the use of WebLogic File Services. SpeedTrap writes a 10 MByte file to the server, reads it back in again, and then reports the data transfer rates.

To run this example, first locate or start a WebLogic Server offering a network-visible file system by setting the property `weblogic.io.fileSystem` in your `weblogic.properties` file. For example, to configure a WebLogic Server to offer the native file system directory /myserver/fullPath as a network-visible file system named myFiles, set the property `weblogic.io.fileSystem.myFiles=/myserver/fullPath` in the server's `weblogic.properties` file.

After compiling this directory, call SpeedTrap with three arguments:

- URL of the WebLogic Server
- Name of the file system
- Name of the target file

You may also call SpeedTrap with two arguments:

- URL of your WebLogic Server
- Name of the target file

in which case it will use the empty file system name. The empty file system name refers to the local file system on the client. File names are always absolute on a remote file system, but may be relative on a local file system.

Author:
  Copyright (c) 1997-1998 by WebLogic, Inc. All Rights Reserved.
  Copyright (c) 1999-2000 by BEA Systems, Inc. All Rights Reserved.

##

SpeedTrap()

##

main(String[])
  Runs the SpeedTrap file example.

##

SpeedTrap

     public SpeedTrap()

##

main

     public static void main(String argv[]) throws Exception

  Runs the SpeedTrap file example.

    All Examples  This Package