Scala Library Documentation
|
|
scala/actors/remote/RemoteActor.scala
]
object
RemoteActor
extends
AnyRefThis object provides methods for creating, registering, and selecting remotely accessible actors.
A remote actor is typically created like this:
actor { alive(9010) register('myName, self) // behavior }
It can be accessed by an actor running on a (possibly) different node by selecting it in the following way:
actor { // ... val c = select(Node("127.0.0.1", 9010), 'myName) c ! msg // ... }
Method Summary | |
def
|
alive
(port : Int) : Unit
Makes
self remotely accessible on TCP port
port . |
def
|
register
(name : Symbol, a : Actor) : Unit
Registers
a under name on this
node. |
def
|
select
(node : Node, sym : Symbol) : Actor
Returns (a proxy for) the actor registered under
name on node . |
Methods inherited from AnyRef | |
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Method Details |
self
remotely accessible on TCP port
port
.a
under name
on this
node.name
on node
.
Scala Library Documentation
|
|