net.sf.asterisk.manager.action
Class SIPPeersAction

java.lang.Object
  extended by net.sf.asterisk.manager.action.AbstractManagerAction
      extended by net.sf.asterisk.manager.action.SIPPeersAction
All Implemented Interfaces:
java.io.Serializable, EventGeneratingAction, ManagerAction

public class SIPPeersAction
extends AbstractManagerAction
implements EventGeneratingAction

Retrieves a list of all defined SIP peers.
For each peer that is found a PeerEntryEvent is sent by Asterisk containing the details. When all peers have been reported a PeerlistCompleteEvent is sent.
Available since Asterisk 1.2

Since:
0.2
Version:
$Id: SIPPeersAction.java,v 1.2 2005/08/07 16:55:18 srt Exp $
Author:
srt
See Also:
PeerEntryEvent, PeerlistCompleteEvent, Serialized Form

Constructor Summary
SIPPeersAction()
          Creates a new SIPPeersAction.
 
Method Summary
 java.lang.String getAction()
          Returns the name of the action.
 java.lang.Class getActionCompleteEventClass()
          Returns the event type that indicates that Asterisk is finished sending response events for this action.
 
Methods inherited from class net.sf.asterisk.manager.action.AbstractManagerAction
getActionId, setActionId, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.sf.asterisk.manager.action.ManagerAction
getActionId, setActionId
 

Constructor Detail

SIPPeersAction

public SIPPeersAction()
Creates a new SIPPeersAction.

Method Detail

getAction

public java.lang.String getAction()
Description copied from interface: ManagerAction
Returns the name of the action.

Specified by:
getAction in interface ManagerAction
Specified by:
getAction in class AbstractManagerAction

getActionCompleteEventClass

public java.lang.Class getActionCompleteEventClass()
Description copied from interface: EventGeneratingAction
Returns the event type that indicates that Asterisk is finished sending response events for this action.

Specified by:
getActionCompleteEventClass in interface EventGeneratingAction
Returns:
a Class that is an instance of ResponseEvent.
See Also:
ResponseEvent


Copyright © 2004-2005 Stefan Reuter. All Rights Reserved.