Class ProtocolFactory
- java.lang.Object
-
- com.digitalpebble.stormcrawler.protocol.ProtocolFactory
-
public class ProtocolFactory extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanup()
static ProtocolFactory
getInstance(org.apache.storm.Config conf)
Protocol[]
getProtocol(String protocol)
Returns instance(s) of the implementation for the protocol passed as argument.Protocol
getProtocol(URL url)
Returns an instance of the protocol to use for a given URL
-
-
-
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
-
-