Clustered deployment in ZooKeeper implemented. Read and write deployments from cluster test passing.
This commit is contained in:
parent
13abf0592f
commit
bd5cc53235
11 changed files with 335 additions and 158 deletions
|
|
@ -136,8 +136,8 @@ case class CannotInstantiateRemoteExceptionDueToRemoteProtocolParsingErrorExcept
|
|||
|
||||
abstract class RemoteSupport extends ListenerManagement with RemoteServerModule with RemoteClientModule {
|
||||
|
||||
lazy val eventHandler: ActorRef = {
|
||||
val handler = Actor.actorOf[RemoteEventHandler].start()
|
||||
val eventHandler: ActorRef = {
|
||||
val handler = Actor.actorOf[RemoteEventHandler](classOf[RemoteEventHandler].getName).start()
|
||||
// add the remote client and server listener that pipes the events to the event handler system
|
||||
addListener(handler)
|
||||
handler
|
||||
|
|
@ -146,8 +146,8 @@ abstract class RemoteSupport extends ListenerManagement with RemoteServerModule
|
|||
def shutdown {
|
||||
eventHandler.stop()
|
||||
removeListener(eventHandler)
|
||||
this.shutdownClientModule
|
||||
this.shutdownServerModule
|
||||
this.shutdownClientModule()
|
||||
this.shutdownServerModule()
|
||||
clear
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue