Package org.apache.uima.aae.client

Examples of org.apache.uima.aae.client.UimaASProcessStatus


                 }
                 if (pm.getMessageType() == AsynchAEMessage.Process) {
                   cacheEntry.setCASDepartureTime(System.nanoTime());
                 }
                 cacheEntry.setCASDepartureTime(System.nanoTime());
                 UimaASProcessStatus status = new UimaASProcessStatusImpl(new ProcessTrace_impl(),
                         cacheEntry.getCasReferenceId());
                 // Notify engine before sending a message
                 engine.onBeforeMessageSend(status);
               }
             }
View Full Code Here


                 }
                 if (pm.getMessageType() == AsynchAEMessage.Process) {
                   cacheEntry.setCASDepartureTime(System.nanoTime());
                 }
                 cacheEntry.setCASDepartureTime(System.nanoTime());
                 UimaASProcessStatus status = new UimaASProcessStatusImpl(new ProcessTrace_impl(),cacheEntry.getCAS(),
                         cacheEntry.getCasReferenceId());
                 // Notify engine before sending a message
                 if (UIMAFramework.getLogger(CLASS_NAME).isLoggable(Level.FINE)) {
                     UIMAFramework.getLogger(CLASS_NAME).logrb(
                             Level.FINE,
View Full Code Here

      casCachedRequest = (ClientRequest) clientCache.get(casReferenceId);
    }
    try {
      if ( casCachedRequest != null ) {
            //  entering user provided callback. Handle exceptions.
            UimaASProcessStatus status = new UimaASProcessStatusImpl(new ProcessTrace_impl(),casCachedRequest.getCAS(),
                    casReferenceId);
           
            String nodeIP = message.getStringProperty(AsynchAEMessage.ServerIP);
            String pid = message.getStringProperty(AsynchAEMessage.UimaASProcessPID);
            if ( casReferenceId != null && nodeIP != null && pid != null) {
View Full Code Here

                 }
                 if (pm.getMessageType() == AsynchAEMessage.Process) {
                   cacheEntry.setCASDepartureTime(System.nanoTime());
                 }
                 cacheEntry.setCASDepartureTime(System.nanoTime());
                 UimaASProcessStatus status = new UimaASProcessStatusImpl(new ProcessTrace_impl(),
                         cacheEntry.getCasReferenceId());
                 // Notify engine before sending a message
                 engine.onBeforeMessageSend(status);
               }
             }
View Full Code Here

             }
             //  Dispatch asynchronous request to Uima AS service
             producer.send(message);
            
             if ( doCallback ) {
               UimaASProcessStatus status = new UimaASProcessStatusImpl(new ProcessTrace_impl(),cacheEntry.getCAS(),
                       cacheEntry.getCasReferenceId());
               // Notify engine before sending a message
               if (UIMAFramework.getLogger(CLASS_NAME).isLoggable(Level.FINE)) {
                   UIMAFramework.getLogger(CLASS_NAME).logrb(
                           Level.FINE,
View Full Code Here

      casCachedRequest = (ClientRequest) clientCache.get(casReferenceId);
    }
    try {
      if ( casCachedRequest != null ) {
            //  entering user provided callback. Handle exceptions.
            UimaASProcessStatus status = new UimaASProcessStatusImpl(new ProcessTrace_impl(),casCachedRequest.getCAS(),
                    casReferenceId);
           
            String nodeIP = message.getStringProperty(AsynchAEMessage.ServerIP);
            String pid = message.getStringProperty(AsynchAEMessage.UimaASProcessPID);
            if ( casReferenceId != null && nodeIP != null && pid != null) {
              if (UIMAFramework.getLogger(CLASS_NAME).isLoggable(Level.FINE)) {
                      UIMAFramework.getLogger(CLASS_NAME).logrb(
                              Level.FINE,
                              CLASS_NAME.getName(),
                              "handleServiceInfo",
                              JmsConstants.JMS_LOG_RESOURCE_BUNDLE,
                              "UIMAJMS_calling_onBeforeProcessCAS_FINE",
                              new Object[] {
                                casReferenceId,
                                String.valueOf(casCachedRequest.getCAS().hashCode())
                              });
                  }
              onBeforeProcessCAS(status,nodeIP, pid);
              if (UIMAFramework.getLogger(CLASS_NAME).isLoggable(Level.FINE)) {
                      UIMAFramework.getLogger(CLASS_NAME).logrb(
                              Level.FINE,
                              CLASS_NAME.getName(),
                              "handleServiceInfo",
                              JmsConstants.JMS_LOG_RESOURCE_BUNDLE,
                              "UIMAJMS_completed_onBeforeProcessCAS_FINE",
                              new Object[] {
                                casReferenceId,
                                String.valueOf(casCachedRequest.getCAS().hashCode())
                              });
                  }
           }
           casCachedRequest.setHostIpProcessingCAS(message.getStringProperty(AsynchAEMessage.ServerIP));
           if (message.getJMSReplyTo() != null && serviceDelegate.isCasPendingReply(casReferenceId)) {
             casCachedRequest.setFreeCasNotificationQueue(message.getJMSReplyTo());
           }
      } else {
       
       
        ClientRequest requestToCache = (ClientRequest) clientCache.get(uniqueIdentifier);
        if ( requestToCache != null && requestToCache.isMetaRequest()) {
            String nodeIP = message.getStringProperty(AsynchAEMessage.ServerIP);
              String pid = message.getStringProperty(AsynchAEMessage.UimaASProcessPID);
              if ( pid != null && nodeIP != null ) {
                 UimaASProcessStatus status = new UimaASProcessStatusImpl(new ProcessTrace_impl(),null,
                          casReferenceId);
                  // notify client that the last request (GetMeta ) has been received by a service.
                 onBeforeProcessMeta(nodeIP, pid);
              }
         
View Full Code Here

               }
             }
             //  Dispatch asynchronous request to Uima AS service
             producer.send(message);
             if ( doCallback ) {
               UimaASProcessStatus status = new UimaASProcessStatusImpl(new ProcessTrace_impl(),cacheEntry.getCAS(),
                       cacheEntry.getCasReferenceId());
               // Notify engine before sending a message
               if (UIMAFramework.getLogger(CLASS_NAME).isLoggable(Level.FINE)) {
                   UIMAFramework.getLogger(CLASS_NAME).logrb(
                           Level.FINE,
View Full Code Here

TOP

Related Classes of org.apache.uima.aae.client.UimaASProcessStatus

Copyright © 2018 www.massapicom. 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.