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.action;
18  
19  import net.sf.asterisk.manager.event.ZapShowChannelsCompleteEvent;
20  
21  /***
22   * The ZapShowChannelsAction requests the state of all zap channels.<br>
23   * For each zap channel a ZapShowChannelsEvent is generated. After all zap
24   * channels have been listed a ZapShowChannelsCompleteEvent is generated.
25   * 
26   * @see net.sf.asterisk.manager.event.ZapShowChannelsEvent
27   * @see net.sf.asterisk.manager.event.ZapShowChannelsCompleteEvent
28   * @author srt
29   * @version $Id: ZapShowChannelsAction.java,v 1.4 2005/08/07 17:10:29 srt Exp $
30   */
31  public class ZapShowChannelsAction extends AbstractManagerAction
32          implements
33              EventGeneratingAction
34  {
35      /***
36       * Serializable version identifier
37       */
38      private static final long serialVersionUID = 8697000330085766825L;
39  
40      /***
41       * Creates a new ZapShowChannelsAction.
42       */
43      public ZapShowChannelsAction()
44      {
45  
46      }
47  
48      /***
49       * Returns the name of this action, i.e. "ZapShowChannels".
50       */
51      public String getAction()
52      {
53          return "ZapShowChannels";
54      }
55  
56      public Class getActionCompleteEventClass()
57      {
58          return ZapShowChannelsCompleteEvent.class;
59      }
60  }