@Override public LogWriterI18n getLoggerI18n() { return dm.getLoggerI18n(); }
public static void fine(DM dm, String msg) { if (SUPPRESS_FINE) { return; } if (VERBOSE && !dm.getLoggerI18n().fineEnabled()) { dm.getLoggerI18n().info(LocalizedStrings.ONE_ARG, msg); } else { dm.getLoggerI18n().fine(msg); } }
public static void fine(DM dm, String msg, Throwable ex) { if (SUPPRESS_FINE) { return; } if (VERBOSE && !dm.getLoggerI18n().fineEnabled()) { dm.getLoggerI18n().info(LocalizedStrings.ONE_ARG, msg, ex); } else { dm.getLoggerI18n().fine(msg, ex); } }
public DLockReleaseProcessor(DM dm, InternalDistributedMember member, String serviceName, Object objectName) { super(dm, member); this.log = new DLockLogWriter(serviceName, dm.getLoggerI18n()); this.objectName = objectName; }
/** * Instantiates a new DLockQueryProcessor. * * @param dm the distribution manager to use for logging and messaging * @param grantor the member to query for lock leasing info * @param serviceName the name of the lock service */ private DLockQueryProcessor(DM dm, InternalDistributedMember grantor, String serviceName) { super(dm, grantor); this.log = new DLockLogWriter(serviceName, dm.getLoggerI18n()); }
/** * Ignore any incoming exception from other VMs, we just want an * acknowledgement that the message was processed. */ @Override protected void processException(ReplyException ex) { getDistributionManager().getLoggerI18n().fine( "MoveBucketMessage ignoring exception", ex); }
/** * Ignore any incoming exception from other VMs, we just want an * acknowledgement that the message was processed. */ @Override protected void processException(ReplyException ex) { getDistributionManager().getLoggerI18n().fine( "RemoveBucketMessage ignoring exception", ex); }
/** * Ignore any incoming exception from other VMs, we just want an * acknowledgement that the message was processed. */ @Override protected void processException(ReplyException ex) { getDistributionManager().getLoggerI18n().fine( "DestroyRegionResponse ignoring exception", ex); } }
/** * Ignore any incoming exception from other VMs, we just want an * acknowledgement that the message was processed. */ @Override protected void processException(ReplyException ex) { getDistributionManager().getLoggerI18n().fine( "FetchPartitionDetailsResponse ignoring exception", ex); }
/** * Ignore any incoming exception from other VMs, we just want an * acknowledgement that the message was processed. */ @Override protected void processException(ReplyException ex) { getDistributionManager().getLoggerI18n().fine( "DeposePrimaryBucketMessage ignoring exception", ex); } }
/** * The IdentityResponse processor ignores remote exceptions by implmenting this method. Ignoring remote exceptions is acceptable * since the response is only meant to wait for all healthy recipients to receive their {@link IdentityUpdateMessage} */ @Override protected synchronized void processException(ReplyException ex) { getDistributionManager().getLoggerI18n().fine("IdentityUpdateResponse ignoring exception", ex); } }
/** * Ignore any incoming exception from other VMs, we just want an * acknowledgement that the message was processed. */ @Override protected void processException(ReplyException ex) { getDistributionManager().getLoggerI18n().fine( "BecomePrimaryBucketMessage ignoring exception", ex); }
@Override protected void process(DistributionMessage dmsg, boolean warn) { if (dmsg instanceof ReplyMessage && ((ReplyMessage)dmsg).getIgnored()) { if (this.dm.getLoggerI18n().fineEnabled()) { this.dm.getLoggerI18n().fine( dmsg.getSender() + " replied with ignored true"); } this.failedMembers.add(dmsg.getSender()); } super.process(dmsg, warn); } }
/** Callers must be synchronized on this */ private void respondWithTimeout() { if (DLockGrantor.DEBUG_SUSPEND_LOCK) { this.receivingDM.getLoggerI18n().warning( LocalizedStrings.DLockRequestProcess_DLOCKREQUESTMESSAGE_REQUEST_0_TIMED_OUT_GRANTOR_STATUS_1, new Object[] {this, this.grantor.displayStatus(rThread, objectName) }); } this.response.responseCode = DLockResponseMessage.TIMEOUT; sendResponse(); }
public void setException(Throwable exception) { ((LocalResultCollector)this.rc).setException(exception); //this.lastResult(exception); this.dm .getLoggerI18n() .severe( LocalizedStrings.MemberResultSender_UNEXPECTED_EXCEPTION_DURING_FUNCTION_EXECUTION_ON_LOCAL_NODE, exception); this.rc.endResults(); this.localLastResultRecieved = true; }
private static LogWriter findLogWriter() { DM dm = ( InternalDistributedSystem.getAnyInstance()).getDistributionManager(); return dm.getLoggerI18n().convertToLogWriter(); } private static InternalDistributedMember findDistributedMember() {
@Override public void process(final DM dm, final ReplyProcessor21 processor) { if (StateFlushOperation.DEBUG) { dm.getLoggerI18n().info(LocalizedStrings.StateFlushOperation_PROCESSING__0, this.toString()); } super.process(dm, processor); }
protected static void send(ClientProxyMembershipID proxyId, DM dm,Set members, ReplyProcessor21 proc) { FindDurableQueueMessage msg = new FindDurableQueueMessage(); msg.processorId = proc.getProcessorId(); msg.proxyId = proxyId; msg.setRecipients(members); if (dm.getLoggerI18n().fineEnabled()) { dm.getLoggerI18n().fine("FindDurableQueueMessage sending " + msg + " to " + members); } dm.putOutgoing(msg); }
@Override public void memberDeparted(final InternalDistributedMember id, final boolean crashed) { if (id != null) { if (removeMember(id, true)) { this.prce = new ForceReattemptException(LocalizedStrings.PartitionMessage_PARTITIONRESPONSE_GOT_MEMBERDEPARTED_EVENT_FOR_0_CRASHED_1.toLocalizedString(new Object[] {id, Boolean.valueOf(crashed)})); } checkIfDone(); } else { Exception e = new Exception(LocalizedStrings.PartitionMessage_MEMBERDEPARTED_GOT_NULL_MEMBERID.toLocalizedString()); getDistributionManager().getLoggerI18n().info(LocalizedStrings.PartitionMessage_MEMBERDEPARTED_GOT_NULL_MEMBERID_CRASHED_0, Boolean.valueOf(crashed), e); } }
private void unlockTargetBucketLock(InternalDistributedMember recipient) { if (hasLockedBucket) { LogWriterI18n logger = this.region.getDistributionManager().getLoggerI18n(); logger.info(LocalizedStrings.DEBUG, "Processing SnapshotBucketLockReleaseProcessor to " + recipient); try { SnapshotBucketLockReleaseMessage.send(recipient, this.region.getDistributionManager(), region.getFullPath()); logger.info(LocalizedStrings.DEBUG, "Processing SnapshotBucketLockReleaseProcessor done " + recipient); } catch (Throwable t) { logger.warning(LocalizedStrings.DEBUG, t); } } }