Debian Codegraph @

netsvcs/clients/Naming/Dump_Restore/README

raw
1
2
3 This file describes the usage of the Dump-Restore utility for the ACE
4 Name Server.
5
6 Similar to the test application provided in the ../Client/ directory,
7 a simple ASCII menu-driven interface is provided to the user:
8
9 Name Service Main Menu
10 ----------------------
11 *** Using Process Local Database ***
12
13 ** No Input File Specified **
14 <P> Use Process Local Database
15 <N> Use Node Local Database
16 <H> Set Remote Name server <host> and <port>
17 <F> Set Input File <file name>
18
19 <B> Bind
20 <U> Unbind
21 <R> Rebind
22 <D> Dump <file name>
23 <Q> or ^C (exit)
24
25 Initially, the user can select the type of database from the menu:
26
27 <P> uses the process local database (i.e., the
28 database is called the same name as the process
29 and stored in /tmp).
30 <N> uses the node local database (which defaults
31 to /tmp/localnames).
32 <H> uses the net local database by specifying host and port
33 number (by default this is stored in a file called
34 /tmp/globalnames on the server).
35 <F> Sets the name of the input file that will be used by the
36 test application to populate the database. The format of
37 the file should be:
38
39 name=<name1>
40 value=<value1>
41 type=[<type1>]
42 name=<name2>
43 value=<value2>
44 type=[<type2>]
45 .
46 .
47 .
48
49 Note that the type field is optional. However, if no type
50 information is associated with a name binding, a null entry still
51 needs to be present (i.e., type=).
52
53 Once the input file has been specified, the user can then do one of
54 the following:
55
56 <B> Bind -- bind all the bindings in the file to the database.
57 This can be used to "restore" the state of the
58 Name Server.
59 <U> Unbind -- unbind all the bindings in the file from the database.
60 <R> Rebind -- rebind all the bindings in the file to the database.
61 <D> Dump <file name> -- dump the state of the database to <filename>.
62 <Q> or ^C (exit) -- exit gracefully, saving the contents of the
63 Name Server in persistent shared memory.
64
65 Note that the dump file is stored in ASCII with exactly the same
66 format as the input file. Also, one can easily change the test
67 application so that a call to Dump results in the state of the
68 database dumped to standard output instead of a file.