外观
lib-repl 库参考
原文: https://finproducts.atlassian.net/wiki/spaces/JIDD3/pages/34793259349/FIN+5.3.1+lib-repl 中文整理基于 FIN 5.3.1
导读: 复制支持
以下为 API 参考,保留英文以便对照源码;目录已列出(英文标题便于检索);概述已尽量中译。
目录(导读)
- lib
- meta
- funcs
- views
- def
- replicaBackup(projName)
- replicaBackupCleanup(projName, dateOrAge)
- replicaBackupDelete(projName, ts)
- replicaBackups(projName)
- src
概述(中译)
复制支持
API 正文(英文)
funcs
| replicaBackup | Asynchronously kick off a new local backup for given replica |
| replicaBackupCleanup | Delete all local replica backups older than the given duration or date |
| replicaBackupDelete | Delete a local replica backup file by its timestamp |
| replicaBackups | List the local replica backups on this machine |
views
| replicas | Fresco UI view |
def
func:replicaBackup
replicaBackup(projName)
Asynchronously kick off a new local backup for given replica. Requires admin permission. Return a future to track completion of the backup. The future's result value is subject to change. See Replication.
Examples:
replicaBackup("myProj")meta
| admin | ✓ |
| confirm | |
| def | func:replicaBackup |
| disKey | ui::backup |
| is | func |
| lib | lib:repl |
| name | replicaBackup |
supertypes
| feature | Feature namespace of definitions formatted as feature:name |
| func | Axon function |
def
func:replicaBackupCleanup
replicaBackupCleanup(projName, dateOrAge)
Delete all local replica backups older than the given duration or date. Requires admin permission. See Replication.
Examples:
replicaBackupCleanup("myProj", 15day) // delete all backups older than 15 days
replicaBackupCleanup("myProj", 2017-11-15) // delete all backups before given datemeta
| admin | ✓ |
| def | func:replicaBackupCleanup |
| is | func |
| lib | lib:repl |
| name | replicaBackupCleanup |
supertypes
| feature | Feature namespace of definitions formatted as feature:name |
| func | Axon function |
def
func:replicaBackupDelete
replicaBackupDelete(projName, ts)
Delete a local replica backup file by its timestamp. Return true if backup found and deleted or false otherwise. Requires admin permission. See Replication.
meta
| admin | ✓ |
| confirm | |
| def | func:replicaBackupDelete |
| disKey | ui::delete |
| is | func |
| lib | lib:repl |
| multi | ✓ |
| name | replicaBackupDelete |
| select | ✓ |
supertypes
| feature | Feature namespace of definitions formatted as feature:name |
| func | Axon function |
def
func:replicaBackups
replicaBackups(projName)
List the local replica backups on this machine. See Replication.
meta
| admin | ✓ |
| def | func:replicaBackups |
| is | func |
| lib | lib:repl |
| name | replicaBackups |
supertypes
| feature | Feature namespace of definitions formatted as feature:name |
| func | Axon function |
def
view:replicas
Fresco UI view. See Views
meta
| appName | host |
| def | view:replicas |
| disKey | ui::replicas |
| icon | view |
| is | view |
| lib | lib:repl |
| su | ✓ |
supertypes
| feature | Feature namespace of definitions formatted as feature:name |
| view | Fresco UI view |
src
view: {inherit:"table"}
debug: {action:"replicaDebug"}
ping: {action:"replicaPing" noFlash}
sync: {action:"replicaSync" noFlash}
cancel: {action:"replicaCancel" noFlash}
mode: {action:"replicaMode"}
config: {action:"replicaConfig"}
data: {expr:"replicas()"}