Implements a Factory which enables the Initiator to switch between multithreaded and singlethreaded modes.
157158159160161162163164
randomGenerator = new Random(System.currentTimeMillis()); randomGenerator.nextBytes(writeBuffer.array()); factory = new LinkFactory(initiator); session = factory.getSession(configuration, TARGET_DRIVE_NAME, configuration.getTargetAddress(TARGET_DRIVE_NAME)); }