Package org.apache.uima.ducc.common

Examples of org.apache.uima.ducc.common.TcpStreamHandler


            this.broker = ep.substring(ndx+1).trim();
            this.service_type = ServiceType.UimaAs;

            URL url = null;
        try {               
        url = new URL(null, broker, new TcpStreamHandler());
      } catch (MalformedURLException e) {
                throw new IllegalArgumentException("Invalid broker URL: " + broker);
      }
            this.broker_host = url.getHost();
            this.broker_port = url.getPort();
View Full Code Here


        // broker is a URL that we need to parse in order to get the actual host and port
        // for jmx
        URL url = null;
        try {               
            url = new URL(null, broker, new TcpStreamHandler());
        } catch (MalformedURLException e) {
            throw new IllegalArgumentException("Invalid broker URL: " + broker);
        }
        broker_host = url.getHost();
        // not needed here fyi broker_port = url.getPort();
View Full Code Here

                }
                // this IS unused, it is here only to insure the string is parsed as a URL
                @SuppressWarnings("unused")
                URL url = null;
                try {
                    url = new URL(null, broker, new TcpStreamHandler());
                } catch (MalformedURLException e) {
                    throw new IllegalArgumentException("Invalid broker URL in service ID: " + broker);
                }
            }
        }
View Full Code Here

TOP

Related Classes of org.apache.uima.ducc.common.TcpStreamHandler

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.