Package org.jscsi.scsi.tasks

Examples of org.jscsi.scsi.tasks.Task


      Command command =
            new Command(new Nexus("initiator", "target", 0, 0), cdb, TaskAttribute.SIMPLE, 0, 0);
      InquiryDataRegistry inqreg = new StaticInquiryDataRegistry();

      _logger.debug("Creating ModeSenseTask from MODE SENSE (6) command");
      Task task = new ModeSenseTask(port, command, registry, inqreg);
      _logger.debug("Running mode sense task");
      task.run();

      if (port.getLastStatus() != Status.GOOD)
      {
         throw new ModeSenseException(port.getLastStatus(), port.getSenseData());
      }
View Full Code Here


                  0);

      try
      {
         _logger.debug("running memory buffer task");
         Task task = this.getMemoryTask(this, cmd);
         task.run();
      }
      catch (IllegalRequestException e)
      {
         Assert.fail("illegal request");
      }
View Full Code Here

            new Command(new Nexus("initiator", "target", 0, 0), cdb, TaskAttribute.ORDERED, cmdRef,
                  0);

      try
      {
         Task task = this.getFileTask(this, cmd);

         _logger.debug("running file buffer task");
         task = this.getFileTask(this, cmd);

         task.run();
      }
      catch (IllegalRequestException e)
      {
         Assert.fail("illegal request");
      }
View Full Code Here

TOP

Related Classes of org.jscsi.scsi.tasks.Task

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.