|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectamip.api.highlevel.Config
public class Config
Provides easy access to AMIP configuration.
Field Summary | |
---|---|
static java.lang.String |
DISABLE_TRANSPORTS
|
static java.lang.String |
DUMP_END
|
static java.lang.String |
OUTPUT_COMMAND
|
Method Summary | |
---|---|
java.util.Map |
getDump()
Uses cfgdump API command to dump all the config options and values. |
java.lang.String |
getOption(java.lang.String option)
Gets AMIP config option value. |
void |
load()
Loads config. |
void |
save()
Saves config. |
void |
setOption(java.lang.String option,
java.lang.String value)
Sets AMIP config option. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DUMP_END
public static final java.lang.String OUTPUT_COMMAND
public static final java.lang.String DISABLE_TRANSPORTS
Method Detail |
---|
public void setOption(java.lang.String option, java.lang.String value) throws GeneralClientException
option
- option name.value
- option value.
GeneralClientException
public java.lang.String getOption(java.lang.String option) throws GeneralClientException
option
- option to get.
GeneralClientException
public void save() throws GeneralClientException
GeneralClientException
public void load() throws GeneralClientException
save()
method, AMIP loads it automatically when timestamp changes.
GeneralClientException
public java.util.Map getDump() throws GeneralClientException, java.lang.InterruptedException
GeneralClientException
java.lang.InterruptedException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |