-
Notifications
You must be signed in to change notification settings - Fork 1
BlockIO
laforge49 edited this page Sep 14, 2011
·
8 revisions
Given the RandomIO service, we should be able to read and write serialized blocks. We will implement two operations: Writeit, which writes an IncDesString set to the string "abc" and Readit, which returns the string held by the IncDesString. The block that is serialized and written to disk is set to the IncDesString. Here are the messages:
case class Writeit()
case class Readit()
We will write a driver which binds these messages:
class Driver extends Actor {
bind(classOf[Readit], readit)
bind(classOf[Writeit], writeit)
...
}