wt.load
Class LoadServiceFwd

java.lang.Object
  extended bywt.load.LoadServiceFwd
All Implemented Interfaces:
LoadService, RemoteAccess, Serializable

public class LoadServiceFwd
extends Object
implements RemoteAccess, LoadService, Serializable

Provides server-side functionality as a service that's remotely available for use by a client. The intent is that this interface defines all the necessary server-side functionality for loading test data into the system.

Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private static String FC_RESOURCE
           
(package private) static boolean SERVER
           
 
Fields inherited from interface wt.method.RemoteAccess
versionID
 
Constructor Summary
LoadServiceFwd()
           
 
Method Summary
private static Manager getManager()
           
 void importData(String dataFilename, String outFilename, String method, String user, Hashtable cmdLine, IXBStreamer ruleFile)
          Provides the functionality to load test data using xml files to the client side.
 void importData(String dataFilename, String mapFilename, String outFilename, String token, String method, String user, Hashtable cmdLine)
          Provides the load test data functionality to the client side.
 void load(String dataFilename, String outFilename, String method, String user, Hashtable cmdLine, IXBStreamer ruleFile)
          Provides the functionality to load test data using xml files to the client side.
 void load(String dataFilename, String mapFilename, String outFilename, String token, String method, String user, Hashtable cmdLine)
          Deprecated.  
 void load(String dataFilename, String mapFilename, String outFilename, String token, String method, String user, Hashtable cmdLine, boolean oneTransaction)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVER

static final boolean SERVER

FC_RESOURCE

private static final String FC_RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME
Constructor Detail

LoadServiceFwd

public LoadServiceFwd()
Method Detail

getManager

private static Manager getManager()
                           throws WTException
Returns:
Manager
Throws:
WTException

load

public void load(String dataFilename,
                 String mapFilename,
                 String outFilename,
                 String token,
                 String method,
                 String user,
                 Hashtable cmdLine)
          throws WTException
Deprecated.  

Provides the load test data functionality to the client side.

Supported API: false

Specified by:
load in interface LoadService
Parameters:
dataFilename - Full pathname of file with data to be loaded.
mapFilename - Full pathname of file with mapping of attribute names to sequence of data in the data file.
outFilename - Not currently implemented. To be a trace or recovery file.
token - The token used to delimit fields of data in the data file.
method - A string used with the object name (the first field) from the data file to key into the mapdata file. The line in the map data file will then contain the method name to pass this information to and the ordered list of fieldnames to match with the line in the data file.
user - The user to execute the method, if no user is given in the line from the data file.
cmdLine - Command line parameters that can be used inside to substitute in the text file input.
Throws:
WTException

importData

public void importData(String dataFilename,
                       String mapFilename,
                       String outFilename,
                       String token,
                       String method,
                       String user,
                       Hashtable cmdLine)
                throws WTException
Provides the load test data functionality to the client side. This method is different from the 'load' method, in that it throws an exception for any error messaging.

Supported API: false

Specified by:
importData in interface LoadService
Parameters:
dataFilename - Full pathname of file with data to be loaded.
mapFilename - Full pathname of file with mapping of attribute names to sequence of data in the data file.
outFilename - Not currently implemented. To be a trace or recovery file.
token - The token used to delimit fields of data in the data file.
method - A string used with the object name (the first field) from the data file to key into the mapdata file. The line in the map data file will then contain the method name to pass this information to and the ordered list of fieldnames to match with the line in the data file.
user - The user to execute the method, if no user is given in the line from the data file.
cmdLine - Command line parameters that can be used inside to substitute in the text file input.
Throws:
WTException

load

public void load(String dataFilename,
                 String mapFilename,
                 String outFilename,
                 String token,
                 String method,
                 String user,
                 Hashtable cmdLine,
                 boolean oneTransaction)
          throws WTException
Deprecated.  

Provides the load test data functionality to the client side.

Supported API: false

Specified by:
load in interface LoadService
Parameters:
dataFilename - Full pathname of file with data to be loaded.
mapFilename - Full pathname of file with mapping of attribute names to sequence of data in the data file.
outFilename - Not currently implemented. To be a trace or recovery file.
token - The token used to delimit fields of data in the data file.
method - A string used with the object name (the first field) from the data file to key into the mapdata file. The line in the map data file will then contain the method name to pass this information to and the ordered list of fieldnames to match with the line in the data file.
user - The user to execute the method, if no user is given in the line from the data file.
cmdLine - Command line parameters that can be used inside to substitute in the text file input.
oneTransaction - boolean value letting the load method know that the transaction should be committed after it was successful or rollbacked if was not successful
Throws:
WTException

load

public void load(String dataFilename,
                 String outFilename,
                 String method,
                 String user,
                 Hashtable cmdLine,
                 IXBStreamer ruleFile)
          throws WTException
Provides the functionality to load test data using xml files to the client side.

Supported API: false

Specified by:
load in interface LoadService
Parameters:
dataFilename - Full pathname of file with data to be loaded.
outFilename - Not currently implemented. To be a trace or recovery file.
method - A string used with the object name (the first field) from the data file to key into the mapdata file. The line in the map data file will then contain the method name to pass this information to and the ordered list of fieldnames to match with the line in the data file.
user - The user to execute the method, if no user is given in the line from the data file.
cmdLine - Command line parameters that can be used inside to substitute in the text file input.
ruleFile - rule file
Throws:
WTException

importData

public void importData(String dataFilename,
                       String outFilename,
                       String method,
                       String user,
                       Hashtable cmdLine,
                       IXBStreamer ruleFile)
                throws WTException
Provides the functionality to load test data using xml files to the client side. This method is different from the 'load' method, in that it does not catch exception.

Supported API: false

Specified by:
importData in interface LoadService
Parameters:
dataFilename -
outFilename -
method -
user -
cmdLine -
ruleFile -
Throws:
WTException