Skip to content

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 ​

isolateIsolate this node from making inbound requests
nodeCluster node
nodeIdNode id as string without the n: prefix
nodeRefReference to a node in the cluster database
nodeStatusCurrent status of a cluster node
nodeTypeIs node haxall or skyspark
pubKeyPublic key as encoded string

views ​

clusterNodesManage the local database of cluster nodes
clusterSettingsSettings for the cluster system module
debugClusterDebug cluster Arcbeam protocol


def ​

isolate ​

Isolate this node from making inbound requests


meta ​

defisolate
ismarker
liblib:cluster
tagOnarcbeamConn, node

supertypes ​

markerMarker labels a dict with typing information


def ​

node ​

Cluster node. Nodes are managed at the host level in the cluster database.


meta ​

defnode
iconhost
isentity
liblib:cluster
mandatory✓

supertypes ​

markerMarker labels a dict with typing information
entityTop-level dicts with a unique identifier

tags ​

disDisplay name for an entity
idDefines the unique identifier of an entity in system using a ref value type
isolateIsolate this node from making inbound requests
nodeIdNode id as string without the n: prefix
nodeStatusCurrent status of a cluster node
nodeTypeIs node haxall or skyspark
pubKeyPublic key as encoded string


def ​

nodeId ​

Node id as string without the n: prefix


meta ​

defnodeId
isstr
liblib:cluster
tagOnarcbeamConn, node

supertypes ​

valData value type
scalarScalar is an atomic value kind
strUnicode string of characters


def ​

nodeRef ​

Reference to a node in the cluster database.


meta ​

defnodeRef
isref
liblib:cluster
ofnode

supertypes ​

valData value type
scalarScalar is an atomic value kind
refReference to an entity


def ​

nodeStatus ​

Current status of a cluster node


meta ​

defnodeStatus
enumSee below
isstr
liblib:cluster
tagOnnode
transient✓

enum ​

okAll is okay
faultConfiguration problem
downCommunication or network problem
disabledManual disable
unapprovedNode not approved yet
unknownStatus not computed yet

supertypes ​

valData value type
scalarScalar is an atomic value kind
strUnicode string of characters


def ​

nodeType ​

Is node haxall or skyspark; do not change this tag


meta ​

defnodeType
enumSee below
isstr
liblib:cluster
tagOnnode

enum ​

haxallHaxall node via hxCluster lib
skysparkSkySpark cluster host node via ClusterMod
skysparkProjSkySpark project node via ArcbeamExt
niagaraNiagara node via BArcbeamService

supertypes ​

valData value type
scalarScalar is an atomic value kind
strUnicode string of characters


def ​

pubKey ​

Public key as encoded string


meta ​

defpubKey
isstr
liblib:cluster
multiLine✓
tagOnarcbeamConn, node

supertypes ​

valData value type
scalarScalar is an atomic value kind
strUnicode string of characters


def ​

view:clusterNodes ​

Manage the local database of cluster nodes


meta ​

appNamehost
defview:clusterNodes
disKeyui::cluster
iconview
isview
liblib:cluster
su✓

supertypes ​

featureFeature namespace of definitions formatted as feature:name
viewFresco 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 ​

appNamesettings
defview:clusterSettings
disKeyui::cluster
iconview
isview
liblib:cluster
su✓

supertypes ​

featureFeature namespace of definitions formatted as feature:name
viewFresco UI view

src ​

view:   {inherit:"form"}
submit: {action:"hostCommit"}
data:   {expr:"hostSettings(\"cluster\")"}


def ​

view:debugCluster ​

Debug cluster Arcbeam protocol


meta ​

appNamedebug
defview:debugCluster
disKeyui::cluster
iconview
isview
liblib:cluster
su✓

supertypes ​

featureFeature namespace of definitions formatted as feature:name
viewFresco UI view

src ​

view: {inherit:"text"}
data: {expr:"clusterDebugView()"}