PoolFactoryAddServer Method |
Add a server, given its host and port, to this factory.
Namespace: GemStone.GemFire.CacheAssembly: Gemstone.Gemfire.Cache (in Gemstone.Gemfire.Cache.dll) Version: 9.0.6.18
Syntaxpublic PoolFactory AddServer(
string host,
int port
)
Public Function AddServer (
host As String,
port As Integer
) As PoolFactory
public:
PoolFactory^ AddServer(
String^ host,
int port
)
member AddServer :
host : string *
port : int -> PoolFactory
Parameters
- host
- Type: SystemString
- port
- Type: SystemInt32
Return Value
Type:
PoolFactory
ExceptionsException | Condition |
---|
|
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.
|
Remarks
The server must be a bridge server and this client will
directly connect to without consulting a server locator.
See Also