Package org.apache.uima.aae

Examples of org.apache.uima.aae.InputChannel.createListener()


                InputChannel iC = getAnalysisEngineController().getReplyInputChannel(anEndpoint.getDelegateKey());
                if ( iC != null ) {
                  try {
                    // Create a new Listener, new Temp Queue and associate the listener with the Input Channel
                  // Also resets endpoint status to OK 
                    iC.createListener(anEndpoint.getDelegateKey(), anEndpoint);
                    iC.removeDelegateFromFailedList(masterEndpoint.getDelegateKey());
                  } catch( Exception exx) {
                    throw new AsynchAEException(exx);
                  }
                } else{
View Full Code Here


  private void createListener(String delegateKey) throws Exception {
    if (controller instanceof AggregateAnalysisEngineController) {
      // Fetch an InputChannel that handles messages for a given delegate
      InputChannel iC = controller.getReplyInputChannel(delegateKey);
      // Create a new Listener, new Temp Queue and associate the listener with the Input Channel
      iC.createListener(delegateKey, null);
    }
  }

  private synchronized boolean handleJmsException(JMSException ex) {
    if (!failed) {
View Full Code Here

                if (aController instanceof AggregateAnalysisEngineController && (masterEndpoint != null && masterEndpoint.getStatus() == Endpoint.FAILED)) {
                  // Fetch an InputChannel that handles messages for a given delegate
                  InputChannel iC = aController.getReplyInputChannel(masterEndpoint.getDelegateKey());
                  // Create a new Listener, new Temp Queue and associate the listener with the Input Channel
                  iC.createListener(masterEndpoint.getDelegateKey(), null);
                  iC.removeDelegateFromFailedList(masterEndpoint.getDelegateKey());
                  anEndpoint.setDestination(masterEndpoint.getDestination());
                }
               
              }
View Full Code Here

  private void createListener(String delegateKey) throws Exception {
    if (controller instanceof AggregateAnalysisEngineController) {
      // Fetch an InputChannel that handles messages for a given delegate
      InputChannel iC = controller.getReplyInputChannel(delegateKey);
      // Create a new Listener, new Temp Queue and associate the listener with the Input Channel
      iC.createListener(delegateKey, null);
    }
  }

  private synchronized boolean handleJmsException(JMSException ex) {
    if (!failed) {
View Full Code Here

                if (aController instanceof AggregateAnalysisEngineController && (masterEndpoint != null && masterEndpoint.getStatus() == Endpoint.FAILED)) {
                  // Fetch an InputChannel that handles messages for a given delegate
                  InputChannel iC = aController.getReplyInputChannel(masterEndpoint.getDelegateKey());
                  // Create a new Listener, new Temp Queue and associate the listener with the Input Channel
                  iC.createListener(masterEndpoint.getDelegateKey(), null);
                  iC.removeDelegateFromFailedList(masterEndpoint.getDelegateKey());
                  anEndpoint.setDestination(masterEndpoint.getDestination());
                }
               
              }
View Full Code Here

  private void createListener(String delegateKey) throws Exception {
    if (controller instanceof AggregateAnalysisEngineController) {
      // Fetch an InputChannel that handles messages for a given delegate
      InputChannel iC = controller.getReplyInputChannel(delegateKey);
      // Create a new Listener, new Temp Queue and associate the listener with the Input Channel
      iC.createListener(delegateKey, null);
    }
  }

  private synchronized boolean handleJmsException(JMSException ex) {
    if (!failed) {
View Full Code Here

                    InputChannel iC = getAnalysisEngineController().getReplyInputChannel(anEndpoint.getDelegateKey());
                    if ( iC != null ) {
                      try {
                        // Create a new Listener, new Temp Queue and associate the listener with the Input Channel
                      // Also resets endpoint status to OK 
                        iC.createListener(anEndpoint.getDelegateKey(), anEndpoint);
                        iC.removeDelegateFromFailedList(masterEndpoint.getDelegateKey());
                      } catch( Exception exx) {
                        throw new AsynchAEException(exx);
                      }
                    } else{
View Full Code Here

  private void createListener(String delegateKey) throws Exception {
    if (controller instanceof AggregateAnalysisEngineController) {
      // Fetch an InputChannel that handles messages for a given delegate
      InputChannel iC = controller.getReplyInputChannel(delegateKey);
      // Create a new Listener, new Temp Queue and associate the listener with the Input Channel
      iC.createListener(delegateKey, null);
    }
  }

  private synchronized boolean handleJmsException(JMSException ex) {
    if (!failed) {
View Full Code Here

                    InputChannel iC = getAnalysisEngineController().getReplyInputChannel(anEndpoint.getDelegateKey());
                    if ( iC != null ) {
                      try {
                        // Create a new Listener, new Temp Queue and associate the listener with the Input Channel
                      // Also resets endpoint status to OK 
                        iC.createListener(anEndpoint.getDelegateKey(), anEndpoint);
                        iC.removeDelegateFromFailedList(masterEndpoint.getDelegateKey());
                      } catch( Exception exx) {
                        throw new AsynchAEException(exx);
                      }
                    } else{
View Full Code Here

  private void createListener(String delegateKey) throws Exception {
    if (controller instanceof AggregateAnalysisEngineController) {
      // Fetch an InputChannel that handles messages for a given delegate
      InputChannel iC = controller.getReplyInputChannel(delegateKey);
      // Create a new Listener, new Temp Queue and associate the listener with the Input Channel
      iC.createListener(delegateKey, null);
    }
  }

  private synchronized boolean handleJmsException(JMSException ex) {
    if (!failed) {
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.