KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > fr > dyade > aaa > agent > AdminRequestNot


1 /*
2  * Copyright (C) 1996 - 2000 SCALAGENT
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or any later version.
8  *
9  * This library 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 GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
17  * USA.
18  */

19
20 package fr.dyade.aaa.agent;
21
22 import fr.dyade.aaa.agent.conf.*;
23 import fr.dyade.aaa.admin.script.*;
24
25 /**
26  * AdminRequestNot is a notification to
27  * configure A3CMLConfig.
28  *
29  * @see Script
30  * @see AgentAdmin
31  * @see AdminReplyNot
32  */

33 public class AdminRequestNot extends Notification {
34
35   /** configuration script. */
36   public Script script = null;
37   /** used to start script in a same reaction.
38    * (set configuration and start this configuration) */

39   public boolean autoStart = false;
40   /** silence use for idempotence. */
41   public boolean silence = false;
42
43   public AdminRequestNot(Script script,
44                          boolean autoStart,
45                          boolean silence) {
46     this.script = script;
47     this.autoStart = autoStart;
48     this.silence = silence;
49   }
50
51   public AdminRequestNot(Script script, boolean autoStart) {
52     this.script = script;
53     this.autoStart = autoStart;
54   }
55
56   public AdminRequestNot(Script script) {
57     this.script = script;
58   }
59
60   /**
61    * Appends a string image for this object to the StringBuffer parameter.
62    *
63    * @param output
64    * buffer to fill in
65    * @return
66     <code>output</code> buffer is returned
67    */

68   public StringBuffer JavaDoc toString(StringBuffer JavaDoc output) {
69     output.append('(');
70     super.toString(output);
71     output.append(",autoStart=").append(autoStart);
72     output.append(",silence=").append(silence);
73     output.append(",script=").append(script);
74     output.append(')');
75
76     return output;
77   }
78 }
79
Popular Tags