View Javadoc

1   /*
2    * Copyright  2004-2005 Stefan Reuter
3    *
4    *  Licensed under the Apache License, Version 2.0 (the "License");
5    *  you may not use this file except in compliance with the License.
6    *  You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
10   *  Unless required by applicable law or agreed to in writing, software
11   *  distributed under the License is distributed on an "AS IS" BASIS,
12   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   *  See the License for the specific language governing permissions and
14   *  limitations under the License.
15   *
16   */
17  package net.sf.asterisk.manager.event;
18  
19  /***
20   * A ReloadEvent is triggerd when the <code>reload</code> console command is executed or the
21   * asterisk server is started.<br>
22   * It is implemented in <code>manager.c</code>
23   * 
24   * @author srt
25   * @version $Id: ReloadEvent.java,v 1.2 2005/02/23 22:50:58 srt Exp $
26   */
27  public class ReloadEvent extends ManagerEvent
28  {
29      /***
30       * Serializable version identifier
31       */
32      private static final long serialVersionUID = 7503005587022499819L;
33      private String message;
34  
35      /***
36       * @param source
37       */
38      public ReloadEvent(Object source)
39      {
40          super(source);
41      }
42  
43      /***
44       * Always returns "Reload Requested".
45       */
46      public String getMessage()
47      {
48          return message;
49      }
50  
51      public void setMessage(String message)
52      {
53          this.message = message;
54      }
55  }