Package org.apache.uima.aae

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


   */
  protected void stopInputChannel(boolean shutdownNow) {
    InputChannel iC = getInputChannel(endpointName);
    if (iC != null && !iC.isStopped()) {
      try {
        iC.stop(shutdownNow);
      } catch (Exception e) {
        if (UIMAFramework.getLogger(CLASS_NAME).isLoggable(Level.INFO)) {
          UIMAFramework.getLogger(CLASS_NAME).logrb(Level.INFO, getClass().getName(), "terminate",
                  UIMAEE_Constants.JMS_LOG_RESOURCE_BUNDLE,
                  "UIMAEE_unable_to_stop_inputchannel__INFO",
View Full Code Here


            if (iC != null) {
              if (channelsToStop == InputChannel.InputChannels && iC.getServiceInfo() != null
                      && iC.getServiceInfo().getInputQueueName().startsWith("top_level_input_queue")) {
                // This closes both listeners on the input queue: Process Listener and GetMeta
                // Listener
                iC.stop(channelsToStop,shutdownNow);
                return; // Just closed input channels. Keep the others open
              }
              iC.stop(channelsToStop,shutdownNow);
            }
          }
View Full Code Here

                // This closes both listeners on the input queue: Process Listener and GetMeta
                // Listener
                iC.stop(channelsToStop,shutdownNow);
                return; // Just closed input channels. Keep the others open
              }
              iC.stop(channelsToStop,shutdownNow);
            }
          }
          i++;
        } catch (Exception e) {
          if (iC != null) {
View Full Code Here

   */
  protected void stopInputChannel() {
    InputChannel iC = getInputChannel(endpointName);
    if (iC != null && !iC.isStopped()) {
      try {
        iC.stop();
      } catch (Exception e) {
        if (UIMAFramework.getLogger(CLASS_NAME).isLoggable(Level.INFO)) {
          UIMAFramework.getLogger(CLASS_NAME).logrb(Level.INFO, getClass().getName(), "terminate",
                  UIMAEE_Constants.JMS_LOG_RESOURCE_BUNDLE,
                  "UIMAEE_unable_to_stop_inputchannel__INFO",
View Full Code Here

            if (iC != null) {
              if (channelsToStop == InputChannel.InputChannels && iC.getServiceInfo() != null
                      && iC.getServiceInfo().getInputQueueName().startsWith("top_level_input_queue")) {
                // This closes both listeners on the input queue: Process Listener and GetMeta
                // Listener
                iC.stop(channelsToStop);
                return; // Just closed input channels. Keep the others open
              }
              iC.stop(channelsToStop);
            }
          }
View Full Code Here

                // This closes both listeners on the input queue: Process Listener and GetMeta
                // Listener
                iC.stop(channelsToStop);
                return; // Just closed input channels. Keep the others open
              }
              iC.stop(channelsToStop);
            }
          }
          i++;
        } catch (Exception e) {
          if (iC != null) {
View Full Code Here

   */
  protected void stopInputChannel() {
    InputChannel iC = getInputChannel(endpointName);
    if (iC != null && !iC.isStopped()) {
      try {
        iC.stop();
      } catch (Exception e) {
        if (UIMAFramework.getLogger(CLASS_NAME).isLoggable(Level.INFO)) {
          UIMAFramework.getLogger(CLASS_NAME).logrb(Level.INFO, getClass().getName(), "terminate",
                  UIMAEE_Constants.JMS_LOG_RESOURCE_BUNDLE,
                  "UIMAEE_unable_to_stop_inputchannel__INFO",
View Full Code Here

          if (iC != null) {
            if (channelsToStop == InputChannel.InputChannels && iC.getServiceInfo() != null
                    && iC.getServiceInfo().getInputQueueName().startsWith("top_level_input_queue")) {
              // This closes both listeners on the input queue: Process Listener and GetMeta
              // Listener
              iC.stop(channelsToStop);
              return; // Just closed input channels. Keep the others open
            }
            iC.stop(channelsToStop);
          }
        }
View Full Code Here

              // This closes both listeners on the input queue: Process Listener and GetMeta
              // Listener
              iC.stop(channelsToStop);
              return; // Just closed input channels. Keep the others open
            }
            iC.stop(channelsToStop);
          }
        }
        i++;
      } catch (Exception e) {
        if (iC != null) {
View Full Code Here

    if( iC != null && !iC.isStopped())
    {
      try
      {
        System.out.println("Controller:"+getComponentName()+" Stopping Input Channel:"+iC.getInputQueueName());
        iC.stop();
      }
      catch( Exception e)
      {
        UIMAFramework.getLogger(CLASS_NAME).logrb(Level.INFO, getClass().getName(), "terminate", UIMAEE_Constants.JMS_LOG_RESOURCE_BUNDLE, "UIMAEE_unable_to_stop_inputchannel__INFO", new Object[] { getComponentName(), endpointName });
      }
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.