Skip to content

Commit

Permalink
asdf
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Headrick committed May 11, 2012
1 parent ad23705 commit cfc7737
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 8 deletions.
20 changes: 12 additions & 8 deletions project/Build.scala
Expand Up @@ -13,10 +13,13 @@ object ApiAnalysis extends Build {


val typesafe = "typesafe repo" at "http://repo.typesafe.com/typesafe/releases" val typesafe = "typesafe repo" at "http://repo.typesafe.com/typesafe/releases"


val thrift = "org.apache.thrift" % "libthrift" % "0.7.0" val thrift = "org.apache.thrift" % "libthrift" % "0.7.0"
val netty = "org.jboss.netty" % "netty" % "3.2.7.Final" val avro_ipc = "org.apache.avro" % "avro-ipc" % "1.6.3"
val akka = "com.typesafe.akka" % "akka-actor" % "2.0.1" val netty = "org.jboss.netty" % "netty" % "3.2.7.Final"
val msgpack = "org.msgpack" % "msgpack" % "0.6.5" val akka = "com.typesafe.akka" % "akka-actor" % "2.0.1"
val akka_zmq = "com.typesafe.akka" % "akka-zeromq" % "2.0.1"
val msgpack = "org.msgpack" % "msgpack" % "0.6.0"
val scala_test = "org.scalatest" %% "scalatest" % "1.6.1" % "it,test"




lazy val all = Project( id = "all", base = file(".") ) aggregate( types ) lazy val all = Project( id = "all", base = file(".") ) aggregate( types )
Expand All @@ -31,13 +34,14 @@ object ApiAnalysis extends Build {
ThriftPlugin.thriftSettings ++ ThriftPlugin.thriftSettings ++
ProtobufPlugin.protobufSettings ++ ProtobufPlugin.protobufSettings ++
SbtAvro.avroSettings ++ SbtAvro.avroSettings ++
MsgPackPlugin.msgpackSettings ++ //MsgPackPlugin.msgpackSettings ++
Seq( Seq(
libraryDependencies ++= List( thrift, netty, akka, msgpack ), libraryDependencies ++= List( thrift, netty, akka, msgpack, akka_zmq, avro_ipc, scala_test ),
resolvers += typesafe resolvers += typesafe
) )



).configs( IntegrationTest )
) .settings( Defaults.itSettings : _*)
.settings( parallelExecution in IntegrationTest := false )


} }
1 change: 1 addition & 0 deletions types/.classpath
Expand Up @@ -35,5 +35,6 @@
<classpathentry kind="lib" path="/Users/andrew/.ivy2/cache/org.jboss.netty/netty/bundles/netty-3.2.7.Final.jar"/> <classpathentry kind="lib" path="/Users/andrew/.ivy2/cache/org.jboss.netty/netty/bundles/netty-3.2.7.Final.jar"/>
<classpathentry kind="lib" path="/Users/andrew/.ivy2/cache/com.typesafe.akka/akka-actor/jars/akka-actor-2.0.1.jar"/> <classpathentry kind="lib" path="/Users/andrew/.ivy2/cache/com.typesafe.akka/akka-actor/jars/akka-actor-2.0.1.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="/usr/local/lib"/>
<classpathentry kind="output" path="bin"/> <classpathentry kind="output" path="bin"/>
</classpath> </classpath>
@@ -0,0 +1,23 @@
package com.github.bigtoast.apiAnalysis.zmq

import akka.zeromq._
import akka.actor._

object Server {

val system = ActorSystem()

val handler = system.actorOf( Props[Handler] )

val router = system.newRouterSocket( Listener( handler ), Connect("tcp://*:1234"), HighWatermark( 10000 ) )
val dealer = system.newDealerSocket( Listener( handler ), Connect("tcp://*:1235") )

class Handler() extends Actor {

def receive :Receive = {
case Connecting =>
case m :ZMQMessage =>
case _ =>
}
}
}

0 comments on commit cfc7737

Please sign in to comment.