Package org.jscsi.scsi.protocol.sense.additional

Examples of org.jscsi.scsi.protocol.sense.additional.FieldPointer


         case MEDIUM_ERROR :
            field = new ActualRetryCount();
         case HARDWARE_ERROR :
            field = new ActualRetryCount();
         case ILLEGAL_REQUEST :
            field = new FieldPointer();
         case COPY_ABORTED :
            field = new NoSenseKeySpecific(); // TODO: decode segment pointer, not supported now
         default :
            field = new NoSenseKeySpecific();
      }
View Full Code Here


   }

   @Test
   public void parseFieldPointer()
   {
      runTest(new FieldPointer(), FIELD_POINTER);
   }
View Full Code Here

   {
      super(KCQ.INVALID_FIELD_IN_PARAMETER_LIST, current);
      assert bitPointer <= 0x07 : "bit pointer value out of range";
      assert fieldPointer <= 65536 : "field pointer value out of range";

      this.fieldPointer = new FieldPointer(true, bitPointer, fieldPointer);
   }
View Full Code Here

   public InvalidFieldInParameterListException(boolean current, int fieldPointer)
   {
      super(KCQ.INVALID_FIELD_IN_PARAMETER_LIST, current);
      assert fieldPointer <= 65536 : "field pointer value out of range";

      this.fieldPointer = new FieldPointer(true, (byte) -1, fieldPointer);
   }
View Full Code Here

   }

   @Override
   protected FieldPointer getFieldPointer()
   {
      return new FieldPointer(true, (byte) -1, 0);
   }
View Full Code Here

   {
      super(KCQ.LOGICAL_BLOCK_ADDRESS_OUT_OF_RANGE, current);
      assert bitPointer <= 0x07 : "bit pointer value out of range";
      assert fieldPointer <= 65536 : "field pointer value out of range";

      this.fieldPointer = new FieldPointer(command, bitPointer, fieldPointer);
   }
View Full Code Here

   public LogicalBlockAddressOutOfRangeException(boolean current, boolean command, int fieldPointer)
   {
      super(KCQ.LOGICAL_BLOCK_ADDRESS_OUT_OF_RANGE, current);
      assert fieldPointer <= 65536 : "field pointer value out of range";

      this.fieldPointer = new FieldPointer(command, (byte) -1, fieldPointer);

   }
View Full Code Here

   {
      super(kcq, current);
      assert bitPointer <= 0x07 : "bit pointer value out of range";
      assert fieldPointer <= 65536 : "field pointer value out of range";

      this.fieldPointer = new FieldPointer(true, bitPointer, fieldPointer);
   }
View Full Code Here

   {
      super(KCQ.INVALID_FIELD_IN_CDB, current);
      assert bitPointer <= 0x07 : "bit pointer value out of range";
      assert fieldPointer <= 65536 : "field pointer value out of range";

      this.fieldPointer = new FieldPointer(true, bitPointer, fieldPointer);
   }
View Full Code Here

   public InvalidFieldInCDBException(boolean current, int fieldPointer)
   {
      super(KCQ.INVALID_FIELD_IN_CDB, current);
      assert fieldPointer <= 65536 : "field pointer value out of range";

      this.fieldPointer = new FieldPointer(true, (byte) -1, fieldPointer);
   }
View Full Code Here

TOP

Related Classes of org.jscsi.scsi.protocol.sense.additional.FieldPointer

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.