Add a server, given its host and port, to this factory.

Namespace: GemStone.GemFire.Cache
Assembly:  GemStone.GemFire.Cache (in GemStone.GemFire.Cache.dll)
Version: 3.6.0.0

Syntax

C#
public PoolFactory AddServer(
	string host,
	int port
)
Visual Basic (Declaration)
Public Function AddServer ( _
	host As String, _
	port As Integer _
) As PoolFactory
Visual C++
public:
PoolFactory^ AddServer (
	String^ host, 
	int port
)

Parameters

host
String
port
Int32

Remarks

The server must be a bridge server and this client will directly connect to without consulting a server locator.

Exceptions

ExceptionCondition
throws IllegalArgumentException if host is an unknown host or if port is outside the valid range of [1..65535] inclusive.
throws IllegalStateException if a server has already been added to this factory.

See Also