/** * Sends a message and does not wait for a response */ void sendAsync(DistributionMessage msg) { if (system != null) { system.getDistributionManager().putOutgoing(msg); } }
static boolean sendChunk(InternalDistributedMember recipient, int processorId, DistributionManager dm, HeapDataOutputStream chunk, int seriesNum, int msgNum, int numSeries, boolean lastInSeries) { RemoteFetchKeysReplyMessage reply = new RemoteFetchKeysReplyMessage(recipient, processorId, chunk, seriesNum, msgNum, numSeries, lastInSeries); Set<?> failures = dm.putOutgoing(reply); return (failures == null) || (failures.size() == 0); }
static boolean sendChunk(InternalDistributedMember recipient, int processorId, int bucketId, DistributionManager dm, HeapDataOutputStream chunk, int seriesNum, int msgNum, int numSeries, boolean lastInSeries, boolean hasRVV) { FetchEntriesReplyMessage reply = new FetchEntriesReplyMessage(recipient, processorId, bucketId, chunk, seriesNum, msgNum, numSeries, lastInSeries, hasRVV); Set failures = dm.putOutgoing(reply); return (failures == null) || (failures.size() == 0); }
/** Send an ack */ public static void send(InternalDistributedMember recipient, int processorId, DistributionManager dm) throws ForceReattemptException { InterestEventReplyMessage m = new InterestEventReplyMessage(processorId); m.setRecipient(recipient); dm.putOutgoing(m); }
PersistentStateQueryResults send(Set<InternalDistributedMember> members, DistributionManager dm, PersistentStateQueryReplyProcessor processor) { setRecipients(members); dm.putOutgoing(this); processor.waitForRepliesUninterruptibly(); return processor.results; }
/** Send an ack */ public static void send(InternalDistributedMember recipient, int processorId, DistributionManager dm, ReplyException re, byte responseCode) { Assert.assertTrue(recipient != null, "BecomePrimaryBucketReplyMessage NULL recipient"); BecomePrimaryBucketReplyMessage m = new BecomePrimaryBucketReplyMessage(processorId, re, responseCode); m.setRecipient(recipient); dm.putOutgoing(m); }
protected static void send(ClientProxyMembershipID proxyId, DistributionManager dm, ClientDenylistProcessor proc, Set members) { ClientDenylistMessage msg = new ClientDenylistMessage(); msg.processorId = proc.getProcessorId(); msg.proxyId = proxyId; msg.setRecipients(members); dm.putOutgoing(msg); }
/** Send a reply */ public static void send(InternalDistributedMember recipient, int processorId, DistributionManager dm, ReplyException re) { Assert.assertTrue(recipient != null, "DeposePrimaryBucketReplyMessage NULL recipient"); DeposePrimaryBucketReplyMessage m = new DeposePrimaryBucketReplyMessage(processorId, re); m.setRecipient(recipient); dm.putOutgoing(m); }
/** Send an ack */ public static void send(InternalDistributedMember recipient, int processorId, DistributionManager dm, int size) { Assert.assertTrue(recipient != null, "SizeReplyMessage NULL reply message"); SizeReplyMessage m = new SizeReplyMessage(processorId, size); m.setRecipient(recipient); dm.putOutgoing(m); }
/** Send a reply */ public static void send(InternalDistributedMember recipient, int processorId, DistributionManager dm, ReplyException re, boolean removed) { Assert.assertTrue(recipient != null, "RemoveBucketReplyMessage NULL recipient"); RemoveBucketReplyMessage m = new RemoveBucketReplyMessage(processorId, re, removed); m.setRecipient(recipient); dm.putOutgoing(m); }
protected static void send(Set others, DistributionManager dm, ReplyProcessor21 proc) { ElderInitMessage msg = new ElderInitMessage(); msg.processorId = proc.getProcessorId(); msg.setRecipients(others); if (logger.isTraceEnabled(LogMarker.DLS_VERBOSE)) { logger.trace(LogMarker.DLS_VERBOSE, "ElderInitMessage sending {} to {}", msg, others); } dm.putOutgoing(msg); }
/** Send an ack */ public static void send(InternalDistributedMember recipient, int processorId, EntrySnapshot value, DistributionManager dm, ReplyException re) { Assert.assertTrue(recipient != null, "FetchEntryReplyMessage NULL recipient"); FetchEntryReplyMessage m = new FetchEntryReplyMessage(processorId, value, re); m.setRecipient(recipient); dm.putOutgoing(m); }
/** * If we are connected to a distributed system, send a message to other members telling them about * a newly-registered serializer. */ private static void sendRegistrationMessage(DataSerializer s) { InternalDistributedSystem system = InternalDistributedSystem.getConnectedInstance(); if (system != null) { RegistrationMessage m = new RegistrationMessage(s); system.getDistributionManager().putOutgoing(m); } }
/** Send an ack */ public static void send(InternalDistributedMember recipient, int processorId, EntrySnapshot value, DistributionManager dm, ReplyException re) { Assert.assertTrue(recipient != null, "FetchEntryReplyMessage NULL recipient"); FetchEntryReplyMessage m = new FetchEntryReplyMessage(processorId, value, re); m.setRecipient(recipient); dm.putOutgoing(m); }
public static ReliableReplyProcessor21 send(Cache cache, int txUniqId, InternalDistributedMember onBehalfOfClientMember, DistributedMember recipient) { final InternalDistributedSystem system = (InternalDistributedSystem) cache.getDistributedSystem(); final Set recipients = Collections.singleton(recipient); ReliableReplyProcessor21 response = new ReliableReplyProcessor21(system, recipients); JtaBeforeCompletionMessage msg = new JtaBeforeCompletionMessage(txUniqId, onBehalfOfClientMember, response); msg.setRecipients(recipients); system.getDistributionManager().putOutgoing(msg); return response; }
@Test public void sendShouldSendPrepareBackupMessage() throws Exception { prepareBackupStep.send(); verify(dm, times(1)).putOutgoing(prepareBackupRequest); }
public static PersistentMembershipView send(InternalDistributedMember recipient, DistributionManager dm, String regionPath, boolean targetReinitializing) throws ReplyException { MembershipViewRequestReplyProcessor processor = new MembershipViewRequestReplyProcessor(dm, recipient); MembershipViewRequest msg = new MembershipViewRequest(regionPath, processor.getProcessorId(), targetReinitializing); msg.setRecipient(recipient); dm.putOutgoing(msg); return processor.getResult(); }
public static void send(Set<InternalDistributedMember> recipients, DistributionManager dm, String regionPath) throws ReplyException { ReplyProcessor21 processor = new ReplyProcessor21(dm, recipients); MembershipFlushRequest msg = new MembershipFlushRequest(regionPath, processor.getProcessorId()); msg.setRecipients(recipients); dm.putOutgoing(msg); processor.waitForRepliesUninterruptibly(); }
public static void send(MessageWithReply reqMsg, DistributionManager dm, GrantorInfo gi) { GrantorInfoReplyMessage m = new GrantorInfoReplyMessage(); m.grantor = gi.getId(); m.needsRecovery = gi.needsRecovery(); m.elderVersionId = gi.getVersionId(); m.grantorSerialNumber = gi.getSerialNumber(); m.processorId = reqMsg.getProcessorId(); m.setRecipient(reqMsg.getSender()); dm.putOutgoing(m); }
public static DumpB2NResponse send(Set recipients, PartitionedRegion r, int bId, boolean justPrimaryInfo) { DumpB2NResponse p = new DumpB2NResponse(r.getSystem(), recipients); DumpB2NRegion m = new DumpB2NRegion(recipients, r.getPRId(), p, bId, justPrimaryInfo); m.setTransactionDistributed(r.getCache().getTxManager().isDistributed()); r.getDistributionManager().putOutgoing(m); return p; }