...
Returns a Server to which the client may connect. You are allowed to exclude servers that you do not want the locator to consider and you may restrict the set of servers considered by the locator to a specific group. See "Using Member Groups" in Geode documentation.
Request
This request takes no parameters.
GetServerRequest | ||||
Field Name | Data type | Description | Mandatory? | Repeated? |
---|---|---|---|---|
excludedServers | Server | one or more servers that should not be considered by the locator as being suitable for the client | N | Y |
serverGroup | String | tells the locator to limit its search to the set of servers in the given group | N | N |
...
GetServerResponse | ||||
Field Name | Data type | Description | Mandatory? | Repeated? |
---|---|---|---|---|
server | Server | A server to which the client may connect | Y | Y |
Expected Behavior
- The locator will choose a server for the client to use in performing cache operations
- The locator will return a Server object that holds the coordinates of the server or it will return an error response if no server is available that matches the criteria in the GetServerRequest.Return a list of all available servers in the cluster that are visible to the client
Errors
Error Code | Error Definition | Error Description |
---|---|---|
101 | NO_AVAILABLE_SERVER | No suitable server could be found. If you excluded some servers you might want to retry without excluding them. |