2 * jFCPlib - WatchGlobal.java - Copyright © 2008–2016 David Roden
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 package net.pterodactylus.fcp;
21 * The “WatchGlobal” messages enables clients to watch the global queue in
22 * addition to the client-local queue.
24 * @author David ‘Bombe’ Roden <bombe@freenetproject.org>
26 public class WatchGlobal extends FcpMessage {
29 * Enables or disables watching the global queue.
32 * <code>true</code> to watch the global queue and the
33 * client-local queue, <code>false</code> to watch only the
36 public WatchGlobal(boolean enabled) {
37 this(enabled, Verbosity.ALL);
41 * Enables or disables watching the global queue, optionally masking out
45 * <code>true</code> to watch the global queue and the
46 * client-local queue, <code>false</code> to watch only the
48 * @param verbosityMask
49 * A verbosity mask that determines which events are received
51 public WatchGlobal(boolean enabled, Verbosity verbosityMask) {
53 setField("Enabled", String.valueOf(enabled));
54 setField("VerbosityMask", String.valueOf(verbosityMask));