外观
lib-cluster 库参考
原文: https://finproducts.atlassian.net/wiki/spaces/JIDD3/pages/34793521338/FIN+5.3.1+lib-cluster 中文整理基于 FIN 5.3.1
导读: Arcbeam 集群管理
以下为 API 参考,保留英文以便对照源码;目录已列出(英文标题便于检索);概述已尽量中译。
目录(导读)
概述(中译)
Arcbeam 集群管理
API 正文(英文)
tags
| isolate | Isolate this node from making inbound requests |
| node | Cluster node |
| nodeId | Node id as string without the n: prefix |
| nodeRef | Reference to a node in the cluster database |
| nodeStatus | Current status of a cluster node |
| nodeType | Is node haxall or skyspark |
| pubKey | Public key as encoded string |
views
| clusterNodes | Manage the local database of cluster nodes |
| clusterSettings | Settings for the cluster system module |
| debugCluster | Debug cluster Arcbeam protocol |
def
isolate
Isolate this node from making inbound requests
meta
| def | isolate |
| is | marker |
| lib | lib:cluster |
| tagOn | arcbeamConn, node |
supertypes
| marker | Marker labels a dict with typing information |
def
node
Cluster node. Nodes are managed at the host level in the cluster database.
meta
| def | node |
| icon | host |
| is | entity |
| lib | lib:cluster |
| mandatory | ✓ |
supertypes
| marker | Marker labels a dict with typing information |
| entity | Top-level dicts with a unique identifier |
tags
| dis | Display name for an entity |
| id | Defines the unique identifier of an entity in system using a ref value type |
| isolate | Isolate this node from making inbound requests |
| nodeId | Node id as string without the n: prefix |
| nodeStatus | Current status of a cluster node |
| nodeType | Is node haxall or skyspark |
| pubKey | Public key as encoded string |
def
nodeId
Node id as string without the n: prefix
meta
| def | nodeId |
| is | str |
| lib | lib:cluster |
| tagOn | arcbeamConn, node |
supertypes
| val | Data value type |
| scalar | Scalar is an atomic value kind |
| str | Unicode string of characters |
def
nodeRef
Reference to a node in the cluster database.
meta
| def | nodeRef |
| is | ref |
| lib | lib:cluster |
| of | node |
supertypes
| val | Data value type |
| scalar | Scalar is an atomic value kind |
| ref | Reference to an entity |
def
nodeStatus
Current status of a cluster node
meta
| def | nodeStatus |
| enum | See below |
| is | str |
| lib | lib:cluster |
| tagOn | node |
| transient | ✓ |
enum
| ok | All is okay |
| fault | Configuration problem |
| down | Communication or network problem |
| disabled | Manual disable |
| unapproved | Node not approved yet |
| unknown | Status not computed yet |
supertypes
| val | Data value type |
| scalar | Scalar is an atomic value kind |
| str | Unicode string of characters |
def
nodeType
Is node haxall or skyspark; do not change this tag
meta
| def | nodeType |
| enum | See below |
| is | str |
| lib | lib:cluster |
| tagOn | node |
enum
| haxall | Haxall node via hxCluster lib |
| skyspark | SkySpark cluster host node via ClusterMod |
| skysparkProj | SkySpark project node via ArcbeamExt |
| niagara | Niagara node via BArcbeamService |
supertypes
| val | Data value type |
| scalar | Scalar is an atomic value kind |
| str | Unicode string of characters |
def
pubKey
Public key as encoded string
meta
| def | pubKey |
| is | str |
| lib | lib:cluster |
| multiLine | ✓ |
| tagOn | arcbeamConn, node |
supertypes
| val | Data value type |
| scalar | Scalar is an atomic value kind |
| str | Unicode string of characters |
def
view:clusterNodes
Manage the local database of cluster nodes
meta
| appName | host |
| def | view:clusterNodes |
| disKey | ui::cluster |
| icon | view |
| is | view |
| lib | lib:cluster |
| su | ✓ |
supertypes
| feature | Feature namespace of definitions formatted as feature:name |
| view | Fresco UI view |
src
view: {inherit:"table"}
local: {action:"clusterLocal" uiInput:"uiMisc::ClusterActions.local"}
debug: {action:"clusterDebug" select}
new: {action:"clusterNew"}
edit: {action:"clusterEdit" select}
delete: {action:"clusterDelete" select confirm: {icon:"warn" disKey:"ui::clusterNodeDeleteConfirm" detailsKey:"ui::clusterNodeDeleteConfirmDetails"}}
enable: {action:"clusterEnable" select}
disable: {action:"clusterDisable" select}
close: {action:"clusterClose" noFlash select}
approve: {action:"clusterApprove" select}
data: {expr:"clusterReadAll()"}def
view:clusterSettings
Settings for the cluster system module
meta
| appName | settings |
| def | view:clusterSettings |
| disKey | ui::cluster |
| icon | view |
| is | view |
| lib | lib:cluster |
| su | ✓ |
supertypes
| feature | Feature namespace of definitions formatted as feature:name |
| view | Fresco UI view |
src
view: {inherit:"form"}
submit: {action:"hostCommit"}
data: {expr:"hostSettings(\"cluster\")"}def
view:debugCluster
Debug cluster Arcbeam protocol
meta
| appName | debug |
| def | view:debugCluster |
| disKey | ui::cluster |
| icon | view |
| is | view |
| lib | lib:cluster |
| su | ✓ |
supertypes
| feature | Feature namespace of definitions formatted as feature:name |
| view | Fresco UI view |
src
view: {inherit:"text"}
data: {expr:"clusterDebugView()"}