/** * Returns null if no dm available. */ public DM getDM() { return this.receiver.getDM(); }
public DistributionManager getDM() { return upCall.getDM(); }
@Override public boolean shutdownInProgress() { // Impossible condition (bug36329): make sure that we check DM's // view of shutdown here DistributionManager dm = listener.getDM(); return shutdownInProgress || (dm != null && dm.shutdownInProgress()); }
public boolean shutdownInProgress() { // Impossible condition (bug36329): make sure that we check DM's // view of shutdown here return shutdownInProgress || listener.getDM().shutdownInProgress(); }
/** * Sets cache time offset in {@link DistributionManager}. * * @param src * @param timeOffset * @see DistributionManager#setCacheTimeOffset(DistributedMember, long, boolean) */ public void setCacheTimeOffset(Address src, long timeOffset, boolean isJoin) { // check if offset calculator is still in view InternalDistributedMember coord = ipAddrToMemberMap.get(src); if (coord == null && src != null) { JGroupMember jgm = new JGroupMember((IpAddress)src); coord = new InternalDistributedMember(jgm); } if (this.listener != null) { DistributionManager dm = this.listener.getDM(); dm.setCacheTimeOffset(coord, timeOffset, isJoin); } }
public int getSerialQueueThrottleTime(Address sender) { IpAddress senderAddr = (IpAddress) sender; //if (!serialQueueInitialized) { // no need to synchronize - queue is invariant // serialQueueInitialized = true; InternalDistributedMember member = getMemberFromIpAddress(senderAddr, true); ThrottlingMemLinkedQueueWithDMStats serialQueue = listener.getDM() .getSerialQueue(member); //} // return serialQueue != null && serialQueue.wouldBlock(); if (serialQueue == null) return 0; return serialQueue.getThrottleTime(); }
/** * Sets cache time offset in {@link DistributionManager}. * * @param coord * @param timeOffset * @see InternalDistributedSystem#getClock() * @see DSClock#setCacheTimeOffset(DistributedMember, long, boolean) */ public void setCacheTimeOffset(InternalDistributedMember coord, long timeOffset, boolean isJoin) { if (this.listener != null) { DistributionManager dm = this.listener.getDM(); dm.getSystem().getClock().setCacheTimeOffset(coord, timeOffset, isJoin); } }
ThrottlingMemLinkedQueueWithDMStats serialQueue = listener.getDM().getSerialQueue(idm); if (serialQueue != null) { final boolean done[] = new boolean[1];
ThrottlingMemLinkedQueueWithDMStats serialQueue = listener.getDM().getSerialQueue(idm); if (serialQueue != null) { final boolean done[] = new boolean[1];