public final class SupportedVpdPages extends Object implements IResponseData
This class uses the singleton pattern since the list of supported Vital Product Data page requests will never change.
Modifier and Type | Field and Description |
---|---|
static byte[] |
SUPPORTED_VPD_PAGES |
Modifier and Type | Method and Description |
---|---|
static SupportedVpdPages |
getInstance()
Returns the singleton.
|
void |
serialize(ByteBuffer byteBuffer,
int index)
Inserts a serialized representation of the object into the specified
ByteBuffer . |
int |
size()
Returns the size in bytes of the object's serialized representation.
|
static boolean |
vpdPageCodeSupported(PageCode.VitalProductDataPageName vitalProductDataPageName)
Returns
true for those and only for those VPD Page Codes which are supported by the jSCSI Target. |
public static SupportedVpdPages getInstance()
public void serialize(ByteBuffer byteBuffer, int index)
ISerializable
ByteBuffer
. The serialized object
will occupy the byte positions from index to index + ISerializable.size()
- 1.serialize
in interface ISerializable
byteBuffer
- where to insert the serialized object representationindex
- the position of the first byte of the serialized object in the ByteBuffer
public int size()
ISerializable
size
in interface ISerializable
public static boolean vpdPageCodeSupported(PageCode.VitalProductDataPageName vitalProductDataPageName)
true
for those and only for those VPD Page Codes which are supported by the jSCSI Target.vitalProductDataPageName
- VPD Page Name whose support is inquiredtrue
for those and only for those VPD Page Codes which are supported by the jSCSI TargetCopyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.