|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.asterisk.manager.action.AbstractManagerAction net.sf.asterisk.manager.action.DBGetAction
public class DBGetAction
Retrieves an entry in the Asterisk database for a given family and key.
If an entry is found a DBGetResponseEvent is sent by Asterisk containing the
value, otherwise a ManagerError indicates that no entry matches.
Available since Asterisk 1.2
DBGetResponseEvent
,
Serialized FormConstructor Summary | |
---|---|
DBGetAction()
Creates a new empty DBGetAction. |
|
DBGetAction(java.lang.String family,
java.lang.String key)
Creates a new DBGetAction that retrieves the value of the database entry with the given key in the given family. |
Method Summary | |
---|---|
java.lang.String |
getAction()
Returns the name of the action. |
java.lang.Class |
getActionCompleteEventClass()
Returns the event type that indicates that Asterisk is finished sending response events for this action. |
java.lang.String |
getFamily()
Returns the family of the key. |
java.lang.String |
getKey()
Returns the the key of the entry to retrieve. |
void |
setFamily(java.lang.String family)
Sets the family of the key. |
void |
setKey(java.lang.String key)
Sets the key of the entry to retrieve. |
Methods inherited from class net.sf.asterisk.manager.action.AbstractManagerAction |
---|
getActionId, setActionId, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.sf.asterisk.manager.action.ManagerAction |
---|
getActionId, setActionId |
Constructor Detail |
---|
public DBGetAction()
public DBGetAction(java.lang.String family, java.lang.String key)
family
- the family of the keykey
- the key of the entry to retrieveMethod Detail |
---|
public java.lang.String getAction()
ManagerAction
getAction
in interface ManagerAction
getAction
in class AbstractManagerAction
public java.lang.String getFamily()
public void setFamily(java.lang.String family)
family
- the family of the key.public java.lang.String getKey()
public void setKey(java.lang.String key)
key
- the key of the entry to retrieve.public java.lang.Class getActionCompleteEventClass()
EventGeneratingAction
getActionCompleteEventClass
in interface EventGeneratingAction
ResponseEvent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |