Skip to main content
Element Software
12.5 and 12.7
简体中文版经机器翻译而成,仅供参考。如与英语版出现任何冲突,应以英语版为准。

GetBinAssignmentProperties

贡献者

您可以使用 GetBinAssignmentProperties 方法检索数据库中的托箱分配属性。

参数

此方法没有输入参数。

返回值

此方法具有以下返回值:

Name Description Type

属性

详细说明数据库中所有当前托箱分配的属性。

binAssignmentProperties 数组

请求示例

此方法的请求类似于以下示例:

{
    "method": "GetBinAssignmentProperties",
    "params": {
    },
    "id": 1
}

响应示例

此方法返回类似于以下示例的响应:

{
    "id": 1,
    "result": {
        "properties": {
            "algorithmRuntimeMS": 1105,
            "areReplicasValid": true,
            "binCount": 65536,
            "isBalanced": true,
            "isStable": true,
            "isWellCoupled": false,
            "layout": [
                {
                    "protectionDomainName": "1",
                    "services": [
                        {
                            "budget": 7281,
                            "serviceID": 16
                        },
                        {
                            "budget": 7281,
                            "serviceID": 19
                        },
                        {
                            "budget": 7281,
                            "serviceID": 24
                        }
                    ]
                },
                {
                    "protectionDomainName": "2",
                    "services": [
                        {
                            "budget": 7281,
                            "serviceID": 17
                        },
                        {
                            "budget": 7281,
                            "serviceID": 20
                        },
                        {
                            "budget": 7281,
                            "serviceID": 22
                        }
                    ]
                },
                {
                    "protectionDomainName": "3",
                    "services": [
                        {
                            "budget": 7281,
                            "serviceID": 18
                        },
                        {
                            "budget": 7281,
                            "serviceID": 21
                        },
                        {
                            "budget": 7281,
                            "serviceID": 23
                        }
                    ]
                }
            ],
            "numSwaps": 0,
            "numUpdatingBins": 0,
            "protectionDomainType": "node",
            "reason": "Final",
            "replicationCount": 2,
            "requestRebalance": false,
            "serviceStrandedCapacities": [],
            "timePublished": "2020-04-02T18:34:07.807681Z",
            "validSchemes": []
        }
    }
}

自版本以来的新增功能

12.0