From 229d0d8ca88bc344bed89e46541b325c1d267996 Mon Sep 17 00:00:00 2001
From: Hans Bolinder
Date: Fri, 6 May 2011 15:58:09 +0200
Subject: r Use Erlang specs and types for documentation
---
lib/stdlib/doc/src/slave.xml | 60 ++++++++++++++------------------------------
1 file changed, 19 insertions(+), 41 deletions(-)
(limited to 'lib/stdlib/doc/src/slave.xml')
diff --git a/lib/stdlib/doc/src/slave.xml b/lib/stdlib/doc/src/slave.xml
index 168d83f301..15b6711731 100644
--- a/lib/stdlib/doc/src/slave.xml
+++ b/lib/stdlib/doc/src/slave.xml
@@ -4,7 +4,7 @@
- 19962009
+ 19962011
Ericsson AB. All Rights Reserved.
@@ -56,22 +56,16 @@
- start(Host) ->
- start(Host, Name) ->
- start(Host, Name, Args) -> {ok, Node} | {error, Reason}
+
+
+
Start a slave node on a host
-
- Host = Name = atom()
- Args = string()
- Node = node()
- Reason = timeout | no_rsh | {already_running, Node}
-
- Starts a slave node on the host Host. Host names need
+
Starts a slave node on the host Host. Host names need
not necessarily be specified as fully qualified names; short
names can also be used. This is the same condition that
applies to names of distributed Erlang nodes.
- The name of the started node will be Name@Host. If no
+
The name of the started node will be Name@Host. If no
name is provided, the name will be the same as the node which
executes the call (with the exception of the host name part of
the node name).
@@ -79,7 +73,7 @@
terminal I/O which is produced at the slave is automatically
relayed to the master. Also, the file process will be relayed
to the master.
- The Args argument is used to set erl command
+
The Args argument is used to set erl command
line arguments. If provided, it is passed to the new node and
can be used for a variety of purposes. See
erl(1)
@@ -103,9 +97,9 @@
E = " -env DISPLAY " ++ net_adm:localhost() ++ ":0 ",
Arg = "-mnesia_dir " ++ M ++ " -pa " ++ Dir ++ E,
slave:start(H, Name, Arg).
- If successful, the function returns {ok, Node},
- where Node is the name of the new node. Otherwise it
- returns {error, Reason}, where Reason can be
+
If successful, the function returns {ok, Node},
+ where Node is the name of the new node. Otherwise it
+ returns {error, Reason}, where Reason can be
one of:
timeout
@@ -123,24 +117,18 @@ slave:start(H, Name, Arg).
-
There is no rsh program on the computer.
- {already_running, Node}
+ {already_running, Node}
-
-
A node with the name Name@Host already exists.
+ A node with the name Name@Host already exists.
- start_link(Host) ->
- start_link(Host, Name) ->
- start_link(Host, Name, Args) -> {ok, Node} | {error, Reason}
+
+
+
Start and link to a slave node on a host
-
- Host = Name = atom()
- Args = string()
- Node = node()
- Reason = timeout | no_rsh | {already_running, Node}
-
Starts a slave node in the same way as start/1,2,3,
except that the slave node is linked to the currently
@@ -151,11 +139,8 @@ slave:start(H, Name, Arg).
- stop(Node) -> ok
+
Stop (kill) a node
-
- Node = node()
-
Stops (kills) a node.
@@ -177,12 +162,8 @@ slave:start(H, Name, Arg).
- pseudo(Master, ServerList) -> ok
+
Start a number of pseudo servers
-
- Master = node()
- ServerList = [atom()]
-
Starts a number of pseudo servers. A pseudo server is a
server with a registered name which does absolutely nothing
@@ -198,16 +179,13 @@ rpc:call(N, slave, pseudo, [node(), [pxw_server]]).
- relay(Pid)
+
Run a pseudo server
-
- Pid = pid()
-
Runs a pseudo server. This function never returns any value
and the process which executes the function will receive
messages. All messages received will simply be passed on to
- Pid.
+ Pid.
--
cgit v1.2.3