public class ModuleLoadAction extends AbstractManagerAction
Available since Asterisk 1.6
| Modifier and Type | Field and Description |
|---|---|
static String |
LOAD_TYPE_LOAD |
static String |
LOAD_TYPE_RELOAD |
static String |
LOAD_TYPE_UNLOAD |
static String |
SUBSYSTEM_CDR |
static String |
SUBSYSTEM_DNSMGR |
static String |
SUBSYSTEM_ENUM |
static String |
SUBSYSTEM_EXTCONFIG |
static String |
SUBSYSTEM_HTTP |
static String |
SUBSYSTEM_MANAGER |
static String |
SUBSYSTEM_RTP |
| Constructor and Description |
|---|
ModuleLoadAction()
Creates a new ModuleLoadAction.
|
ModuleLoadAction(String module,
String loadType)
Creates a new ModuleLoadAction with the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAction()
Returns the name of this action, i.e.
|
String |
getLoadType()
Returns the operation to perform.
|
String |
getModule()
Returns the name of the module or subsystem to perform the operation on.
|
void |
setLoadType(String loadType)
Sets the operation to perform ("load", "unload" or "reload").
|
void |
setModule(String module)
Sets the name of the module including the ".so" extension or subsystem ("cdr", "enum", "dnsmgr",
"extconfig", "manager", "rtp" or "http") to perform the operation on.
|
getActionId, setActionId, toStringpublic static final String SUBSYSTEM_CDR
public static final String SUBSYSTEM_ENUM
public static final String SUBSYSTEM_DNSMGR
public static final String SUBSYSTEM_EXTCONFIG
public static final String SUBSYSTEM_MANAGER
public static final String SUBSYSTEM_RTP
public static final String SUBSYSTEM_HTTP
public static final String LOAD_TYPE_LOAD
public static final String LOAD_TYPE_UNLOAD
public static final String LOAD_TYPE_RELOAD
public ModuleLoadAction()
public ModuleLoadAction(String module, String loadType)
module - the name of the module including the ".so" extension or subsystem
to perform the operation on or null combined with loadType "reload"
to reload all modules.loadType - the operation to perform ("load", "unload" or "reload").public String getAction()
getAction in interface ManagerActiongetAction in class AbstractManagerActionpublic String getModule()
public void setModule(String module)
module - the name of the module including the ".so" extension or subsystem
to perform the operation on or null combined with loadType "reload"
to reload all modules.SUBSYSTEM_CDR,
SUBSYSTEM_ENUM,
SUBSYSTEM_DNSMGR,
SUBSYSTEM_EXTCONFIG,
SUBSYSTEM_MANAGER,
SUBSYSTEM_RTP,
SUBSYSTEM_HTTPpublic String getLoadType()
public void setLoadType(String loadType)
loadType - the operation to perform ("load", "unload" or "reload").LOAD_TYPE_LOAD,
LOAD_TYPE_UNLOAD,
LOAD_TYPE_RELOADCopyright © 2004–2024. All rights reserved.