Package org.jscsi.parser.nop

Examples of org.jscsi.parser.nop.NOPInParser


            case SCSI_DATA_IN :
                return new DataInParser(protocolDataUnit);
            case NOP_OUT :
                return new NOPOutParser(protocolDataUnit);
            case NOP_IN :
                return new NOPInParser(protocolDataUnit);
            case R2T :
                return new Ready2TransferParser(protocolDataUnit);
            case REJECT :
                return new RejectParser(protocolDataUnit);
            case SNACK_REQUEST :
View Full Code Here


    }

    public static final ProtocolDataUnit createNopInPDU (final long logicalUnitNumber, final int initiatorTaskTag, final int targetTransferTag, final ByteBuffer dataSegment, final int statusSequenceNumber) {
        final ProtocolDataUnit pdu = factory.create(false, true, OperationCode.NOP_IN, "None", "None");
        final BasicHeaderSegment bhs = pdu.getBasicHeaderSegment();
        final NOPInParser parser = (NOPInParser) bhs.getParser();
        parser.setLogicalUnitNumber(logicalUnitNumber);
        bhs.setInitiatorTaskTag(initiatorTaskTag);
        parser.setTargetTransferTag(targetTransferTag);
        parser.setStatusSequenceNumber(statusSequenceNumber);
        pdu.setDataSegment(dataSegment);
        return pdu;
    }
View Full Code Here

TOP

Related Classes of org.jscsi.parser.nop.NOPInParser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.