Coverage Report - org.jscsi.target.scsi.readCapacity.ReadCapacityParameterData
 
Classes in this File Line Coverage Branch Coverage Complexity
ReadCapacityParameterData
0%
0/4
N/A
1
 
 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  0
     public ReadCapacityParameterData (final long returnedLogicalBlockAddress, final int logicalBlockLengthInBytes) {
 21  0
         this.returnedLogicalBlockAddress = returnedLogicalBlockAddress;
 22  0
         this.logicalBlockLengthInBytes = logicalBlockLengthInBytes;
 23  0
     }
 24  
 }