-
- All Implemented Interfaces:
public final class CommandStatusWrapperThis class represents the command status wrapper (CSW) in the SCSI transparent command set standard, which is transmitted from the device to the host after the data phase (if any).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classCommandStatusWrapper.Companion
-
Field Summary
Fields Modifier and Type Field Description private IntegerdCswTagprivate IntegerdCswDataResidueprivate BytebCswStatus
-
Constructor Summary
Constructors Constructor Description CommandStatusWrapper()
-
Method Summary
Modifier and Type Method Description final IntegergetDCswTag()Returns the tag which can be used to determine the corresponding CBW. final UnitsetDCswTag(Integer dCswTag)final IntegergetDCswDataResidue()Returns the amount of bytes which has not been processed yet in the data phase. final UnitsetDCswDataResidue(Integer dCswDataResidue)final BytegetBCswStatus()Returns the status of execution of the transmitted SCSI command. final UnitsetBCswStatus(Byte bCswStatus)final Unitread(ByteBuffer buffer)Reads command block wrapper from the specified buffer and stores it into this object. -
-
Method Detail
-
getDCswTag
final Integer getDCswTag()
Returns the tag which can be used to determine the corresponding CBW.
-
setDCswTag
final Unit setDCswTag(Integer dCswTag)
-
getDCswDataResidue
final Integer getDCswDataResidue()
Returns the amount of bytes which has not been processed yet in the data phase.
-
setDCswDataResidue
final Unit setDCswDataResidue(Integer dCswDataResidue)
-
getBCswStatus
final Byte getBCswStatus()
Returns the status of execution of the transmitted SCSI command.
-
setBCswStatus
final Unit setBCswStatus(Byte bCswStatus)
-
read
final Unit read(ByteBuffer buffer)
Reads command block wrapper from the specified buffer and stores it into this object.
- Parameters:
buffer- The data where the command block wrapper is located.
-
-
-
-