Class DataStreamerRequest
- java.lang.Object
-
- org.apache.ignite.internal.processors.datastreamer.DataStreamerRequest
-
- All Implemented Interfaces:
Serializable,Message
public class DataStreamerRequest extends Object implements Message
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.apache.ignite.plugin.extensions.communication.Message
DIRECT_TYPE_SIZE
-
-
Constructor Summary
Constructors Constructor Description DataStreamerRequest()Externalizablesupport.DataStreamerRequest(long reqId, byte[] resTopicBytes, @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 AffinityTopologyVersion topVer, int partId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringcacheName()IgniteUuidclassLoaderId()DeploymentModedeploymentMode()shortdirectType()Gets message type.Collection<DataStreamerEntry>entries()bytefieldsCount()Gets fields count.booleanforceLocalDeployment()booleanignoreDeploymentOwnership()booleankeepBinary()voidonAckReceived()Method called when ack message received.Map<UUID,IgniteUuid>participants()intpartition()booleanreadFrom(ByteBuffer buf, MessageReader reader)Reads this message from provided byte buffer.longrequestId()byte[]responseTopicBytes()StringsampleClassName()booleanskipStore()AffinityTopologyVersiontopologyVersion()StringtoString()byte[]updaterBytes()StringuserVersion()booleanwriteTo(ByteBuffer buf, MessageWriter writer)Writes this message to provided byte buffer.
-
-
-
Constructor Detail
-
DataStreamerRequest
public DataStreamerRequest()
Externalizablesupport.
-
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.
-
entries
public Collection<DataStreamerEntry> entries()
- Returns:
- Entries to update.
-
ignoreDeploymentOwnership
public boolean ignoreDeploymentOwnership()
- Returns:
Trueto 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:
Trueto force local deployment.
-
topologyVersion
public AffinityTopologyVersion topologyVersion()
- Returns:
- Topology version.
-
partition
public int partition()
- Returns:
- Partition ID.
-
onAckReceived
public void onAckReceived()
Method called when ack message received.- Specified by:
onAckReceivedin interfaceMessage
-
writeTo
public boolean writeTo(ByteBuffer buf, MessageWriter writer)
Writes this message to provided byte buffer.
-
readFrom
public boolean readFrom(ByteBuffer buf, MessageReader reader)
Reads this message from provided byte buffer.
-
directType
public short directType()
Gets message type.- Specified by:
directTypein interfaceMessage- Returns:
- Message type.
-
fieldsCount
public byte fieldsCount()
Gets fields count.- Specified by:
fieldsCountin interfaceMessage- Returns:
- Fields count.
-
-