public class StorageControl extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ALARM_RECORDING
use with
eraseRecording to erase the alarm recording file. |
static int |
ALL_RECORDING
use with
eraseRecording to erase all circular recording files. |
static int |
EVENT_RECORDING
use with
eraseRecording to erase the events recording file. |
static int |
SYS_PARTITION
use with
formatPartition to erase the /sys partition |
static int |
TAG_RECORDING
use with
eraseRecording to erase the incremental recording file. |
static int |
USR_PARTITION
use with
formatPartition to erase the /usr partition |
Constructor and Description |
---|
StorageControl() |
Modifier and Type | Method and Description |
---|---|
static void |
clearPendingActions()
See
ScheduledActionManager.clearPendingActions() .This operation is also executed when SysControlBlock.saveBlock(boolean) is called
with the saveToFlash set to true. |
static void |
defaultComConfig()
This function restores the "communication" config to its default values.
REM: the eWON IP address, netmask and gateway are NOT changed. REM: the configuration is NOT saved to flash, you must call saveConfig
to save it. |
static void |
eraseRecordings(int recordings)
Erase the given recordings.
|
static void |
formatPartitions(int partitions)
Format the given partition.
REM: rebooting after /sys partition was erased cause default config to be reloaded. |
static void |
saveConfig()
Save the current active configuration.
|
public static final int SYS_PARTITION
formatPartition
to erase the /sys partitionpublic static final int USR_PARTITION
formatPartition
to erase the /usr partitionpublic static final int ALL_RECORDING
eraseRecording
to erase all circular recording files.public static final int TAG_RECORDING
eraseRecording
to erase the incremental recording file.public static final int EVENT_RECORDING
eraseRecording
to erase the events recording file.public static final int ALARM_RECORDING
eraseRecording
to erase the alarm recording file.public static void formatPartitions(int partitions)
saveConfig
is called after /sys partition was erased, the current config
is saved to /sys and next reboot will maintain current config.partitions
- Must be SYS_PARTITION
or USR_PARTITION
public static void eraseRecordings(int recordings)
recordings
- combinaison of TAG_RECORDING
,
EVENT_RECORDING
, ALARM_RECORDING
.ALL_RECORDING
public static void saveConfig() throws EWException
EWException
public static void clearPendingActions()
ScheduledActionManager.clearPendingActions()
.SysControlBlock.saveBlock(boolean)
is called
with the saveToFlash
set to true.public static void defaultComConfig()
saveConfig
to save it.