Package org.jscsi.scsi.protocol.cdb

Examples of org.jscsi.scsi.protocol.cdb.RequestSense


   @Override
   protected void execute() throws InterruptedException, SenseException
   {
      _logger.debug("executing logical unit 'request sense' task");

      RequestSense cdb = (RequestSense) getCommand().getCommandDescriptorBlock();

      ByteArrayOutputStream bs = new ByteArrayOutputStream();
      DataOutputStream out = new DataOutputStream(bs);

      try
      {
         if (cdb.isDESC())
         {
            out.write((new DescriptorSenseData()).encode());
         }
         else
         {
View Full Code Here


   @Test
   public void testRequestSenseinMemory()
   {
      _logger.debug("********** REQUEST SENSE TEST - MEMORY **********");
      CDB cdb = new RequestSense(false, ALLOCATION_LENGTH);
      this.submitMemoryTask(cdb, cmdRef);
      verifyInputBuffer();
      cmdRef++;
   }
View Full Code Here

   @Test
   public void testRequestSenseinFile()
   {
      _logger.debug("********** REQUEST SENSE TEST - FILE **********");
      CDB cdb = new RequestSense(false, ALLOCATION_LENGTH);
      this.submitFileTask(cdb, cmdRef);
      verifyInputBuffer();
      cmdRef++;
   }
View Full Code Here

TOP

Related Classes of org.jscsi.scsi.protocol.cdb.RequestSense

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.