public PartitionMessage(Collection<InternalDistributedMember> recipients, int regionId, ReplyProcessor21 processor, final TXStateInterface tx) { super(tx); setRecipients(recipients); this.regionId = regionId; this.processorId = processor == null ? 0 : processor.getProcessorId(); if (processor != null && this.isSevereAlertCompatible()) { processor.enableSevereAlertProcessing(); } }
public PartitionMessage(InternalDistributedMember recipient, int regionId, ReplyProcessor21 processor, final TXStateInterface tx) { super(tx); Assert.assertTrue(recipient != null, "PartitionMesssage recipient can not be null"); setRecipient(recipient); this.regionId = regionId; this.processorId = processor == null ? 0 : processor.getProcessorId(); if (processor != null && this.isSevereAlertCompatible()) { processor.enableSevereAlertProcessing(); } }
public PartitionMessage(Collection<InternalDistributedMember> recipients, int regionId, ReplyProcessor21 processor) { setRecipients(recipients); this.regionId = regionId; this.processorId = processor==null? 0 : processor.getProcessorId(); if (processor != null && this.isSevereAlertCompatible()) { processor.enableSevereAlertProcessing(); } initTxMemberId(); setIfTransactionDistributed(); }
public PartitionMessage(InternalDistributedMember recipient, int regionId, ReplyProcessor21 processor) { Assert.assertTrue(recipient != null, "PartitionMesssage recipient can not be null"); setRecipient(recipient); this.regionId = regionId; this.processorId = processor==null? 0 : processor.getProcessorId(); if (processor != null && this.isSevereAlertCompatible()) { processor.enableSevereAlertProcessing(); } initTxMemberId(); setIfTransactionDistributed(); }
public RemoteOperationMessage(Set<?> recipients, LocalRegion r, ReplyProcessor21 processor, TXStateInterface tx) { super(tx); if (recipients != null) { setRecipients(recipients); } this.regionPath = r.getFullPath(); this.processorId = processor == null ? 0 : processor.getProcessorId(); if (processor != null && this.isSevereAlertCompatible()) { processor.enableSevereAlertProcessing(); } // note that Operation above may not be reliable but just gives an idea of // the type of operation i.e. read or write which is enough for // IndexUpdater.hasRemoteOperations //initProcessorType(r, op); // check for TX match with that in thread-local final TXStateInterface currentTX; assert tx == (currentTX = TXManagerImpl.getCurrentTXState()): "unexpected mismatch of current TX " + currentTX + ", and TX passed to message " + tx; }
public RemoteOperationMessage(InternalDistributedMember recipient, LocalRegion r, ReplyProcessor21 processor, TXStateInterface tx) { super(tx); Assert.assertTrue(recipient != null, "PartitionMesssage recipient can not be null"); setRecipient(recipient); this.regionPath = r.getFullPath(); this.processorId = processor == null ? 0 : processor.getProcessorId(); if (processor != null && this.isSevereAlertCompatible()) { processor.enableSevereAlertProcessing(); } // note that Operation above may not be reliable but just gives an idea of // the type of operation i.e. read or write which is enough for // IndexUpdater.hasRemoteOperations //initProcessorType(r, op); // check for TX match with that in thread-local final TXStateInterface currentTX; assert tx == (currentTX = TXManagerImpl.getCurrentTXState()): "unexpected mismatch of current TX " + currentTX + ", and TX passed to message " + tx; }
public static void send(DistributionManager dm) throws InterruptedException { long viewId = dm.getMembershipManager().getView().getViewId(); ReplyProcessor21 rp = new ReplyProcessor21(dm, dm.getOtherDistributionManagerIds()); rp.enableSevereAlertProcessing(); dm.putOutgoing(new WaitForViewInstallation(viewId, rp.getProcessorId())); try { rp.waitForReplies(); } catch (ReplyException e) { if (e.getCause() != null && !(e.getCause() instanceof CancelException)) { if (logger.isDebugEnabled()) { logger.debug("Reply to WaitForViewInstallation received odd exception", e.getCause()); } } } // this isn't necessary for TXFailoverCommand, which is the only use of this // message right now. TXFailoverCommand performs messaging to all servers, // which will force us to wait for the view containing the crash of another // server to be processed. // dm.waitForViewInstallation(viewId); }
public RemoteOperationMessage(Set recipients, String regionPath, ReplyProcessor21 processor) { setRecipients(recipients); this.regionPath = regionPath; this.processorId = processor==null? 0 : processor.getProcessorId(); if (processor != null && this.isSevereAlertCompatible()) { processor.enableSevereAlertProcessing(); } this.txUniqId = TXManagerImpl.getCurrentTXUniqueId(); TXStateProxy txState = TXManagerImpl.getCurrentTXState(); if(txState!=null && txState.isMemberIdForwardingRequired()) { this.txMemberId = txState.getOriginatingMember(); } setIfTransactionDistributed(); }
public RemoteOperationMessage(InternalDistributedMember recipient, String regionPath, ReplyProcessor21 processor) { Assert.assertTrue(recipient != null, "RemoteMesssage recipient can not be null"); setRecipient(recipient); this.regionPath = regionPath; this.processorId = processor==null? 0 : processor.getProcessorId(); if (processor != null && this.isSevereAlertCompatible()) { processor.enableSevereAlertProcessing(); } this.txUniqId = TXManagerImpl.getCurrentTXUniqueId(); TXStateProxy txState = TXManagerImpl.getCurrentTXState(); if(txState!=null && txState.isMemberIdForwardingRequired()) { this.txMemberId = txState.getOriginatingMember(); } setIfTransactionDistributed(); }
public static void send(DistributionManager dm) throws InterruptedException { long viewId = dm.getMembershipManager().getView().getViewNumber(); ReplyProcessor21 rp = new ReplyProcessor21(dm, dm.getOtherDistributionManagerIds()); rp.enableSevereAlertProcessing(); dm.putOutgoing(new WaitForViewInstallation(viewId, rp.getProcessorId())); try { rp.waitForReplies(); } catch (ReplyException e) { if (e.getCause() != null && !(e.getCause() instanceof CancelException)) { if (dm.getLoggerI18n().fineEnabled()) { dm.getLoggerI18n().fine("reply to WaitForViewInstallation received odd exception", e.getCause()); } } } // this isn't necessary for TXFailoverCommand, which is the only use of this // message right now. TXFailoverCommand performs messaging to all servers, // which will force us to wait for the view containing the crash of another // server to be processed. // dm.waitForViewInstallation(viewId); }