Previous Topic: Cluster Methods

Next Topic: GetAllServers Method—Retrieves an Array of All the Servers in a Cluster

AddServer Method—Adds a Server to the Cluster

The AddServer method adds a server to the cluster.

Syntax

The AddServer method has the following format:

Netegrity::PolicyMgtCluster‑>AddServer(Host, Port)

Parameters

The AddServer method accepts the following parameters:

Host (string)

Specifies the host IP address.

Port (int)

Specifies the server port.

Return Value

The AddServer method returns one of the following values:

Remarks

The servers in a cluster are referenced in an array. When you add a server to a cluster, it is added to the end of the server array.

Due to dynamic load balancing, in which requests are sent to the highest-capacity available server in the cluster, the order in which servers are added to the cluster does not matter.

To add a non-clustered server to a host configuration, call the PolicyMgtHostConfig‑>AddServer method.


Copyright © 2010 CA. All rights reserved. Email CA about this topic