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 PeerlistCompleteEvent is triggered after the details of all peers has been reported in response
21   * to an SIPPeersAction or SIPShowPeerAction.<br>
22   * Available since Asterisk 1.2
23   * 
24   * @see net.sf.asterisk.manager.event.PeerEntryEvent
25   * @see net.sf.asterisk.manager.action.SIPPeersAction
26   * @see net.sf.asterisk.manager.action.SIPShowPeerAction
27   * @author srt
28   * @version $Id: PeerlistCompleteEvent.java,v 1.1 2005/07/18 14:53:08 srt Exp $
29   * @since 0.2
30   */
31  public class PeerlistCompleteEvent extends ResponseEvent
32  {
33      /***
34       * Serial version identifier
35       */
36      private static final long serialVersionUID = -1177773673509373296L;
37      private Integer listItems;
38  
39      /***
40       * Creates a new instance.
41       * 
42       * @param source
43       */
44      public PeerlistCompleteEvent(Object source)
45      {
46          super(source);
47      }
48  
49      /***
50       * Returns the number of PeerEvents that have been reported.
51       * 
52       * @return the number of PeerEvents that have been reported.
53       */
54      public Integer getListItems()
55      {
56          return listItems;
57      }
58  
59      /***
60       * Sets the number of PeerEvents that have been reported.
61       * 
62       * @param listItems the number of PeerEvents that have been reported.
63       */
64      public void setListItems(Integer listItems)
65      {
66          this.listItems = listItems;
67      }
68  }