| @@ 24-61 (lines=38) @@ | ||
| 21 | * @autogenerated |
|
| 22 | * @codeCoverageIgnore |
|
| 23 | */ |
|
| 24 | final class Bootstrap implements Api |
|
| 25 | { |
|
| 26 | /** |
|
| 27 | * Add default peers to the bootstrap list. |
|
| 28 | * |
|
| 29 | * @Endpoint(name="bootstrap:add:default") |
|
| 30 | * |
|
| 31 | * @return Command |
|
| 32 | */ |
|
| 33 | public function addDefault(): Command |
|
| 34 | { |
|
| 35 | return new Command(__METHOD__, get_defined_vars()); |
|
| 36 | } |
|
| 37 | ||
| 38 | /** |
|
| 39 | * Show peers in the bootstrap list. |
|
| 40 | * |
|
| 41 | * @Endpoint(name="bootstrap:list") |
|
| 42 | * |
|
| 43 | * @return Command |
|
| 44 | */ |
|
| 45 | public function list(): Command |
|
| 46 | { |
|
| 47 | return new Command(__METHOD__, get_defined_vars()); |
|
| 48 | } |
|
| 49 | ||
| 50 | /** |
|
| 51 | * Remove all peers from the bootstrap list. |
|
| 52 | * |
|
| 53 | * @Endpoint(name="bootstrap:rm:all") |
|
| 54 | * |
|
| 55 | * @return Command |
|
| 56 | */ |
|
| 57 | public function rmAll(): Command |
|
| 58 | { |
|
| 59 | return new Command(__METHOD__, get_defined_vars()); |
|
| 60 | } |
|
| 61 | } |
|
| 62 | ||
| @@ 24-63 (lines=40) @@ | ||
| 21 | * @autogenerated |
|
| 22 | * @codeCoverageIgnore |
|
| 23 | */ |
|
| 24 | final class Diag implements Api |
|
| 25 | { |
|
| 26 | /** |
|
| 27 | * Clear inactive requests from the log. |
|
| 28 | * |
|
| 29 | * @Endpoint(name="diag:cmds:clear") |
|
| 30 | * |
|
| 31 | * @return Command |
|
| 32 | */ |
|
| 33 | public function cmdsClear(): Command |
|
| 34 | { |
|
| 35 | return new Command(__METHOD__, get_defined_vars()); |
|
| 36 | } |
|
| 37 | ||
| 38 | /** |
|
| 39 | * Set how long to keep inactive requests in the log. |
|
| 40 | * |
|
| 41 | * @Endpoint(name="diag:cmds:set-time") |
|
| 42 | * |
|
| 43 | * @param string $arg time to keep inactive requests in log |
|
| 44 | * |
|
| 45 | * @return Command |
|
| 46 | */ |
|
| 47 | public function cmdsSetTime(string $arg): Command |
|
| 48 | { |
|
| 49 | return new Command(__METHOD__, get_defined_vars()); |
|
| 50 | } |
|
| 51 | ||
| 52 | /** |
|
| 53 | * Print system diagnostic information. |
|
| 54 | * |
|
| 55 | * @Endpoint(name="diag:sys") |
|
| 56 | * |
|
| 57 | * @return Command |
|
| 58 | */ |
|
| 59 | public function sys(): Command |
|
| 60 | { |
|
| 61 | return new Command(__METHOD__, get_defined_vars()); |
|
| 62 | } |
|
| 63 | } |
|
| 64 | ||
| @@ 24-64 (lines=41) @@ | ||
| 21 | * @autogenerated |
|
| 22 | * @codeCoverageIgnore |
|
| 23 | */ |
|
| 24 | final class Log implements Api |
|
| 25 | { |
|
| 26 | /** |
|
| 27 | * Change the logging level. |
|
| 28 | * |
|
| 29 | * @Endpoint(name="log:level") |
|
| 30 | * |
|
| 31 | * @param string $arg the subsystem logging identifier |
|
| 32 | * @param string $arg1 the log level, with ‘debug’ the most verbose and ‘critical’ the least verbose |
|
| 33 | * |
|
| 34 | * @return Command |
|
| 35 | */ |
|
| 36 | public function level(string $arg, string $arg1): Command |
|
| 37 | { |
|
| 38 | return new Command(__METHOD__, get_defined_vars()); |
|
| 39 | } |
|
| 40 | ||
| 41 | /** |
|
| 42 | * List the logging subsystems. |
|
| 43 | * |
|
| 44 | * @Endpoint(name="log:ls") |
|
| 45 | * |
|
| 46 | * @return Command |
|
| 47 | */ |
|
| 48 | public function ls(): Command |
|
| 49 | { |
|
| 50 | return new Command(__METHOD__, get_defined_vars()); |
|
| 51 | } |
|
| 52 | ||
| 53 | /** |
|
| 54 | * Read the event log. |
|
| 55 | * |
|
| 56 | * @Endpoint(name="log:tail") |
|
| 57 | * |
|
| 58 | * @return Command |
|
| 59 | */ |
|
| 60 | public function tail(): Command |
|
| 61 | { |
|
| 62 | return new Command(__METHOD__, get_defined_vars()); |
|
| 63 | } |
|
| 64 | } |
|
| 65 | ||