|
|
Scala 2.3.3
|
object
RemoteActor
extends java.lang.Object
with scala.ScalaObject
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(TcpNode("127.0.0.1", 9010), 'myName)
c ! msg
// ...
}
| Constructor Summary | |
def
this
|
|
| Def Summary | |
def
alive
(port: scala.Int)
: scala.Unit
Makes self remotely accessible on TCP port
port.
|
|
def
register
(name: scala.Symbol, a: scala.actors.Actor)
: scala.Unit
Registers a under name on this
node.
|
|
def
select
(node: scala.actors.remote.Node, sym: scala.Symbol)
: scala.actors.Actor
Returns (a proxy for) the actor registered under name on node.
|
|
| Constructor Detail |
| Def Detail |
def
alive
(port: scala.Int): scala.Unit
self remotely accessible on TCP port
port.
def
register
(name: scala.Symbol, a: scala.actors.Actor): scala.Unit
a under name on this
node.
def
select
(node: scala.actors.remote.Node, sym: scala.Symbol): scala.actors.Actor
name on node.