1
inherit "/kernel/module";
9
string get_identifier() { return "admin"; }
12
* Sets a server config setting.
13
* @param setting the setting to change
14
* @param value the new value for the setting
15
* @return true on success, false if the setting could not be changed
17
int set_config(mixed setting, mixed value)
19
return _Server->set_config(setting, value);
23
* Queries whether a server config setting is changeable. Settings that
24
* are specified in the config file are not changeable in the running
26
* @param setting the setting to check
27
* @return true if the setting is changeable, false if it is not changeable
29
int is_config_changeable(mixed setting)
31
return _Server->is_config_changeable(setting);
35
* Returns a server config setting.
36
* @param setting the setting to query
37
* @return the value of the setting, or 0 (UNDEFINED) if it doesn't exist
39
mixed get_config(mixed setting)
41
return _Server->get_config(setting);
45
* Returns a mapping with all server config settings.
46
* @return a mapping ([ setting : value ])
50
return _Server->get_configs();
54
* Returns the server version as a string.
55
* @return the server version
59
return _Server->get_version();
63
* Returns the (unix) time (seconds after 1.1.1970) of the last server restart.
64
* @return unix time of the last server restart
68
return _Server->get_last_reboot();
72
* Returns the number of objects currently in memory on the server.
73
* @return number of objects in memory
75
int get_objects_in_memory()
77
return master()->get_in_memory();
81
* Returns the number of swapped objects on the server.
82
* @return number of swapped objects
84
int get_objects_swapped()
86
return master()->get_swapped();
90
* Returns the memory usage of the server as a mapping. The mapping contains
91
* the memory usage and count of various data types (keys in the mapping are:
92
* num_programs, program_bytes,
93
* num_objects, object_bytes,
94
* num_strings, string_bytes,
95
* num_arrays, array_bytes,
96
* num_mappings, mapping_bytes,
97
* num_multisets, multiset_bytes,
98
* num_frames, frame_bytes,
99
* num_callbacks, callback_bytes.)
100
* @return memory usage information of the server
104
return _Server->debug_memory();
108
* Returns the current (unix) time (seconds since 1.Jan.1970) on the server.
109
* @return current unix time on the server
111
int get_server_time ()