Examples of BooleanEntry


Examples of org.jscsi.target.settings.entry.BooleanEntry

        TextKeyword.NONE));// defaultValue

        /*
         * Turns the target-to-initiator markers on or off.
         */
        entries.add(new BooleanEntry(new KeySet(TextKeyword.IF_MARKER),// keySet
        Use.LOPNS,// use
        NegotiationStatus.DEFAULT,// negotiationStatus
        false,// negotiationValue
        BooleanResultFunction.AND,// resultFunction
        false));// defaultValue

        /*
         * Interval value (in 4-byte words) for target-to-initiator markers. The interval is measured from the end of
         * one marker to the beginning of the next one. The offer can have only a range; the response can have only a
         * single value (picked from the offered range) or Reject. Will always be Irrelevant.
         */
        entries.add(new NumericalRangeEntry(new KeySet(TextKeyword.IF_MARK_INT),// keySet
        Use.LOPNS,// use
        NegotiationStatus.IRRELEVANT,// negotiationStatus
        2048,// negotiationValue
        NumericalValueRange.create(1, 65535),// protocolValueRange
        2048));// defaultValue

        /*
         * The maximum amount of data that either the initiator or the target can receive in any iSCSI PDU. Zero (don't
         * care) can be used. I&T can specify (declare) the Max they can receive. This is a connection- and direction-
         * specific parameter. The actual value used by the target will be min(This value, MaxBurstLength) for data-in
         * and solicited data-out data. Min(This value, FirstBurstLength) for unsolicited data.
         */
        entries.add(new NumericalEntry(new KeySet(TextKeyword.MAX_RECV_DATA_SEGMENT_LENGTH),// keySet
        NegotiationType.DECLARED,// negotiationType
        Use.LOPNS_AND_FFP,// use
        NegotiationStatus.DEFAULT,// negotiationStatus
        8192,// negotiationValue (default value, will be used if I sends
             // 0)
        NumericalValueRange.create(512, 16777215),// protocolValueRange
        // 512 to 2^24 - 1
        NumericalResultFunction.MIN,// resultFunction
        8192,// defaultValue, 8K
        true));// zeroMeansDontCare

        /*
         * Turns the initiator-to-target markers on or off.
         */
        entries.add(new BooleanEntry(new KeySet(TextKeyword.OF_MARKER),// keySet
        Use.LOPNS,// use
        NegotiationStatus.DEFAULT,// negotiationStatus
        false,// negotiationValue
        BooleanResultFunction.AND,// resultFunction
        false));// defaultValue
View Full Code Here

Examples of org.jscsi.target.settings.entry.BooleanEntry

        /*
         * No indicates that the data PDUs within a sequence can be in any order. Yes indicates that the data PDUs
         * within a sequence have to be at continuously increasing addresses and that overlays are forbidden.
         */
        entries.add(new BooleanEntry(new KeySet(TextKeyword.DATA_PDU_IN_ORDER),// keySet
        Use.LEADING_LOPNS,// use
        NegotiationStatus.DEFAULT,// negotiationStatus
        true,// negotiationValue
        BooleanResultFunction.OR,// resultFunction
        true));// defaultValue

        /*
         * If set to No, the data PDU sequence may be transferred in any order. If set to Yes, the sequence must be
         * transferred using continuously increasing offsets except for error recovery.
         */
        entries.add(new BooleanEntry(new KeySet(TextKeyword.DATA_SEQUENCE_IN_ORDER),// keySet
        Use.LEADING_LOPNS,// use
        NegotiationStatus.DEFAULT,// negotiationStatus
        true,// negotiationValue
        BooleanResultFunction.OR,// resultFunction
        true));// defaultValue

        /*
         * Max seconds that connection and task allegiance reinstatement is still possible following a connection
         * termination or reset. A value of zero means that no reinstatement is possible.
         */
        entries.add(new NumericalEntry(new KeySet(TextKeyword.DEFAULT_TIME_2_RETAIN, TextKeyword.TIME_2_RETAIN),// keySet
        NegotiationType.NEGOTIATED,// negotiationType
        Use.LEADING_LOPNS,// use
        NegotiationStatus.DEFAULT,// negotiationStatus
        0,// negotiationValue
        NumericalValueRange.create(0, 3600),// protocolValueRange
        NumericalResultFunction.MIN,// resultFunction
        20,// defaultValue
        false));// zeroMeansDontCare

        /*
         * Min seconds to wait before attempting connection and task allegiance reinstatement after a connection
         * termination or a connection reset. A value of zero means that task reassignment can be done immediately.
         */
        entries.add(new NumericalEntry(new KeySet(TextKeyword.DEFAULT_TIME_2_WAIT, TextKeyword.TIME_2_WAIT),// keySet
        NegotiationType.NEGOTIATED,// negotiationType
        Use.LEADING_LOPNS,// use
        NegotiationStatus.DEFAULT,// negotiationStatus
        2,// negotiationValue
        NumericalValueRange.create(0, 3600),// protocolValueRange
        NumericalResultFunction.MAX,// resultFunction
        2,// defaultValue
        false));// zeroMeansDontCare

        /*
         * Recovery levels represent a combination of recovery capabilities. Each level includes all the capabilities of
         * the lower recovery level.
         */
        entries.add(new NumericalEntry(new KeySet(TextKeyword.ERROR_RECOVERY_LEVEL),// keySet
        NegotiationType.NEGOTIATED,// negotiationType
        Use.LEADING_LOPNS,// use
        NegotiationStatus.DEFAULT,// negotiationStatus
        0,// negotiationValue
        NumericalValueRange.create(0, 2),// protocolValueRange
        NumericalResultFunction.MIN,// resultFunction
        0,// defaultValue
        false));// zeroMeansDontCare

        /*
         * Maximum SCSI payload, in bytes, of unsolicited data an initiator may send to the target. Includes immediate
         * data and a sequence of unsolicited Data-Out PDUs. Zero (don't care) can be used. Must be <= MaxBurstLength.
         */
        entries.add(new NumericalEntry(new KeySet(TextKeyword.FIRST_BURST_LENGTH),// keySet
        NegotiationType.NEGOTIATED,// negotiationType
        Use.LEADING_LOPNS,// use
        NegotiationStatus.DEFAULT,// negotiationStatus
        65536,// negotiationValue (default value)
        NumericalValueRange.create(512, 16777215),// protocolValueRange
        // 512 to 2^24 - 1
        NumericalResultFunction.MIN,// resultFunction
        65536,// defaultValue, 64K
        true));// zeroMeansDontCare

        /*
         * Either the initiator or target can turn off ImmediateData.
         */
        entries.add(new BooleanEntry(new KeySet(TextKeyword.IMMEDIATE_DATA),// keySet
        Use.LEADING_LOPNS,// use
        NegotiationStatus.DEFAULT,// negotiationStatus
        true,// negotiationValue
        BooleanResultFunction.AND,// resultFunction
        true));// defaultValue

        /*
         * Turns off the default use of R2T; allows an initiator to start sending data to a target as if it had received
         * an initial R2T.
         */
        entries.add(new BooleanEntry(new KeySet(TextKeyword.INITIAL_R_2_T),// keySet
        Use.LEADING_LOPNS,// use
        NegotiationStatus.DEFAULT,// negotiationStatus
        true,// negotiationValue
        BooleanResultFunction.OR,// resultFunction
        true));// defaultValue
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.