@Override public String toString() { return new StringBuffer() .append(getClass().getName()) .append("(sender=") .append(getSender()) .append("; processorId=") .append(this.processorId) .append("; newPRId=") .append(this.newId) .append(")") .toString(); }
public IdentityUpdateMessage(Set recipients, int processorId, int newId) { setRecipients(recipients); this.processorId = processorId; this.newId = newId; }
@Override protected void process(DistributionManager dm) { try { if (logger.isTraceEnabled(LogMarker.DM)) { logger.trace(LogMarker.DM, "{}: processing message {}", getClass().getName(), this); } IdentityRequestMessage.setLatestId(this.newId); ReplyMessage.send(getSender(), getProcessorId(), null, dm); } catch (VirtualMachineError err) { SystemFailure.initiateFailure(err); // If this ever returns, rethrow the error. We're poisoned // now, so don't let this thread continue. throw err; } catch (Throwable t) { // Whenever you catch Error or Throwable, you must also // catch VirtualMachineError (see above). However, there is // _still_ a possibility that you are dealing with a cascading // error condition, so you also need to check to see if the JVM // is still usable: SystemFailure.checkFailure(); logger.debug("{} Caught throwable {}", this, t.getMessage(), t); } }
public static IdentityUpdateResponse send(Set recipients, InternalDistributedSystem is, int currentPRId) { Assert.assertTrue(recipients != null, "IdentityUpdateMessage NULL recipients set"); IdentityRequestMessage.setLatestId(currentPRId); // set local value IdentityUpdateResponse p = new IdentityUpdateResponse(is, recipients); IdentityUpdateMessage m = new IdentityUpdateMessage(recipients, p.getProcessorId(), currentPRId); is.getDistributionManager().putOutgoing(m); // set remote values return p; }
IdentityUpdateMessage.send(parMembers, sys, currentPRID.intValue());
ReplyMessage.send(getSender(), getProcessorId(), null, dm, null);
public static IdentityUpdateResponse send(Set recipients, InternalDistributedSystem is, int currentPRId) { Assert.assertTrue(recipients != null, "IdentityUpdateMessage NULL recipients set"); IdentityRequestMessage.setLatestId(currentPRId); // set local value IdentityUpdateResponse p = new IdentityUpdateResponse(is, recipients); IdentityUpdateMessage m = new IdentityUpdateMessage(recipients, p.getProcessorId(), currentPRId); is.getDistributionManager().putOutgoing(m); // set remote values return p; }
IdentityUpdateMessage.send(parMembers, sys, currentPRID.intValue());
() -> new IdentityRequestMessage()); registerDSFID(PR_IDENTITY_UPDATE_MESSAGE, () -> new IdentityUpdateMessage()); registerDSFID(PR_INDEX_CREATION_MSG, () -> new IndexCreationMsg()); registerDSFID(PR_MANAGE_BUCKET_MESSAGE, () -> new ManageBucketMessage());
public IdentityUpdateMessage(Set recipients, int processorId, int newId) { setRecipients(recipients); this.processorId = processorId; this.newId = newId; }
@Override public String toString() { return new StringBuffer() .append(getClass().getName()) .append("(sender=") .append(getSender()) .append("; processorId=") .append(this.processorId) .append("; newPRId=") .append(this.newId) .append(")") .toString(); }