public class PageCode extends Object
INQUIRY
SCSI command, the initiator can request the target to return vital product data (VPD)
pages. The specific VPD page is determined by the value of the InquiryCDB.pageCode
field.
To find out which page was requested, first create a new PageCode
object using the value provided in the
command descriptor block's PAGE CODE field, and then call its getVitalProductDataPageName()
method. This
complicated approach is necessary, since some VPD pages are associated with more than just one page code.
Modifier and Type | Class and Description |
---|---|
static class |
PageCode.VitalProductDataPageName
An enumeration of unique identifiers for Vital Product Data Pages.
|
Constructor and Description |
---|
PageCode(byte value)
Creates a new
PageCode object. |
Modifier and Type | Method and Description |
---|---|
byte |
getValue()
Returns the value of the PAGE CODE field.
|
PageCode.VitalProductDataPageName |
getVitalProductDataPageName()
Returns the VPD page name associated with the PAGE CODE
value . |
String |
toString() |
public PageCode(byte value)
PageCode
object.value
- the value of the PAGE CODE fieldpublic final byte getValue()
public final PageCode.VitalProductDataPageName getVitalProductDataPageName()
value
.value
Copyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.