SystemMemberCacheServer
instead.@Deprecated public interface SystemMemberBridgeServer
BridgeServer
that
serves the contents of a system member's cache.SystemMemberCache.addBridgeServer()
Modifier and Type | Method and Description |
---|---|
String |
getBindAddress()
Deprecated.
Returns a string representing the ip address or host name that this server
will listen on.
|
String[] |
getGroups()
Deprecated.
Returns the list of server groups that this bridge server belongs to.
|
String |
getHostnameForClients()
Deprecated.
Returns a string representing the ip address or host name that server locators
will tell clients that this server is listening on.
|
long |
getLoadPollInterval()
Deprecated.
Get the frequency in milliseconds to poll the load probe on this bridge
server.
|
String |
getLoadProbe()
Deprecated.
Get a description of the load probe for this bridge server.
|
int |
getMaxConnections()
Deprecated.
Returns the maximum allowed client connections
|
int |
getMaximumMessageCount()
Deprecated.
Returns the maximum number of messages that can be enqueued in a
client-queue.
|
int |
getMaximumTimeBetweenPings()
Deprecated.
Returns the maximum amount of time between client pings.
|
int |
getMaxThreads()
Deprecated.
Returns the maxium number of threads allowed in this server to service
client requests.
|
int |
getMessageTimeToLive()
Deprecated.
Returns the time (in seconds ) after which a message in the client queue
will expire.
|
boolean |
getNotifyBySubscription()
Deprecated.
Answers whether or not this bridge server should notify clients based on
key subscription.
|
int |
getPort()
Deprecated.
Returns the port on which this bridge server listens for bridge
clients to connect.
|
int |
getSocketBufferSize()
Deprecated.
Returns the configured buffer size of the socket connection for this
BridgeServer . |
boolean |
isRunning()
Deprecated.
Returns whether or not this bridge server is running
|
void |
refresh()
Deprecated.
Updates the information about this bridge server.
|
void |
setBindAddress(String address)
Deprecated.
Sets the ip address or host name that this server is to listen on for
client connections.
|
void |
setGroups(String[] groups)
Deprecated.
Sets the list of server groups this bridge server will belong to.
|
void |
setHostnameForClients(String name)
Deprecated.
Sets the ip address or host name that this server is to listen on for
client connections.
|
void |
setLoadPollInterval(long loadPollInterval)
Deprecated.
Set the frequency in milliseconds to poll the load probe on this bridge
server
|
void |
setLoadProbe(ServerLoadProbe loadProbe)
Deprecated.
Set the load probe for this bridge server.
|
void |
setMaxConnections(int maxCons)
Deprecated.
Sets the maxium number of client connections allowed.
|
void |
setMaximumMessageCount(int maxMessageCount)
Deprecated.
Sets maximum number of messages that can be enqueued in a client-queue.
|
void |
setMaximumTimeBetweenPings(int maximumTimeBetweenPings)
Deprecated.
Sets the maximum amount of time between client pings.
|
void |
setMaxThreads(int maxThreads)
Deprecated.
Sets the maxium number of threads allowed in this server to service
client requests.
|
void |
setMessageTimeToLive(int messageTimeToLive)
Deprecated.
Sets the time (in seconds ) after which a message in the client queue
will expire.
|
void |
setNotifyBySubscription(boolean b)
Deprecated.
Sets whether or not this bridge server should notify clients based on
key subscription.
|
void |
setPort(int port)
Deprecated.
Sets the port on which this bridge server listens for bridge
clients to connect.
|
void |
setSocketBufferSize(int socketBufferSize)
Deprecated.
Sets the buffer size in bytes of the socket connection for this
BridgeServer . |
void |
start()
Deprecated.
Starts this bridge server.
|
void |
stop()
Deprecated.
Stops this bridge server.
|
int getPort()
void setPort(int port) throws AdminException
AdminException
- If this bridge server is runningvoid start() throws AdminException
AdminException
- If an error occurs while starting the bridge serverboolean isRunning()
void stop() throws AdminException
BridgeServer
can be reconfigured and restarted if
desired.AdminException
void refresh()
String getBindAddress()
void setBindAddress(String address) throws AdminException
Setting a specific bind address will cause the bridge server to always
use this address and ignore any address specified by "server-bind-address"
or "bind-address" in the gemfire.properties
file
(see DistributedSystem
for a description of these properties).
A null
value will be treated the same as the default "".
The default value does not override the gemfire.properties. If you wish to
override the properties and want to have your server bind to all local
addresses then use this string "0.0.0.0"
.
address
- the ip address or host name that this server is to listen onAdminException
- if this bridge server is runningString getHostnameForClients()
void setHostnameForClients(String name) throws AdminException
Setting a specific hostname-for-clients will cause server locators to use this value when telling clients how to connect to this server.
The default value causes the bind-address to be given to clients
A null
value will be treated the same as the default "".
name
- the ip address or host name that will be given to clients
so they can connect to this serverAdminException
- if this bridge server is runningvoid setNotifyBySubscription(boolean b) throws AdminException
AdminException
- if this bridge server is runningboolean getNotifyBySubscription()
void setSocketBufferSize(int socketBufferSize) throws AdminException
BridgeServer
. The default is 32768 bytes.socketBufferSize
- The size in bytes of the socket bufferAdminException
- if this bridge server is runningint getSocketBufferSize()
BridgeServer
. The default is 32768 bytes.BridgeServer
void setMaximumTimeBetweenPings(int maximumTimeBetweenPings) throws AdminException
ClientHealthMonitor
to determine the health
of this BridgeServer
's clients. The default is 60000 ms.maximumTimeBetweenPings
- The maximum amount of time between client
pingsAdminException
- if this bridge server is runningint getMaximumTimeBetweenPings()
ClientHealthMonitor
to determine the health
of this BridgeServer
's clients. The default is 60000 ms.int getMaxConnections()
void setMaxConnections(int maxCons) throws AdminException
AdminException
- if this bridge server is runningint getMaxThreads()
0
causes the server to dedicate a thread for
every client connection.void setMaxThreads(int maxThreads) throws AdminException
0
causes the server to dedicate a thread for
every client connection.AdminException
- if this bridge server is runningint getMaximumMessageCount()
void setMaximumMessageCount(int maxMessageCount) throws AdminException
AdminException
- if this bridge server is runningint getMessageTimeToLive()
void setMessageTimeToLive(int messageTimeToLive) throws AdminException
AdminException
- if this bridge server is runningvoid setGroups(String[] groups) throws AdminException
groups
- possibly empty array of String
where each string
is a server groups that this bridge server will be a member of.AdminException
- if this bridge server is runningString[] getGroups()
String
s where
each string is a server group. Modifying this array will not change the
server groups that this bridge server belongs to.String getLoadProbe()
ServerLoadProbe
for details on the load probe.void setLoadProbe(ServerLoadProbe loadProbe) throws AdminException
ServerLoadProbe
for details on how to implement
a load probe.
The load probe should implement DataSerializable if
it is used with this interface, because it will be sent to the remote
VM.loadProbe
- the load probe to use for
this bridge server.AdminException
- if the bridge server is runninglong getLoadPollInterval()
void setLoadPollInterval(long loadPollInterval) throws AdminException
loadPollInterval
- the frequency in milliseconds to poll
the load probe. Must be greater than 0.AdminException
- if the bridge server is runningCopyright © 1997-2017 Pivotal Software, Inc. All rights reserved.