/** * Creates a new <code>ReplyProcessor</code> that wants replies from * a single member of a distributed system. * * @param dm the DistributionManager to use for messaging and membership * @param member the member this processor wants a reply from */ public DirectReplyProcessor(DM dm, InternalDistributedMember member) { super(dm, dm.getSystem(), member, null, false); }
/** * Creates a new <code>ReplyProcessor</code> that wants replies from * a single member of a distributed system. * * @param dm the DistributionManager to use for messaging and membership * @param member the member this processor wants a reply from */ public ReplyProcessor21(DM dm, InternalDistributedMember member) { this(dm, dm.getSystem(), member, null, true); }
@Override public void run() { dm.getSystem().disconnect(); } };
@Override public void run() { dm.getSystem().disconnect(); } };
@SuppressWarnings("unchecked") @Override public boolean execute(Object m, Object l) { if (l != null) { TXNewGIINode.send(dm.getSystem(), dm, TXStateProxy.this, (InternalDistributedMember)m, (ArrayList<Object>)l, forCommit); } return true; } });
private boolean hookupRegion(DM dm) { this.r = LocalRegion.getRegionFromPath(dm.getSystem(), this.regionPath); if(this.r==null && this.parentRegionPath!=null) { this.r = LocalRegion.getRegionFromPath(dm.getSystem(), this.parentRegionPath); this.regionPath = this.parentRegionPath; } if (this.r == null && dm.getSystem().isLoner()) { // If there are additional regions that the server enlisted in the tx, // which the client does not have, the client can just ignore the region // see bug 51922 return false; } return true; }
public boolean isForceFireEvent(DM dm) { LocalRegion r = LocalRegion.getRegionFromPath(dm.getSystem(), this.regionPath); if (r instanceof PartitionedRegion || (r != null && r.isUsedForPartitionedRegionBucket())) { return false; } return true; }
public GfxdReplyMessageProcessor(final DM dm, final Set<DistributedMember> members, boolean register) { super(dm, dm.getSystem(), members, null); this.responseCode = GfxdResponseCode.GRANT(1); if (register) { super.register(); } }
public GfxdReplyMessageProcessor(final DM dm, final Set<DistributedMember> members, boolean register) { super(dm, dm.getSystem(), members, null); this.responseCode = GfxdResponseCode.GRANT(1); if (register) { super.register(); } }
public GfxdReplyMessageProcessor(final DM dm, final Set<DistributedMember> members, boolean register) { super(dm, dm.getSystem(), members, null); this.responseCode = GfxdResponseCode.GRANT(1); if (register) { super.register(); } }
/** * returns the idle connection timer, or null if the connection table is closed. * guarded by a sync on the connection table */ protected synchronized SystemTimer getIdleConnTimer() { if (this.closed) { return null; } if (this.idleConnTimer == null) { this.idleConnTimer = new SystemTimer(getDM().getSystem(), true); } return this.idleConnTimer; }
public void rollback(int savepoint) { final DM dm = this.txManager.getDM(); TXRollBackToSavepointMsg.send(dm.getSystem(), dm, this, savepoint); }
final void initBaseEventOffsetsForCommit() { this.baseMembershipId = EventID.getMembershipId(this.txManager.getDM() .getSystem()); EventID.ThreadAndSequenceIDWrapper wrapper = EventID.getWrapper(); this.baseThreadId = wrapper.threadID; this.baseSequenceId = wrapper.sequenceID; this.baseSequenceIdGenerator = wrapper; }
@Override protected void shutdownSelf(DM dm, boolean hadCache) throws SQLException { // Stop fabric service. processShutDown(null); // Disconnect internal distributed system. The disconnect was skipped using // the keepDS flag while calling cache.close() from cache.shutdownAll() // because the IDS needs to be connected to be able to send back a response. // Now we can disconnect the IDS. InternalDistributedSystem ids = dm.getSystem(); if (ids != null && ids.isConnected()) { ids.disconnect(); } }
@Override protected void shutdownSelf(DM dm, boolean hadCache) throws SQLException { // Stop fabric service. processShutDown(null); // Disconnect internal distributed system. The disconnect was skipped using // the keepDS flag while calling cache.close() from cache.shutdownAll() // because the IDS needs to be connected to be able to send back a response. // Now we can disconnect the IDS. InternalDistributedSystem ids = dm.getSystem(); if (ids != null && ids.isConnected()) { ids.disconnect(); } }
@Override protected void shutdownSelf(DM dm, boolean hadCache) throws SQLException { // Stop fabric service. processShutDown(null); // Disconnect internal distributed system. The disconnect was skipped using // the keepDS flag while calling cache.close() from cache.shutdownAll() // because the IDS needs to be connected to be able to send back a response. // Now we can disconnect the IDS. InternalDistributedSystem ids = dm.getSystem(); if (ids != null && ids.isConnected()) { ids.disconnect(); } }
private InternalDistributedMember getElderId() { InternalDistributedMember elder = this.dm.getElderId(); if (elder == null) { this.dm.getSystem().getCancelCriterion().checkCancelInProgress(null); } Assert.assertTrue(elder != null); return elder; }
public void waitForCurrentOperations() { long timeout = 1000L * this.getDistributionManager().getSystem() .getConfig().getAckWaitThreshold(); waitForCurrentOperations(timeout); }
public void waitForCurrentOperations(LogWriterI18n logger) { long timeout = 1000L * this.getDistributionManager().getSystem() .getConfig().getAckWaitThreshold(); waitForCurrentOperations(logger, timeout); }
private InternalDistributedMember getElderId() { InternalDistributedMember elder = this.dm.getElderId(); if (elder == null) { this.dm.getSystem().getCancelCriterion().checkCancelInProgress(null); } Assert.assertTrue(elder != null); return elder; }