Package org.jscsi.scsi.protocol.sense

Examples of org.jscsi.scsi.protocol.sense.SenseDataFactory


      if (status.equals(Status.CHECK_CONDITION))
      {
         SenseData sense = null;
         try
         {
            sense = new SenseDataFactory().decode(senseData);
         }
         catch (IOException e)
         {
            _logger.warn("I/O exception while decoding sense data");
         }
View Full Code Here


      {
         this.expectedNexus = expectedNexus;
         this.expectedStatus = expectedStatus;
         this.expectedSenseData = expectedSenseData;
         this.callback = callback;
         this.senseDataFactory = new SenseDataFactory();
      }
View Full Code Here

         assertEquals("Task set did not report CHECK CONDITION to transport",
               Status.CHECK_CONDITION, port.getLastStatus());

         try
         {
            SenseData sense = (new SenseDataFactory()).decode(port.getSenseData());

            assertEquals("Task set did not return correct KCQ", KCQ.OVERLAPPED_COMMANDS_ATTEMPTED,
                  sense.getKCQ());

         }
View Full Code Here

      if (exception.getSenseData() == null)
         fail("Task returned CHECK CONDITION but did not return autosense data");

      try
      {
         SenseDataFactory fact = new SenseDataFactory();
         SenseData sense = fact.decode(exception.getSenseData());
         if (sense.getKCQ() != KCQ.INVALID_FIELD_IN_CDB)
            fail("Expected KCQ INVALID FIELD IN CDB; got " + sense.getKCQ().name());
      }
      catch (IOException e)
      {
View Full Code Here

TOP

Related Classes of org.jscsi.scsi.protocol.sense.SenseDataFactory

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.