public static void sendMessage(InternalDistributedMember recipient, int processorId, DistributionManager distributionManager, boolean netWriteSucceeded, Exception e, boolean cacheWriterException) { // create a message NetWriteReplyMessage msg = new NetWriteReplyMessage(); msg.initialize(processorId, netWriteSucceeded, e, cacheWriterException); msg.setRecipient(recipient); distributionManager.putOutgoing(msg); }
/** * Reply with a {@link Response} */ public void process(DistributionManager dm) { Response response = new Response(); response.processorId = this.processorId; response.setRecipient(this.getSender()); dm.putOutgoing(response); }
public static void sendMessage(InternalDistributedMember recipient, int processorId, DistributionManager distributionManager, boolean netWriteSucceeded, Exception e, boolean cacheWriterException) { // create a message NetWriteReplyMessage msg = new NetWriteReplyMessage(); msg.initialize(processorId, netWriteSucceeded, e, cacheWriterException); msg.setRecipient(recipient); distributionManager.putOutgoing(msg); }
@Override protected void process(DistributionManager dm) { AdminResponse response = null; try { response = createResponse(dm); } catch (Exception ex) { logger.error(LocalizedMessage.create(LocalizedStrings.CliLegacyMessage_ERROR, this.getClass()), ex); response = AdminFailureResponse.create(dm, this.getSender(), ex); } if (response != null) { //cancellations result in null response response.setMsgId(this.getMsgId()); dm.putOutgoing(response); } else { logger.info(LocalizedMessage.create(LocalizedStrings.AdminRequest_RESPONSE_TO__0__WAS_CANCELLED, this.getClass().getName())); } }
public static void sendMessage(Object key, InternalDistributedMember recipient, int processorId, Object result, long lastModified, boolean isPresent, boolean isSerialized, boolean requestorTimedOut, DistributionManager distributionManager, VersionTag versionTag) { // create a message ResponseMessage msg = new ResponseMessage(); msg.initialize(key,processorId, result, lastModified,isPresent,isSerialized,requestorTimedOut, versionTag); msg.setRecipient(recipient); distributionManager.putOutgoing(msg); }
public static void sendMessage(Object key, InternalDistributedMember recipient, int processorId, Object result, long lastModified, boolean isPresent, boolean isSerialized, boolean requestorTimedOut, DistributionManager distributionManager, VersionTag versionTag) { // create a message ResponseMessage msg = new ResponseMessage(); msg.initialize(key,processorId, result, lastModified,isPresent,isSerialized,requestorTimedOut, versionTag); msg.setRecipient(recipient); distributionManager.putOutgoing(msg); }
public static void sendMessage(InternalDistributedMember recipient, int processorId, Object obj, DistributionManager distributionManager, Object aCallbackArgument, Exception e, boolean isSerialized, boolean requestorTimedOut) { // create a message NetLoadReplyMessage msg = new NetLoadReplyMessage(); msg.initialize(processorId, obj,aCallbackArgument,e, isSerialized,requestorTimedOut); msg.setRecipient(recipient); distributionManager.putOutgoing(msg); }
public static void sendMessage(InternalDistributedMember recipient, int processorId, Object obj, DistributionManager distributionManager, Object aCallbackArgument, Exception e, boolean isSerialized, boolean requestorTimedOut) { // create a message NetLoadReplyMessage msg = new NetLoadReplyMessage(); msg.initialize(processorId, obj,aCallbackArgument,e, isSerialized,requestorTimedOut); msg.setRecipient(recipient); distributionManager.putOutgoing(msg); }
public static void sendMessage(InternalDistributedMember recipient, int processorId, Object key, byte[] value, Object valueObj, int valueLen, long lastModified, boolean isSerialized, boolean requestorTimedOut, boolean authoritative, DistributionManager distributionManager, VersionTag versionTag ) { // create a message NetSearchReplyMessage msg = new NetSearchReplyMessage(); msg.initialize(processorId, value, valueObj, valueLen, lastModified,isSerialized,requestorTimedOut, authoritative, versionTag); msg.setRecipient(recipient); distributionManager.putOutgoing(msg); }
public static void sendMessage(InternalDistributedMember recipient, int processorId, Object key, byte[] value, Object valueObj, int valueLen, long lastModified, boolean isSerialized, boolean requestorTimedOut, boolean authoritative, DistributionManager distributionManager, VersionTag versionTag ) { // create a message NetSearchReplyMessage msg = new NetSearchReplyMessage(); msg.initialize(processorId, value, valueObj, valueLen, lastModified,isSerialized,requestorTimedOut, authoritative, versionTag); msg.setRecipient(recipient); distributionManager.putOutgoing(msg); }
@Override protected void process(DistributionManager dm) { final boolean processMsgReceived = txTracker.commitProcessReceived(this.trackerKey, dm); if (!processMsgReceived) { if (logger.isDebugEnabled()) { logger.debug("CommitProcessQuery did not find {} in the history", this.trackerKey); } } // Reply to the fellow FarSider as to whether the // CommitProcess message was received CommitProcessQueryReplyMessage resp = new CommitProcessQueryReplyMessage(processMsgReceived); resp.setProcessorId(this.processorId); resp.setRecipient(this.getSender()); dm.putOutgoing(resp); }
public static void cancelRequest(int msgId, DistributionManager dm) { AdminReplyProcessor processor = (AdminReplyProcessor) ReplyProcessor21.getProcessor(msgId); if (processor != null) { InternalDistributedMember recipient = processor.getResponder(); dm.putOutgoing(CancellationMessage.create(recipient, msgId)); processor.cancel(); } }
public static void cancelRequest(int msgId, DistributionManager dm) { AdminReplyProcessor processor = (AdminReplyProcessor) ReplyProcessor21.getProcessor(msgId); if (processor != null) { InternalDistributedMember recipient = processor.getResponder(); dm.putOutgoing(CancellationMessage.create(recipient, msgId)); processor.cancel(); } }
/** * Adds the distribution manager that is started up to the current * DM's list of members. * * This method is invoked on the receiver side */ @Override protected void process(DistributionManager dm) { Assert.assertTrue(this.id != null); ReplyMessage reply = new ReplyMessage(); reply.setProcessorId(processorId); reply.setRecipient(getSender()); dm.putOutgoing(reply); }
/** * Adds the distribution manager that is started up to the current * DM's list of members. * * This method is invoked on the receiver side */ @Override protected void process(DistributionManager dm) { Assert.assertTrue(this.id != null); ReplyMessage reply = new ReplyMessage(); reply.setProcessorId(processorId); reply.setRecipient(getSender()); dm.putOutgoing(reply); }
public static void send(InternalDistributedMember recipient, int processorId, ReplyException exception, DistributionManager dm, Profile[] profiles) { Assert.assertTrue(recipient != null, "Sending a ProfilesReplyMessage to ALL"); ProfilesReplyMessage m = new ProfilesReplyMessage(); m.processorId = processorId; m.profiles = profiles; if (exception != null) { m.setException(exception); dm.getLoggerI18n().fine("Replying with exception: " + m, exception); } m.setRecipient(recipient); dm.putOutgoing(m); }
public static void send(InternalDistributedMember recipient, int processorId, ReplyException exception, DistributionManager dm, Profile profile) { Assert.assertTrue(recipient != null, "Sending a ProfileReplyMessage to ALL"); ProfileReplyMessage m = new ProfileReplyMessage(); m.processorId = processorId; m.profile = profile; if (exception != null) { m.setException(exception); dm.getLoggerI18n().fine("Replying with exception: " + m, exception); } m.setRecipient(recipient); dm.putOutgoing(m); }
@Override protected void process(DistributionManager dm) { Region r = getRegion(dm.getSystem()); if (r != null) { try { // LinkedList entries = getEntriesForRegion(r, this.getSender()); // new ResponseThread(this.getSender(), numResults, dm, this.snapshotId).start(); SnapshotResultMessage m = SnapshotResultMessage.create(r, snapshotId); m.setRecipient(this.getSender()); dm.putOutgoing(m); } catch (CacheException ex) { throw new GemFireCacheException(ex); } } }
@Override public void process(DistributionManager dm) { // dm.getLogger().info("DEBUG Processing " + this); DLockService svc = DLockService.getInternalServiceNamed(this.serviceName); if (svc != null) { updateParticipants(svc, this.txLockId, this.updatedParticipants); } TXLockUpdateParticipantsReplyMessage reply = new TXLockUpdateParticipantsReplyMessage(); reply.setProcessorId(this.processorId); reply.setRecipient(getSender()); dm.putOutgoing(reply); }
@Override protected void process(DistributionManager dm) { Region r = getRegion(dm.getSystem()); if (r != null) { try { // LinkedList entries = getEntriesForRegion(r, this.getSender()); // new ResponseThread(this.getSender(), numResults, dm, this.snapshotId).start(); SnapshotResultMessage m = SnapshotResultMessage.create(r, snapshotId); m.setRecipient(this.getSender()); dm.putOutgoing(m); } catch (CacheException ex) { throw new GemFireCacheException(ex); } } }