Examples of PollingManager


Examples of org.apache.sandesha2.polling.PollingManager

      if (pending) {
        SequenceEntry entry = (SequenceEntry) message.getProperty(Sandesha2Constants.MessageContextProperties.MAKECONNECTION_ENTRY);
        if(entry != null) {
          ConfigurationContext context = message.getConfigurationContext();
          StorageManager storage = SandeshaUtil.getSandeshaStorageManager(context, context.getAxisConfiguration());
          PollingManager pollingManager = storage.getPollingManager();
          if(pollingManager != null) pollingManager.schedulePollingRequest(entry.getSequenceId(), entry.isRmSource());
        }
      }
    }
     
   
View Full Code Here

Examples of org.apache.sandesha2.polling.PollingManager

    this.rMDBeanMgr = new InMemoryRMDBeanMgr (this, context);
    this.senderBeanMgr = new InMemorySenderBeanMgr (this, context);
    this.invokerBeanMgr = new InMemoryInvokerBeanMgr (this, context);
    this.sender = new Sender();
    if(inOrder) this.invoker = new Invoker();
    if(polling) this.pollingManager = new PollingManager();
  }
View Full Code Here

Examples of org.apache.sandesha2.polling.PollingManager

      RMDBeanMgr rMDBeanMgr = storageManager.getRMDBeanMgr();
      RMDBean rMDBean = rMDBeanMgr.retrieve(outSequenceId);
     
      if (rMDBean!=null && rMDBean.isPollingMode()) {
        PollingManager manager = storageManager.getPollingManager();
        if(manager != null) manager.schedulePollingRequest(rMDBean.getSequenceID(), false);
      }
    }

    // We overwrite the previous client completed message ranges with the
    // latest view, but only if it is an update i.e. contained a new
View Full Code Here

Examples of org.apache.sandesha2.polling.PollingManager

      invoker.runInvokerForTheSequence(context,sequenceID);
    }
  }
 
  public static void startPollingManager (ConfigurationContext configurationContext) throws SandeshaException {
    PollingManager pollingManager = (PollingManager) configurationContext.getProperty(
        Sandesha2Constants.POLLING_MANAGER);
   
    //assums that if somebody hs set the PollingManager, he must hv already started it.
    if (pollingManager==null) {
      pollingManager = new PollingManager ();
      configurationContext.setProperty(Sandesha2Constants.POLLING_MANAGER,pollingManager);
      pollingManager.start(configurationContext);
    }
  }
View Full Code Here

Examples of org.apache.sandesha2.polling.PollingManager

      pollingManager.start(configurationContext);
    }
  }
 
  public static void stopPollingManager (ConfigurationContext configurationContext) {
    PollingManager pollingManager = (PollingManager) configurationContext.getProperty(
        Sandesha2Constants.POLLING_MANAGER);
    if (pollingManager!=null)
      pollingManager.stopPolling ();
  }
View Full Code Here

Examples of org.apache.sandesha2.polling.PollingManager

    if (pollingManager!=null)
      pollingManager.stopPolling ();
  }
 
  public static PollingManager getPollingManager (ConfigurationContext configurationContext) {
    PollingManager pollingManager = (PollingManager) configurationContext.getProperty(
        Sandesha2Constants.POLLING_MANAGER);
   
    return pollingManager;
  }
View Full Code Here

Examples of org.apache.sandesha2.polling.PollingManager

    return newMsg;
   
  }
 
  public static void shedulePollingRequest (String sequenceId, ConfigurationContext configurationContext) throws SandeshaException {
    PollingManager pollingManager = getPollingManager(configurationContext);
    pollingManager.shedulePollingRequest(sequenceId);
  }
View Full Code Here

Examples of org.apache.sandesha2.polling.PollingManager

      String sequenceId = sequence.getIdentifier().getIdentifier();
     
      if (messagePending!=null) {
        boolean pending = messagePending.isPending();
        if (pending) {
          PollingManager pollingManager = SandeshaUtil.getPollingManager(message.getConfigurationContext());
          if (pollingManager!=null) {
            pollingManager.shedulePollingRequest(sequenceId);
          }
        }
      }
    }
     
View Full Code Here

Examples of org.apache.sandesha2.polling.PollingManager

    this.rMDBeanMgr = new InMemoryRMDBeanMgr (this, context);
    this.senderBeanMgr = new InMemorySenderBeanMgr (this, context);
    this.invokerBeanMgr = new InMemoryInvokerBeanMgr (this, context);
    this.sender = new Sender();
    if(inOrder) this.invoker = new Invoker();
    if(polling) this.pollingManager = new PollingManager();
  }
View Full Code Here

Examples of org.apache.sandesha2.polling.PollingManager

      RMDBeanMgr rMDBeanMgr = storageManager.getRMDBeanMgr();
      RMDBean rMDBean = rMDBeanMgr.retrieve(outSequenceId);
     
      if (rMDBean!=null && rMDBean.isPollingMode()) {
        PollingManager manager = storageManager.getPollingManager();
        if(manager != null) manager.schedulePollingRequest(rMDBean.getSequenceID(), false);
      }
    }

    // We overwrite the previous client completed message ranges with the
    // latest view, but only if it is an update i.e. contained a new
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.