Package org.jscsi.scsi.tasks.management

Examples of org.jscsi.scsi.tasks.management.DefaultTaskManager


   public static void setUpBeforeClass() throws Exception
   {
      _logger.debug("initializing test");

      taskSet = new DefaultTaskSet(TASK_SET_QUEUE_DEPTH);
      taskManager = new DefaultTaskManager(TASK_MGR_NUM_THREADS, taskSet);
      modeRegistry = new StaticModePageRegistry();
      inquiryRegistry = new StaticInquiryDataRegistry();

      store = ByteBuffer.allocate(STORE_BLOCK_SIZE * STORE_CAPACITY);
      taskFactory = new BufferedTaskFactory(store, STORE_BLOCK_SIZE, modeRegistry, inquiryRegistry);
View Full Code Here


   public BufferedLogicalUnit(ByteBuffer store, int blockSize, int taskThreads, int queueDepth)
   {
      super();
      TaskSet taskSet = new DefaultTaskSet(queueDepth);
      this.setTaskSet(taskSet);
      this.setTaskManager(new DefaultTaskManager(taskThreads, taskSet));

      this.setTaskFactory(new BufferedTaskFactory(store, blockSize, new StaticModePageRegistry(),
            new StaticInquiryDataRegistry()));
   }
View Full Code Here

TOP

Related Classes of org.jscsi.scsi.tasks.management.DefaultTaskManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.