2 * jFCPlib - WatchGlobal.java - Copyright © 2008 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 2 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, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 package net.pterodactylus.fcp;
22 * The “WatchGlobal” messages enables clients to watch the global queue in
23 * addition to the client-local queue.
25 * @author David ‘Bombe’ Roden <bombe@freenetproject.org>
27 public class WatchGlobal extends FcpMessage {
30 * Enables or disables watching the global queue.
33 * <code>true</code> to watch the global queue and the
34 * client-local queue, <code>false</code> to watch only the
37 public WatchGlobal(boolean enabled) {
38 this(enabled, Verbosity.ALL);
42 * Enables or disables watching the global queue, optionally masking out
46 * <code>true</code> to watch the global queue and the
47 * client-local queue, <code>false</code> to watch only the
49 * @param verbosityMask
50 * A verbosity mask that determines which events are received
52 public WatchGlobal(boolean enabled, Verbosity verbosityMask) {
54 setField("Enabled", String.valueOf(enabled));
55 setField("VerbosityMask", String.valueOf(verbosityMask));