dataMgr:importerParser: rename 'depart' mode as 'export'

'export' does match the meaning of this mode's action better.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
dataMgr:importerParser: extend '-D' to drop many tables.

Extend the functionality for option '-D' to drop many tables.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
dataMgr:whImporter: fix appending wrong records.

1) Fix a bug that appendRecordsOnly() appended records that
   were earlier than the last record of data table.
2) Rename appendUpdateRecords() to updateRecordsFromFile().

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
regression: exit on meeting unknown strategy.

Exit regression execution while meeting unknown strategy.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
regression: add pattern matching to extend filter usage

Add pattern matching using '*' to extend filter usage, which
is very similar to use '*' in commandline.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
regression: add support to list possible tests with filters

Add support to list tests with filters, this means option '-l'
could be used with option '-f' to only list the possbile tests
matching filters.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
regression: fix bug that can not list tests without filters

Fix a bug that can not list all possible regression tests without
specifying filters using '-f'.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
dataMgr:dataParser: add parser support for Data subsystem.

Add options parser support for Data subsystem.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
win: fix a bug that 'importer' caused bad promption

Fix a bug that 'importer' caused 'Unknown subsystem' promption.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
dataMgr:dataParser: disable '-c' be used with other options.

Disabled '-c' option to be used with other options.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
dataMgr:dataParser: adjust the order to handle '-r'

Adjust the order to handle '-r' option, which may help output
more clearly.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
dataMgr:data: update M() method

Update M() method to directly calculate Moveing Average Value
using SQL to improve performance.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
dataMgr:data: update M() method back to old version

New version for M() using SQL calculation rarely causes
incorrectness, so update it back.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
dataMgr:data: Argument name mismatch

The argument filed of M* should be field.

Signed-off-by: GuofengLiu <lgf612@sina.com>
dataMgr:importerParser: add option '-l'

Add option '-l' to list all tables in database.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
dataMgr:dataParser: fix a promption typo for option '-L'

Fix a promption typo in printLowest() for option '-L'.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
strategy:turtle: adjust signal judgement methods

Adjust the arguments for hitShortSignal() and hitLongSignal().
This will benefit adding new functionalities and being used in
CTP in near future.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
strategy:futures: add runtime assistant support

Add runtime assistant support, which enables to export useful
imformation to users or do judgements if certain conditions
are metched.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
regression: support runtime assistant

1) Support assistant functionality at run time.
2) Change '-a' to support assistant.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>