Update of /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/manager/action
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21754/src/java/net/sf/asterisk/manager/action
Added Files:
AgentsAction.java
Log Message:
Added AgentsAction
Still needs a fix for Asterisk (include ActionId in ResponseEvent and send AgentsCompleteEvent)
--- NEW FILE: AgentsAction.java ---
/*
* Copyright 2004-2005 Stefan Reuter
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package net.sf.asterisk.manager.action;
/**
* The AgentsAction requests the state of all agents.<br>
* For each agent an AgentsEvent is generated. After the state of all agents has been
* reported a ...CompleteEvent is generated.<br>
* Available since Asterisk 1.2
*
* @see net.sf.asterisk.manager.event.AgentsEvent
* @see net.sf.asterisk.manager.event.AgentsCompleteEvent
*
* @author srt
* @version $Id: AgentsAction.java,v 1.1 2005/07/15 12:55:31 srt Exp $
* @since 0.2
*/
public class AgentsAction extends ManagerAction
{
/**
* Serializable version identifier
*/
static final long serialVersionUID = -320228893513973367L;
/**
* Returns the name of this action, i.e. "Agents".
*/
public String getAction()
{
return "Agents";
}
}
|