Examples of UimaASProcessCasTimeout


Examples of org.apache.uima.aae.error.UimaASProcessCasTimeout

    if (abort) {
      throw new ResourceProcessException(new RuntimeException("Uima AS Client API Stopping"));
    }
    // check if timeout exception
    if (cachedRequest.isTimeoutException()) {
      throw new ResourceProcessException(new UimaASProcessCasTimeout());
    }
    // If a reply contains process exception, throw an exception and let the
    // listener decide what happens next
    if (cachedRequest.isProcessException()) {
      throw new ResourceProcessException(cachedRequest.getException());
View Full Code Here

Examples of org.apache.uima.aae.error.UimaASProcessCasTimeout

            }
          }
        } else {
          // notify the application listener with the error
          if ( serviceDelegate.isPingTimeout()) {
            exc = new UimaASProcessCasTimeout(new UimaASPingTimeout());
            serviceDelegate.resetPingTimeout();
          } else {
            exc = new UimaASProcessCasTimeout();
          }
          status.addEventStatus("Process", "Failed", exc);
          notifyListeners(aCAS, status, AsynchAEMessage.Process);
        }
        cachedRequest.removeEntry(casReferenceId);
View Full Code Here

Examples of org.apache.uima.aae.error.UimaASProcessCasTimeout

      }
     // Request To Process Cas Has Timed-out. 
      throw new ResourceProcessException(JmsConstants.JMS_LOG_RESOURCE_BUNDLE, "" +
          "UIMAJMS_process_timeout_WARNING",
          new Object[]{qName, getBrokerURI(), cachedRequest.getHostIpProcessingCAS()},
          new UimaASProcessCasTimeout("UIMA AS Client Timed Out Waiting for Reply From Service:"+qName+" Broker:"+getBrokerURI()));
    }
    // If a reply contains process exception, throw an exception and let the
    // listener decide what happens next
    if (cachedRequest.isProcessException()) {
      String qName="";
View Full Code Here

Examples of org.apache.uima.aae.error.UimaASProcessCasTimeout

                  }
                }
              } else {
                // notify the application listener with the error
                if ( serviceDelegate.isPingTimeout()) {
                  exc = new UimaASProcessCasTimeout(new UimaASPingTimeout("UIMA AS Client Ping Time While Waiting For Reply From a Service On Queue:"+anEndpoint));
                  serviceDelegate.resetPingTimeout();
                } else {
                  exc = new UimaASProcessCasTimeout("UIMA AS Client Timed Out Waiting For CAS:"+casReferenceId+ " Reply From a Service On Queue:"+anEndpoint);
                }
                status.addEventStatus("Process", "Failed", exc);
                notifyListeners(aCAS, status, AsynchAEMessage.Process);
              }
              boolean isSynchronousCall = cachedRequest.isSynchronousInvocation();
View Full Code Here

Examples of org.apache.uima.aae.error.UimaASProcessCasTimeout

  @After
  public void tearDown() throws Exception {
  }
 
  private static void generateUimaASProcessCasTimeout() throws Exception {
    throw new UimaASProcessCasTimeout();
  }
View Full Code Here

Examples of org.apache.uima.aae.error.UimaASProcessCasTimeout

    if (abort) {
      throw new ResourceProcessException(new RuntimeException("Uima AS Client API Stopping"));
    }
    // check if timeout exception
    if (cachedRequest.isTimeoutException()) {
      throw new ResourceProcessException(new UimaASProcessCasTimeout());
    }
    // If a reply contains process exception, throw an exception and let the
    // listener decide what happens next
    if (cachedRequest.isProcessException()) {
      throw new ResourceProcessException(cachedRequest.getException());
View Full Code Here

Examples of org.apache.uima.aae.error.UimaASProcessCasTimeout

            }
          }
        } else {
          // notify the application listener with the error
          if ( serviceDelegate.isPingTimeout()) {
            exc = new UimaASProcessCasTimeout(new UimaASPingTimeout("UIMA AS Client Ping Time While Waiting For Reply From a Service On Queue:"+anEndpoint));
            serviceDelegate.resetPingTimeout();
          } else {
            exc = new UimaASProcessCasTimeout("UIMA AS Client Timed Out Waiting For CAS:"+casReferenceId+ " Reply From a Service On Queue:"+anEndpoint);
          }
          status.addEventStatus("Process", "Failed", exc);
          notifyListeners(aCAS, status, AsynchAEMessage.Process);
        }
        cachedRequest.removeEntry(casReferenceId);
View Full Code Here

Examples of org.apache.uima.aae.error.UimaASProcessCasTimeout

      }
      try
      {
        // check if timeout exception
        if (cachedRequest.isTimeoutException()) {
          throw new ResourceProcessException(new UimaASProcessCasTimeout());
        }
        //  Process reply in the sending thread
        Message message = cachedRequest.getMessage();
        handleProcessReply(message, false, pt);
      }
View Full Code Here

Examples of org.apache.uima.aae.error.UimaASProcessCasTimeout

        }
      }
      else
      {
        // notify the application listener with the error
        exc = new UimaASProcessCasTimeout();
        status.addEventStatus("Process", "Failed", exc);
        notifyListeners(aCAS, status, AsynchAEMessage.Process);
      }
      cachedRequest.removeEntry(casReferenceId);
View Full Code Here

Examples of org.apache.uima.aae.error.UimaASProcessCasTimeout

      }
     // Request To Process Cas Has Timed-out. 
      throw new ResourceProcessException(JmsConstants.JMS_LOG_RESOURCE_BUNDLE, "" +
          "UIMAJMS_process_timeout_WARNING",
          new Object[]{qName, getBrokerURI(), cachedRequest.getHostIpProcessingCAS()},
          new UimaASProcessCasTimeout("UIMA AS Client Timed Out Waiting for Reply From Service:"+qName+" Broker:"+getBrokerURI()));
    }
    // If a reply contains process exception, throw an exception and let the
    // listener decide what happens next
    if (cachedRequest.isProcessException()) {
      String qName="";
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.