|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
net.sf.asterisk.manager.event.ManagerEvent
net.sf.asterisk.manager.event.ResponseEvent
net.sf.asterisk.manager.event.AgentsEvent
public class AgentsEvent
An AgentsEvent is triggered for each agent in response to an AgentsAction.
Available since Asterisk 1.2
AgentsAction,
Serialized Form| Field Summary |
|---|
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
AgentsEvent(java.lang.Object source)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getAgent()
Returns the agentid. |
java.lang.String |
getLoggedInChan()
Returns the name of channel this agent logged in from. |
java.lang.Long |
getLoggedInTime()
Returns the time (in seconds since 01/01/1970) when the agent logged in. |
java.lang.String |
getName()
Returns the name of this agent. |
java.lang.String |
getStatus()
Returns the status of this agent. This is one of "AGENT_LOGGEDOFF" Agent isn't logged in "AGENT_IDLE" Agent is logged in, and waiting for call "AGENT_ONCALL" Agent is logged in, and on a call "AGENT_UNKNOWN" Don't know anything about agent. |
java.lang.String |
getTalkingTo()
Returns the numerical Caller*ID of the channel this agent is talking to. |
void |
setAgent(java.lang.String agent)
Sets the agentid. |
void |
setLoggedInChan(java.lang.String loggedInChan)
Sets the name of channel this agent logged in from. |
void |
setLoggedInTime(java.lang.Long loggedInTime)
Sets the time when the agent logged in. |
void |
setName(java.lang.String name)
Sets the name of this agent. |
void |
setStatus(java.lang.String status)
Sets the status of this agent. |
void |
setTalkingTo(java.lang.String talkingTo)
Sets the numerical Caller*ID of the channel this agent is talking to. |
| 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 AgentsEvent(java.lang.Object source)
source - | Method Detail |
|---|
public java.lang.String getAgent()
public void setAgent(java.lang.String agent)
public java.lang.String getName()
public void setName(java.lang.String name)
name - the name of this agentpublic java.lang.String getStatus()
public void setStatus(java.lang.String status)
status - the status of this agentpublic java.lang.String getLoggedInChan()
public void setLoggedInChan(java.lang.String loggedInChan)
loggedInChan - the name of channel this agent logged in frompublic java.lang.Long getLoggedInTime()
public void setLoggedInTime(java.lang.Long loggedInTime)
loggedInTime - the time when the agent logged inpublic java.lang.String getTalkingTo()
public void setTalkingTo(java.lang.String talkingTo)
talkingTo - the numerical Caller*ID of the channel this agent is
talking to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||