Skip to content

divebillboards/thinconnector-java

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

##thinconnector-java

A thin connector for the Gnip API written in Java. The connector uses maven to manage the few dependencies that it has including FasterXML's Jackson libs for JSON parsing.

###Features

  • Logging
  • Connection to a stream with reconnect logic
  • Rules management
  • Use of properties
  • Asynchronous reading off the stream, parsing JSON and handling of messages

##Coming

  • Metrics
  • Other streams besides PowerTrack

##Usage (from the root directory of the repository)

cp src/main/resources/example.config.properties src/main/resources/config.properties

Edit config.properties and fill in your own Gnip connection values.

Then build the app: mvn clean package.

Start the Mongo daemon if you are using the MongoStreamHandler: mongod &. Messages will be written into your database as they arrive from the stream.

Now run the app:

java -cp target/thinconnector-java-1.0.jar com.gnip.IngesteratorApplication

You should see logger messages written to stdout.

About

A thin connector for Gnip API written in Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%