@Override public void run() { if (context.isPrimaryPollingInstance()) { expire(); } }
public final void run() { if (context == null || context.isPrimaryPollingInstance()) { expire(); } }
@Override public void run() { if (muleContext.isPrimaryPollingInstance()) { try { store.expire(entryTTL, maxEntries, partitionName); } catch (Exception e) { MuleObjectStoreManager.logger.warn("Running expirty on partition " + partitionName + " of " + store + " threw " + e + ":" + e.getMessage()); } } }
@Override public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { muleContext = getMuleContext(jobExecutionContext); if (muleContext.isPrimaryPollingInstance() || TRUE.equals(jobExecutionContext.getJobDetail().getJobDataMap().get(PROPERTY_JOB_DYNAMIC))) { doExecute(jobExecutionContext); } }
if (muleContext.isPrimaryPollingInstance())
@Override final protected void connectHandler() throws Exception { if (shouldConsumeInEveryNode() || getFlowConstruct().getMuleContext().isPrimaryPollingInstance()) { if (logger.isInfoEnabled()) { logger.info("Connecting clusterizable message receiver"); } doConnect(); } else { if (logger.isDebugEnabled()) { logger.debug("Clusterizable message receiver not connected on this node"); } } }
/** * The action to be performed by this timer task. */ public void run() { ExpirableHolder holder; if (!onPollingNodeOnly || muleContext == null || muleContext.isPrimaryPollingInstance()) { for (Iterator iterator = monitors.values().iterator(); iterator.hasNext();) { holder = (ExpirableHolder) iterator.next(); if (holder.isExpired()) { removeExpirable(holder.getExpirable()); holder.getExpirable().expired(); } } } }
/** * Check whether polling should take place on this instance. */ public final void performPoll() throws Exception { if (!pollOnPrimaryInstanceOnly() || flowConstruct.getMuleContext().isPrimaryPollingInstance()) { poll(); } }
@Override final protected void doStartHandler() throws MuleException { if (shouldConsumeInEveryNode() || getFlowConstruct().getMuleContext().isPrimaryPollingInstance()) { if (logger.isInfoEnabled()) { logger.info("Starting clusterizable message receiver"); } if (messageReceiverWorkManager == null) { messageReceiverWorkManager = createWorkManager(); } doStart(); } else { if (logger.isDebugEnabled()) { logger.debug("Clusterizable message receiver not started on this node"); } } }
if (!muleContext.isPrimaryPollingInstance())
if (!shouldConsumeInEveryNode() && !flowConstruct.getMuleContext().isPrimaryPollingInstance())