View Javadoc

1   package org.jscsi.target.scsi.readCapacity;
2   
3   
4   import org.jscsi.target.scsi.IResponseData;
5   
6   
7   /**
8    * <code>READ CAPACITY</code> parameter data is sent in response to a successful <code>READ CAPACITY (10)</code> or
9    * <code>READ CAPACITY (16)</code> SCSI command and is mainly used to inform the initiator about the number and length
10   * of the unit's logical blocks.
11   * 
12   * @author Andreas Ergenzinger
13   */
14  public abstract class ReadCapacityParameterData implements IResponseData {
15  
16      protected final long returnedLogicalBlockAddress;
17  
18      protected final int logicalBlockLengthInBytes;
19  
20      public ReadCapacityParameterData (final long returnedLogicalBlockAddress, final int logicalBlockLengthInBytes) {
21          this.returnedLogicalBlockAddress = returnedLogicalBlockAddress;
22          this.logicalBlockLengthInBytes = logicalBlockLengthInBytes;
23      }
24  }