< Docs
  • Java


MilvusClient interface. This method transfers a query node from the source resource group to another resource group.

R<RpcStatus> transferNode(TransferNodeParam requestParam);


Use the TransferNodeParam.Builder to construct a TransferNodeParam object.

import io.milvus.param. TransferNodeParam;
TransferNodeParam.Builder builder =  TransferNodeParam.newBuilder();

Methods of TransferNodeParam.Builder:

Method Description Parameters
withSourceGroupName(String groupName) Sets the source group name. groupName cannot be empty or null. groupName: The name of the source group.
withTargetGroupName(String groupName) Sets the target group name. groupName cannot be empty or null. groupName: The name of the target group.
withNodeNumber(Integer nodeNumber) Specify how many query nodes to transfer to another resource group. nodeNumber: The number of nodes to transfer.
build() Construct a TransferNodeParam object. N/A

The can throw the following exceptions:

  • ParamException: error if the parameter is invalid.


This method catches all the exceptions and returns an R<RpcStatus> object.

  • If the API fails on the server side, it returns the error code and message from the server.

  • If the API fails by RPC exception, it returns R.Status.Unknown and error message of the exception.

  • If the API succeeds, it returns R.Status.Success.


import io.milvus.param.TransferNodeParam;

R<RpcStatus> response = client.transferNode(TransferNodeParam.newBuilder()

if (response.getStatus() != R.Status.Success.getCode()) {
    throw new RuntimeException(response.getMessage());


Was this page helpful?