Removing erronous use of uuid and replaced with id
This commit is contained in:
parent
456fd074d4
commit
0085dd6504
2 changed files with 5 additions and 6 deletions
|
|
@ -276,7 +276,7 @@ class RemoteServer extends Logging with ListenerManagement {
|
|||
/**
|
||||
* Register Remote Actor by the Actor's 'uuid' field. It starts the Actor if it is not started already.
|
||||
*/
|
||||
def register(actorRef: ActorRef): Unit = register(actorRef.uuid,actorRef)
|
||||
def register(actorRef: ActorRef): Unit = register(actorRef.id,actorRef)
|
||||
|
||||
/**
|
||||
* Register Remote Actor by a specific 'id' passed as argument.
|
||||
|
|
@ -295,13 +295,13 @@ class RemoteServer extends Logging with ListenerManagement {
|
|||
}
|
||||
|
||||
/**
|
||||
* Unregister Remote Actor that is registered using its 'uuid' field (not custom ID).
|
||||
* Unregister Remote Actor that is registered using its 'id' field (not custom ID).
|
||||
*/
|
||||
def unregister(actorRef: ActorRef):Unit = synchronized {
|
||||
if (_isRunning) {
|
||||
log.debug("Unregistering server side remote actor [%s] with id [%s:%s]", actorRef.actorClass.getName, actorRef.id, actorRef.uuid)
|
||||
val actorMap = actors()
|
||||
actorMap remove actorRef.uuid
|
||||
actorMap remove actorRef.id
|
||||
if (actorRef.registeredInRemoteNodeDuringSerialization) actorMap remove actorRef.uuid
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue