Class ProtocolFactory


  • public class ProtocolFactory
    extends Object
    • Method Detail

      • getInstance

        public static ProtocolFactory getInstance​(org.apache.storm.Config conf)
      • cleanup

        public void cleanup()
      • getProtocol

        public Protocol getProtocol​(URL url)
        Returns an instance of the protocol to use for a given URL
      • getProtocol

        public Protocol[] getProtocol​(String protocol)
        Returns instance(s) of the implementation for the protocol passed as argument.
        Parameters:
        protocol - representation of the protocol e.g. http
        Since:
        1.17