Package org.apache.uima.adapter.jms.client

Examples of org.apache.uima.adapter.jms.client.BaseUIMAAsynchronousEngine_impl.stop()


     
      uimaAsEngine.process();

      Assert.assertEquals(8, getNumberOfCASesProcessed());
      System.clearProperty("DefaultBrokerURL");
      uimaAsEngine.stop();
    }

  public void testClientProcess() throws Exception {
    System.out.println("-------------- testClientProcess -------------");
   
View Full Code Here


      uimaAsEngine.sendCAS(cas);
    }
   
    uimaAsEngine.collectionProcessingComplete();
    System.clearProperty("DefaultBrokerURL");
    uimaAsEngine.stop();
  }
 
 
  public void testClientProcessTimeout() throws Exception {
    System.out
View Full Code Here

      System.out.println("UIMA AS Client Sending CAS#" + (i + 1) + " Request to a Service");
      uimaAsEngine.sendCAS(cas);
    }
   
    uimaAsEngine.collectionProcessingComplete();
    uimaAsEngine.stop();
 
 
  }
 
 
View Full Code Here

      cas.setDocumentText("Some Text");
      System.out.println("UIMA AS Client Sending CAS#" + (i + 1) + " Request to a Service");
      uimaAsEngine.sendCAS(cas);
    }
    uimaAsEngine.collectionProcessingComplete();
    uimaAsEngine.stop();
   
  }

  public void testClientEndpointPlaceholderSubstitution() throws Exception {
      System.out.println("-------------- testClientEndpointPlaceholderSubstitution -------------");
View Full Code Here

        cas.setDocumentText("Some Text");
        System.out.println("UIMA AS Client Sending CAS#" + (i + 1) + " Request to a Service");
        uimaAsEngine.sendCAS(cas);
      }
      uimaAsEngine.collectionProcessingComplete();
      uimaAsEngine.stop();
     
    }
 
  public void testClientCpcTimeout() throws Exception {
    System.out.println("-------------- testClientCpcTimeout -------------");
View Full Code Here

            doLog(methodName, "Cannot issue getMeta to: " + endpoint + ":" + broker);
            statistics.setHealthy(false);
            statistics.setAlive(false);
        } finally {
            try {
        uimaAsEngine.stop();
      } catch (Throwable e) {
        doLog(methodName, "Exception on UIMA-AS connection stop:" + e.toString());
      }
        }
View Full Code Here

    waitUntilInitialized();
    runCrTest(eeUimaEngine, 7);
    synchronized (this) {
      wait(50);
    }
    eeUimaEngine.stop();
  }

  public void testAsynchronousTerminate() throws Exception {
    System.out.println("-------------- testAsynchronousTerminate -------------");
    BaseUIMAAsynchronousEngine_impl eeUimaEngine = new BaseUIMAAsynchronousEngine_impl();
View Full Code Here

    System.out.println(" Waiting 1 seconds");
    Thread.sleep(1000);

    System.out.println(" Trying to stop service");
    eeUimaEngine.stop();
    System.out.println(" stop() returned!");
   
  }

  public void testCallbackListenerOnFailure() throws Exception {
View Full Code Here

        System.out.println("Received Expected Cas Identifier:" + casReferenceId);
      }
    } finally {
      // Stop callback listener thread
      listener.doStop();
      eeUimaEngine.stop();
    }
  }

  public void testTerminateOnInitializationFailure() throws Exception {
    System.out.println("-------------- testTerminateOnInitializationFailure -------------");
View Full Code Here

      Exception cause = getCause(e);
      System.out.println("Expected Initialization Exception was received:" + cause);
    } catch (Exception e) {
      fail("Expected ResourceInitializationException. Instead Got:" + e.getClass());
    } finally {
      eeUimaEngine.stop();
    }
  }

  /**
   * Tests shutdown due to delegate broker missing. The Aggregate is configured to retry getMeta 3
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.