|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject net.sf.asterisk.manager.event.ManagerEvent net.sf.asterisk.manager.event.ResponseEvent net.sf.asterisk.manager.event.PeerEntryEvent
public class PeerEntryEvent
A PeerEntryEvent is triggered in response to a SIPPeersAction or SIPShowPeerAction and contains
information about a peer.
It is implemented in channels/chan_sip.c
Field Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
PeerEntryEvent(java.lang.Object source)
Creates a new instance. |
Method Summary | |
---|---|
java.lang.Boolean |
getAcl()
|
java.lang.String |
getChannelType()
For SIP peers this is "SIP". |
java.lang.String |
getChanObjectType()
For SIP peers this is either "peer" or "user". |
java.lang.Boolean |
getDynamic()
|
java.lang.String |
getIpAddress()
Returns the IP address of the peer. |
int |
getIpPort()
|
java.lang.Boolean |
getNatSupport()
|
java.lang.String |
getObjectName()
|
java.lang.String |
getStatus()
Returns the status of this peer. For SIP peers this is one of: "UNREACHABLE" "LAGGED (%d ms)" "OK (%d ms)" "UNKNOWN" "Unmonitored" |
void |
setAcl(java.lang.Boolean acl)
|
void |
setChannelType(java.lang.String channelType)
|
void |
setChanObjectType(java.lang.String chanObjectType)
|
void |
setDynamic(java.lang.Boolean dynamic)
|
void |
setIpAddress(java.lang.String ipAddress)
Sets the IP address of the peer. |
void |
setIpPort(int ipPort)
|
void |
setNatSupport(java.lang.Boolean natSupport)
|
void |
setObjectName(java.lang.String objectName)
|
void |
setStatus(java.lang.String status)
Sets the status of this peer. |
Methods inherited from class net.sf.asterisk.manager.event.ResponseEvent |
---|
getActionId, getInternalActionId, setActionId, setInternalActionId |
Methods inherited from class net.sf.asterisk.manager.event.ManagerEvent |
---|
getDateReceived, getPrivilege, setDateReceived, setPrivilege, toString |
Methods inherited from class java.util.EventObject |
---|
getSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PeerEntryEvent(java.lang.Object source)
source
- Method Detail |
---|
public java.lang.String getChannelType()
public void setChannelType(java.lang.String channelType)
public java.lang.String getObjectName()
public void setObjectName(java.lang.String objectName)
public java.lang.String getChanObjectType()
public void setChanObjectType(java.lang.String chanObjectType)
public java.lang.String getIpAddress()
public void setIpAddress(java.lang.String ipAddress)
ipAddress
- the IP address of the peer.public int getIpPort()
public void setIpPort(int ipPort)
public java.lang.Boolean getDynamic()
public void setDynamic(java.lang.Boolean dynamic)
public java.lang.Boolean getNatSupport()
public void setNatSupport(java.lang.Boolean natSupport)
public java.lang.Boolean getAcl()
public void setAcl(java.lang.Boolean acl)
public java.lang.String getStatus()
public void setStatus(java.lang.String status)
status
- the status of this peer.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |