team.supernova.graphite.reader.event.GraphiteEventReaderApp.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hubble-graphite-event-reader_2.12 Show documentation
Show all versions of hubble-graphite-event-reader_2.12 Show documentation
Hubble Graphite Event Reader Module
The newest version!
package team.supernova.graphite.reader.event
import akka.actor.ActorSystem
import akka.stream.scaladsl.Sink
import akka.stream.{ActorMaterializer, ActorMaterializerSettings}
import team.supernova.graphite.reader.event.stream.graph.GraphiteEventReaderGraph
import team.supernova.graphite.reader.stream.globalDecider
object GraphiteEventReaderApp extends App {
implicit val actorSystem = ActorSystem("hubble-graphite-event-reader")
implicit val materializer = ActorMaterializer(ActorMaterializerSettings(actorSystem).withSupervisionStrategy(globalDecider))
val resultSink = Sink.ignore
GraphiteEventReaderGraph(actorSystem).flow(resultSink).run()
}