renv = 'bin/sessionj' hostname = 'localhost' client = common.getLocalhostClient() workers = common.getLocalhostWorkers() (numClients, messageSizes, sessionLengths) = common.getLocalhostParameters() elif env == 'camelot': renv = 'bin/csessionj' hostname = socket.gethostname() client = common.getCamelotClient() if debug: workers = common.getCamelotDebugWorkers() (numClients, messageSizes, sessionLengths) = common.getDebugParameters() else: workers = common.getCamelotWorkers() (numClients, messageSizes, sessionLengths) = common.getParameters() else: common.printAndFlush('Unknown environment: ' + env) sys.exit(1) delay = '5' # Milliseconds in between LoadClient requests. # Main. common.printAndFlush('Configuration: server=' + serverName + ', worker=' + hostname) common.printAndFlush('Global: versions=' + str(versions) + ', numClients=' + str(numClients) + ', messageSizes=' + str(messageSizes) + ', sessionLengths=' + str(sessionLengths))
renv = 'bin/sessionj' hostname = 'localhost' client = common.getLocalhostClient() workers = common.getLocalhostWorkers() (numClients, messageSizes) = common.getLocalhostParameters() elif env == 'camelot': renv = 'bin/csessionj' hostname = socket.gethostname() client = common.getCamelotClient() if debug: workers = common.getCamelotDebugWorkers() (numClients, messageSizes) = common.getDebugParameters() else: workers = common.getCamelotWorkers() (numClients, messageSizes) = common.getParameters() else: common.printAndFlush('Unknown environment: ' + env) sys.exit(1) delay = '50' # Milliseconds in between LoadClient requests. # Main. common.printAndFlush('Configuration: server=' + serverName + ', worker=' + hostname) common.printAndFlush('Global: versions=' + str(versions) + ', numClients=' + str(numClients) + ', messageSizes=' + str(messageSizes))