Class DataStreamerRequest

    • Constructor Detail

      • DataStreamerRequest

        public DataStreamerRequest()
        Externalizable support.
      • DataStreamerRequest

        public DataStreamerRequest​(long reqId,
                                   byte[] resTopicBytes,
                                   @Nullable
                                   @Nullable String cacheName,
                                   byte[] updaterBytes,
                                   Collection<DataStreamerEntry> entries,
                                   boolean ignoreDepOwnership,
                                   boolean skipStore,
                                   boolean keepBinary,
                                   DeploymentMode depMode,
                                   String sampleClsName,
                                   String userVer,
                                   Map<UUID,​IgniteUuid> ldrParticipants,
                                   IgniteUuid clsLdrId,
                                   boolean forceLocDep,
                                   @NotNull
                                   @NotNull AffinityTopologyVersion topVer,
                                   int partId)
        Parameters:
        reqId - Request ID.
        resTopicBytes - Response topic.
        cacheName - Cache name.
        updaterBytes - Cache receiver.
        entries - Entries to put.
        ignoreDepOwnership - Ignore ownership.
        skipStore - Skip store flag.
        keepBinary - Keep binary flag.
        depMode - Deployment mode.
        sampleClsName - Sample class name.
        userVer - User version.
        ldrParticipants - Loader participants.
        clsLdrId - Class loader ID.
        forceLocDep - Force local deployment.
        topVer - Topology version.
        partId - Partition ID.
    • Method Detail

      • requestId

        public long requestId()
        Returns:
        Request ID.
      • responseTopicBytes

        public byte[] responseTopicBytes()
        Returns:
        Response topic.
      • cacheName

        public String cacheName()
        Returns:
        Cache name.
      • updaterBytes

        public byte[] updaterBytes()
        Returns:
        Updater.
      • ignoreDeploymentOwnership

        public boolean ignoreDeploymentOwnership()
        Returns:
        True to ignore ownership.
      • skipStore

        public boolean skipStore()
        Returns:
        Skip store flag.
      • keepBinary

        public boolean keepBinary()
        Returns:
        Keep binary flag.
      • deploymentMode

        public DeploymentMode deploymentMode()
        Returns:
        Deployment mode.
      • sampleClassName

        public String sampleClassName()
        Returns:
        Sample class name.
      • userVersion

        public String userVersion()
        Returns:
        User version.
      • participants

        public Map<UUID,​IgniteUuid> participants()
        Returns:
        Participants.
      • classLoaderId

        public IgniteUuid classLoaderId()
        Returns:
        Class loader ID.
      • forceLocalDeployment

        public boolean forceLocalDeployment()
        Returns:
        True to force local deployment.
      • partition

        public int partition()
        Returns:
        Partition ID.
      • onAckReceived

        public void onAckReceived()
        Method called when ack message received.
        Specified by:
        onAckReceived in interface Message
      • writeTo

        public boolean writeTo​(ByteBuffer buf,
                               MessageWriter writer)
        Writes this message to provided byte buffer.
        Specified by:
        writeTo in interface Message
        Parameters:
        buf - Byte buffer.
        writer - Writer.
        Returns:
        Whether message was fully written.
      • readFrom

        public boolean readFrom​(ByteBuffer buf,
                                MessageReader reader)
        Reads this message from provided byte buffer.
        Specified by:
        readFrom in interface Message
        Parameters:
        buf - Byte buffer.
        reader - Reader.
        Returns:
        Whether message was fully read.
      • directType

        public short directType()
        Gets message type.
        Specified by:
        directType in interface Message
        Returns:
        Message type.
      • fieldsCount

        public byte fieldsCount()
        Gets fields count.
        Specified by:
        fieldsCount in interface Message
        Returns:
        Fields count.