public class StatusAction extends AbstractManagerAction implements EventGeneratingAction
For each active channel a StatusEvent is generated. After the state of all channels has been reported a StatusCompleteEvent is generated.
StatusEvent
,
StatusCompleteEvent
,
Serialized FormConstructor and Description |
---|
StatusAction()
Creates a new StatusAction that retrieves the status of all channels.
|
StatusAction(String channel)
Creates a new StatusAction that retrieves the status of the given channel.
|
Modifier and Type | Method and Description |
---|---|
String |
getAction()
Returns the name of this action, i.e.
|
Class<? extends ResponseEvent> |
getActionCompleteEventClass()
Returns the event type that indicates that Asterisk is finished sending
response events for this action.
|
String |
getChannel()
Returns the name of the channel.
|
String |
getVariables() |
void |
setChannel(String channel)
Sets the name of the channel.
|
void |
setVariables(List<String> variables)
Sets the names of the channel variables to return for each reported channel.
|
void |
setVariables(String variables)
Sets the names of the channel variables to return for each reported channel.
|
getActionId, setActionId, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getActionId, setActionId
public StatusAction()
public StatusAction(String channel)
Available since Asterisk 1.6.
channel
- name of the channel.public String getAction()
getAction
in interface ManagerAction
getAction
in class AbstractManagerAction
public Class<? extends ResponseEvent> getActionCompleteEventClass()
EventGeneratingAction
getActionCompleteEventClass
in interface EventGeneratingAction
ResponseEvent
public String getChannel()
Available since Asterisk 1.6.
null
for all channels.public void setChannel(String channel)
Available since Asterisk 1.6.
channel
- the name of the channel or null
for all channels.public String getVariables()
public void setVariables(String variables)
Available since Asterisk 1.6.
variables
- comma separated list of variables to return for each reported channel.StatusEvent.getVariables()
public void setVariables(List<String> variables)
Available since Asterisk 1.6.
variables
- list of variables to return for each reported channel.StatusEvent.getVariables()
Copyright © 2004–2017. All rights reserved.