Package org.apache.nutch.publisher
Interface NutchPublisher
- All Superinterfaces:
Configurable,Pluggable
- All Known Implementing Classes:
NutchPublishers,RabbitMQPublisherImpl
All publisher subscriber model implementations should implement this interface.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidpublish(Object event, Configuration conf) This method publishes the event.booleansetConfig(Configuration conf) Use implementation specific configurationsMethods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
-
Field Details
-
X_POINT_ID
-
-
Method Details
-
setConfig
Use implementation specific configurations- Parameters:
conf-Configurationto be used- Returns:
- true if set, false otherwise
-
publish
This method publishes the event. Make sure that the event is a Java POJO to avoid Jackson JSON conversion errors. Currently we use the FetcherThreadEvent- Parameters:
event- theObject(event) to publishconf-Configurationto be used
-