Examples of StringEntry


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

        true));// defaultValue

        /*
         * Sent to the target in the login PDU.
         */
        entries.add(new StringEntry(new KeySet(TextKeyword.INITIATOR_ALIAS),// keySet
        NegotiationType.DECLARED,// negotiationType
        Use.INITIAL_AND_FFP,// use
        NegotiationStatus.NOT_NEGOTIATED,// negotiationStatus
        null,// supportedValues, anything goes
        null));// defaultValue

        /*
         * Must be sent on first login request per connection.
         */
        entries.add(new StringEntry(new KeySet(TextKeyword.INITIATOR_NAME),// keySet
        NegotiationType.DECLARED,// negotiationType
        Use.INITIAL,// use
        NegotiationStatus.NOT_NEGOTIATED,// negotiationStatus
        null,// supportedValues, anything goes
        null));// defaultValue

        /*
         * Maximum SCSI data payload in bytes for data-in or for a solicited data-out sequence. Zero (don't care) can be
         * used.
         */
        entries.add(new NumericalEntry(new KeySet(TextKeyword.MAX_BURST_LENGTH),// keySet
        NegotiationType.NEGOTIATED,// negotiationType
        Use.LEADING_LOPNS,// use
        NegotiationStatus.DEFAULT,// negotiationStatus
        262144,// negotiationValue (default value)
        NumericalValueRange.create(512, 16777215),// protocolValueRange
        // 512 to 2^24 - 1
        NumericalResultFunction.MIN,// resultFunction
        262144,// defaultValue, 256K
        true));// zeroMeansDontCare

        /*
         * The initiator and target negotiate the maximum number of connections that can be requested or are acceptable.
         */
        entries.add(new NumericalEntry(new KeySet(TextKeyword.MAX_CONNECTIONS),// keySet
        NegotiationType.NEGOTIATED,// negotiationType
        Use.LEADING_LOPNS,// use
        NegotiationStatus.DEFAULT,// negotiationStatus
        1,// negotiationValue (default value)
        NumericalValueRange.create(1, 65535),// protocolValueRange
        NumericalResultFunction.MIN,// resultFunction
        1,// defaultValue
        false));// zeroMeansDontCare

        /*
         * The maximum number of outstanding R2Ts.
         */
        entries.add(new NumericalEntry(new KeySet(TextKeyword.MAX_OUTSTANDING_R_2_T),// keySet
        NegotiationType.NEGOTIATED,// negotiationType
        Use.LEADING_LOPNS,// use
        NegotiationStatus.DEFAULT,// negotiationStatus
        1,// negotiationValue (default value)
        NumericalValueRange.create(1, 65535),// protocolValueRange
        NumericalResultFunction.MIN,// resultFunction
        1,// defaultValue
        false));// zeroMeansDontCare

        /*
         * The session type (Normal or Discovery).
         */
        entries.add(new StringEntry(new KeySet(TextKeyword.SESSION_TYPE),// keySet
        NegotiationType.DECLARED,// negotiationType
        Use.INITIAL,// use
        NegotiationStatus.DEFAULT,// negotiationStatus
        null,// supportedValues, no checking
        TextKeyword.NORMAL));// 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.