Examples of sendEvent()


Examples of org.agilewiki.jactor.pubsub.publisher.Subscribe.sendEvent()

            Sub sub = new Sub();
            sub.initialize(getMailbox());
            sub.setActorName("" + i);
            sub.src = this;
            Subscribe subscribe = new Subscribe(sub);
            subscribe.sendEvent(this, pub);
            i += 1;
        }
        ExtendedResponseProcessor<Integer> erp = new ExtendedResponseProcessor<Integer>() {
            @Override
            public void processResponse(Integer response) throws Exception {
View Full Code Here

Examples of org.apache.cxf.event.EventProcessor.sendEvent()

        WorkQueueManagerImpl wqm = new WorkQueueManagerImpl();
        wqm.setBus(bus);
        EventProcessor ep = bus.getExtension(EventProcessor.class);
        QName eventID = new QName(ComponentEventFilter.COMPONENT_CREATED_EVENT);
        if (null != ep) {        
            ep.sendEvent(new Event(wqm, eventID));
        }       
       
        //NOTE: now the bus WorkQueueManager is lazy load , if WorkQueueManager
        //create with bus , this test could be failed.
        List<Instrumentation> list = im.getAllInstrumentation();
View Full Code Here

Examples of org.apache.felix.eventadmin.impl.handler.EventHandlerProxy.sendEvent()

//            if ( !filterAsyncUnordered || task.isAsyncOrderedDelivery() )
//            {
                if ( !useTimeout(task) )
                {
                    // no timeout, we can directly execute
                    task.sendEvent(event);
                }
                else if ( syncThread != null )
                {
                    // if this is a cascaded event, we directly use this thread
                    // otherwise we could end up in a starvation
View Full Code Here

Examples of org.apache.ode.bpe.bped.EventDirector.sendEvent()

        EventDirector ed = ((BPEComponent) getServiceUnit().getComponent()).getEventDirector();
        try {
            IResponseMessage response;
            try {
                BPEEndpoint.setCurrent(this);
                response = ed.sendEvent(msg, true);
            } finally {
                BPEEndpoint.setCurrent(null);
            }
            IInteraction payload = response.getPart(outputPartName);
            if (response.getFault() != null) {
View Full Code Here

Examples of org.apache.oodt.cas.workflow.system.XmlRpcWorkflowManagerClient.sendEvent()

    XmlRpcWorkflowManagerClient wm = null;

    try {
      wm = new XmlRpcWorkflowManagerClient(new URL(
          metadata.getMetadata(CoreMetKeys.WORKFLOW_MANAGER_URL)));
      wm.sendEvent(config.getProperty("eventName"), metadata);
    } catch (Exception e) {
      throw new WorkflowTaskInstanceException(e.getMessage());
    }
  }
View Full Code Here

Examples of org.apache.oodt.cas.workflow.system.XmlRpcWorkflowManagerClient.sendEvent()

         throws CrawlerActionException {
      try {
         XmlRpcWorkflowManagerClient wClient = new XmlRpcWorkflowManagerClient(
               new URL(this.workflowMgrUrl));
         String ingestSuffix = this.ingestSuffix;
         return wClient.sendEvent(productMetadata.getMetadata(PRODUCT_TYPE)
               + ingestSuffix, productMetadata);
      } catch (Exception e) {
         throw new CrawlerActionException(
               "Failed to update workflow manager : " + e.getMessage());
      }
View Full Code Here

Examples of org.apache.oodt.cas.workflow.system.XmlRpcWorkflowManagerClient.sendEvent()

            throws CrawlerActionException {
        try {
            XmlRpcWorkflowManagerClient wClient = new XmlRpcWorkflowManagerClient(
                    new URL(this.workflowMgrUrl));
            String ingestSuffix = this.ingestSuffix;
            return wClient.sendEvent(productMetadata.getMetadata(PRODUCT_TYPE)
                    + ingestSuffix, productMetadata);
        } catch (Exception e) {
            throw new CrawlerActionException(
                    "Failed to update workflow manager : " + e.getMessage());
        }
View Full Code Here

Examples of org.huihoo.workflow.impl.monitor.EventMonitorThread.sendEvent()

    WorkflowServiceBase context = (WorkflowServiceBase) workflowService;
    EventMonitorThread eventMonitorThread = context.getEventMonitorThread(workflowProcess.getWorkflowPackage());
    MonitorEvent monitorEvent =
      new MonitorEvent(workflowService, workflowProcess, operator, userTransaction, workflowWork, workflowTransition);
    eventMonitorThread.sendEvent(monitorEvent);

    MonitorEventResult eventResult = monitorEvent.getResult();

    if (eventResult.getException() != null)
    {
View Full Code Here

Examples of org.huihoo.workflow.impl.monitor.EventMonitorThread.sendEvent()

    WorkflowServiceBase context = (WorkflowServiceBase) workflowService;
    EventMonitorThread eventMonitorThread = context.getEventMonitorThread(workflowProcess.getWorkflowPackage());
    MonitorEvent monitorEvent =
      new MonitorEvent(workflowService, workflowProcess, operator, userTransaction, workflowWork, workflowTransition);
    eventMonitorThread.sendEvent(monitorEvent);

    MonitorEventResult eventResult = monitorEvent.getResult();

    if (eventResult.getException() != null)
    {
View Full Code Here

Examples of org.huihoo.workflow.impl.monitor.EventMonitorThread.sendEvent()

    WorkflowServiceBase context = (WorkflowServiceBase) workflowService;
    EventMonitorThread eventMonitorThread = context.getEventMonitorThread(workflowProcess.getWorkflowPackage());
    MonitorEvent monitorEvent =
      new MonitorEvent(workflowService, workflowProcess, operator, userTransaction, workflowWork, workflowTransition);
    eventMonitorThread.sendEvent(monitorEvent);

    MonitorEventResult eventResult = monitorEvent.getResult();

    if (eventResult.getException() != null)
    {
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.