/** * Test hook for bug 48578. Returns true if it sees a net loader. * Returns false if it does not have one. */ public boolean hasNetLoader() { return this.hasNetLoader(getCacheDistributionAdvisor()); }
/** * Test hook for bug 48578. Returns true if it sees a net loader. * Returns false if it does not have one. */ public boolean hasNetLoader() { return this.hasNetLoader(getCacheDistributionAdvisor()); } }
private RemoteGetMessage(final Set<InternalDistributedMember> recipients, final LocalRegion r, final DirectReplyProcessor processor, final TXStateInterface tx, final Object key, final Object aCallbackArgument, final ClientProxyMembershipID context) { super(recipients, r, processor, tx); this.key = key; this.cbArg = aCallbackArgument; assert r instanceof DistributedRegion; final DistributedRegion dr = (DistributedRegion)r; this.hasLoader = dr.basicGetLoader() != null || dr.hasNetLoader(dr.getCacheDistributionAdvisor()); if (getTXId() != null) { // check for loader in the region this.canStartTX = getLockingPolicy().readCanStartTX() || this.hasLoader; } this.context = context; }
private RemoteGetMessage(final InternalDistributedMember recipient, final LocalRegion r, final DirectReplyProcessor processor, final TXStateInterface tx, final Object key, final Object aCallbackArgument, final ClientProxyMembershipID context) { super(recipient, r, processor, tx); this.key = key; this.cbArg = aCallbackArgument; assert r instanceof DistributedRegion; final DistributedRegion dr = (DistributedRegion)r; this.hasLoader = dr.basicGetLoader() != null || dr.hasNetLoader(dr.getCacheDistributionAdvisor()); if (getTXId() != null) { // check for loader in the region this.canStartTX = getLockingPolicy().readCanStartTX() || this.hasLoader; } this.context = context; }
while (!((DistributedRegion)aRegion).hasNetLoader()) { if (System.currentTimeMillis() > endTimeWaitForNetLoader) { throw new TestException("No net loader for region " + aRegion + " after waiting " + MS_TO_WAIT_FOR_NET_LOADER + "ms.");