|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.asteriskjava.manager.action.AbstractManagerAction
org.asteriskjava.manager.action.ModuleLoadAction
public class ModuleLoadAction
The ModuleLoadAction loads, unloads or reloads Asterisk modules.
Available since Asterisk 1.6
Field Summary | |
---|---|
static java.lang.String |
LOAD_TYPE_LOAD
|
static java.lang.String |
LOAD_TYPE_RELOAD
|
static java.lang.String |
LOAD_TYPE_UNLOAD
|
static java.lang.String |
SUBSYSTEM_CDR
|
static java.lang.String |
SUBSYSTEM_DNSMGR
|
static java.lang.String |
SUBSYSTEM_ENUM
|
static java.lang.String |
SUBSYSTEM_EXTCONFIG
|
static java.lang.String |
SUBSYSTEM_HTTP
|
static java.lang.String |
SUBSYSTEM_MANAGER
|
static java.lang.String |
SUBSYSTEM_RTP
|
Constructor Summary | |
---|---|
ModuleLoadAction()
Creates a new ModuleLoadAction. |
|
ModuleLoadAction(java.lang.String module,
java.lang.String loadType)
Creates a new ModuleLoadAction with the given parameters. |
Method Summary | |
---|---|
java.lang.String |
getAction()
Returns the name of this action, i.e. |
java.lang.String |
getLoadType()
Returns the operation to perform. |
java.lang.String |
getModule()
Returns the name of the module or subsystem to perform the operation on. |
void |
setLoadType(java.lang.String loadType)
Sets the operation to perform ("load", "unload" or "reload"). |
void |
setModule(java.lang.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. |
Methods inherited from class org.asteriskjava.manager.action.AbstractManagerAction |
---|
getActionId, setActionId, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SUBSYSTEM_CDR
public static final java.lang.String SUBSYSTEM_ENUM
public static final java.lang.String SUBSYSTEM_DNSMGR
public static final java.lang.String SUBSYSTEM_EXTCONFIG
public static final java.lang.String SUBSYSTEM_MANAGER
public static final java.lang.String SUBSYSTEM_RTP
public static final java.lang.String SUBSYSTEM_HTTP
public static final java.lang.String LOAD_TYPE_LOAD
public static final java.lang.String LOAD_TYPE_UNLOAD
public static final java.lang.String LOAD_TYPE_RELOAD
Constructor Detail |
---|
public ModuleLoadAction()
public ModuleLoadAction(java.lang.String module, java.lang.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").Method Detail |
---|
public java.lang.String getAction()
getAction
in interface ManagerAction
getAction
in class AbstractManagerAction
public java.lang.String getModule()
public void setModule(java.lang.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_HTTP
public java.lang.String getLoadType()
public void setLoadType(java.lang.String loadType)
loadType
- the operation to perform ("load", "unload" or "reload").LOAD_TYPE_LOAD
,
LOAD_TYPE_UNLOAD
,
LOAD_TYPE_RELOAD
|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |