KickJava   Java API By Example, From Geeks To Geeks.

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


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.admin.script.*;
23 import fr.dyade.aaa.admin.cmd.ExceptionCmd;
24
25 /**
26  * AdminAckStartStopNot is a notification. It's
27  * an acknowledge of AdminStartStopNot.
28  *
29  * @see StartScript
30  * @see StopScript
31  * @see AgentAdmin
32  * @see AdminStartStopNot
33  */

34 public class AdminAckStartStopNot extends Notification {
35
36   /** exception catch in start/stop */
37   public ExceptionCmd exc = null;
38   /** start script */
39   public StartScript startScript = null;
40   /** stop script */
41   public StopScript stopScript = null;
42   /** operation status */
43   public int status = 0;
44
45   public AdminAckStartStopNot() {}
46
47   public AdminAckStartStopNot(ExceptionCmd exc) {
48     this.exc = exc;
49   }
50
51   /**
52    * Appends a string image for this object to the StringBuffer parameter.
53    *
54    * @param output
55    * buffer to fill in
56    * @return
57     <code>output</code> buffer is returned
58    */

59   public StringBuffer JavaDoc toString(StringBuffer JavaDoc output) {
60     output.append('(');
61     super.toString(output);
62     output.append(",startScript=").append(startScript);
63     output.append(",stopScript=").append(stopScript);
64     output.append(')');
65
66     return output;
67   }
68 }
69
Popular Tags