|
eWON JTK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ewon.ewonitf.StorageControl
public class StorageControl
Manage storage in the eWON (flash and ram). this class provides function to erase and format eWON informations and file system.
Field Summary | |
---|---|
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 Summary | |
---|---|
StorageControl()
|
Method Summary | |
---|---|
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 |
eraseImpl(int eraseElementId)
|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int SYS_PARTITION
formatPartition
to erase the /sys partition
public static final int USR_PARTITION
formatPartition
to erase the /usr partition
public 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.
Constructor Detail |
---|
public StorageControl()
Method Detail |
---|
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.
public static void eraseImpl(int eraseElementId)
|
eWON JTK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |