Asterisk-Java

org.asteriskjava.manager.event
Class AgentCallbackLogoffEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.asteriskjava.manager.event.ManagerEvent
          extended by org.asteriskjava.manager.event.AgentCallbackLogoffEvent
All Implemented Interfaces:
java.io.Serializable

public class AgentCallbackLogoffEvent
extends ManagerEvent

An AgentCallbackLogoffEvent is triggered when an agent that previously logged in using AgentCallbackLogin is logged of.

It is implemented in channels/chan_agent.c

Version:
$Id: AgentCallbackLogoffEvent.java 938 2007-12-31 03:23:38Z srt $
Author:
srt
See Also:
AgentCallbackLoginEvent, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AgentCallbackLogoffEvent(java.lang.Object source)
           
 
Method Summary
 java.lang.String getAgent()
          Returns the name of the agent that logged off.
 java.lang.String getLoginChan()
           
 java.lang.Long getLoginTime()
           
 java.lang.String getReason()
          Returns the reason for the logoff.
 java.lang.String getUniqueId()
           
 void setAgent(java.lang.String agent)
          Sets the name of the agent that logged off.
 void setLoginChan(java.lang.String loginChan)
           
 void setLoginTime(java.lang.Long loginTime)
           
 void setReason(java.lang.String reason)
          Sets the reason for the logoff.
 void setUniqueId(java.lang.String uniqueId)
           
 
Methods inherited from class org.asteriskjava.manager.event.ManagerEvent
getDateReceived, getPrivilege, getServer, getTimestamp, setDateReceived, setPrivilege, setServer, setTimestamp, 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

AgentCallbackLogoffEvent

public AgentCallbackLogoffEvent(java.lang.Object source)
Parameters:
source -
Method Detail

getAgent

public java.lang.String getAgent()
Returns the name of the agent that logged off.


setAgent

public void setAgent(java.lang.String agent)
Sets the name of the agent that logged off.


getLoginChan

public java.lang.String getLoginChan()

setLoginChan

public void setLoginChan(java.lang.String loginChan)

getLoginTime

public java.lang.Long getLoginTime()

setLoginTime

public void setLoginTime(java.lang.Long loginTime)

getReason

public java.lang.String getReason()
Returns the reason for the logoff. The reason is set to Autologoff if the agent has been logged off due to not answering the phone in time. Autologoff is configured by setting autologoff to the appropriate number of seconds in agents.conf.


setReason

public void setReason(java.lang.String reason)
Sets the reason for the logoff.


getUniqueId

public java.lang.String getUniqueId()

setUniqueId

public void setUniqueId(java.lang.String uniqueId)

Asterisk-Java

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