management
package instead@Deprecated public interface SystemMemberCacheServer
CacheServer
that serves the contents of a system member's cache to clients.SystemMemberCache.addCacheServer()
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 cache 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 cache server.
|
String |
getLoadProbe()
Deprecated.
Get a description of the load probe for this cache 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 maximum 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 cache server should notify clients based on key subscription.
|
int |
getPort()
Deprecated.
Returns the port on which this cache server listens for clients to connect.
|
int |
getSocketBufferSize()
Deprecated.
Returns the configured buffer size of the socket connection for this
CacheServer . |
boolean |
isRunning()
Deprecated.
Returns whether or not this cache server is running
|
void |
refresh()
Deprecated.
Updates the information about this cache 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 cache 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 cache server
|
void |
setLoadProbe(ServerLoadProbe loadProbe)
Deprecated.
Set the load probe for this cache server.
|
void |
setMaxConnections(int maxCons)
Deprecated.
Sets the maximum 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 maximum 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 cache server should notify clients based on key subscription.
|
void |
setPort(int port)
Deprecated.
Sets the port on which this cache server listens for clients to connect.
|
void |
setSocketBufferSize(int socketBufferSize)
Deprecated.
Sets the buffer size in bytes of the socket connection for this
CacheServer . |
void |
start()
Deprecated.
Starts this cache server.
|
void |
stop()
Deprecated.
Stops this cache server.
|
int getPort()
void setPort(int port) throws AdminException
port
- the port on which this cache server listens for clients to connectAdminException
- If this cache server is runningvoid start() throws AdminException
AdminException
- If an error occurs while starting the cache serverboolean isRunning()
void stop() throws AdminException
CacheServer
can be reconfigured and
restarted if desired.AdminException
- if an exception is encountered when stopping the cache servervoid refresh()
String getBindAddress()
void setBindAddress(String address) throws AdminException
Setting a specific bind address will cause the cache 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 cache 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 cache server is runningvoid setNotifyBySubscription(boolean b) throws AdminException
b
- whether this cache server should notify clients based on key subscriptionAdminException
- if this cache server is runningboolean getNotifyBySubscription()
void setSocketBufferSize(int socketBufferSize) throws AdminException
CacheServer
. The
default is 32768 bytes.socketBufferSize
- The size in bytes of the socket bufferAdminException
- if this cache server is runningint getSocketBufferSize()
CacheServer
.
The default is 32768 bytes.CacheServer
void setMaximumTimeBetweenPings(int maximumTimeBetweenPings) throws AdminException
ClientHealthMonitor
to determine the health of this CacheServer
's
clients. The default is 60000 ms.maximumTimeBetweenPings
- The maximum amount of time between client pingsAdminException
- if this cache server is runningint getMaximumTimeBetweenPings()
ClientHealthMonitor
to determine the health of this CacheServer
's
clients. The default is 60000 ms.int getMaxConnections()
void setMaxConnections(int maxCons) throws AdminException
maxCons
- the maximum number of client connections allowedAdminException
- if this cache 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.maxThreads
- the maximum number of threads allowed in this server to service client
requestsAdminException
- if this cache server is runningint getMaximumMessageCount()
void setMaximumMessageCount(int maxMessageCount) throws AdminException
maxMessageCount
- maximum number of messages that can be enqueued in a client-queue.AdminException
- if this cache server is runningint getMessageTimeToLive()
void setMessageTimeToLive(int messageTimeToLive) throws AdminException
messageTimeToLive
- the time (in seconds) after which a message in the client queue will
expireAdminException
- if this cache server is runningvoid setGroups(String[] groups) throws AdminException
groups
- possibly empty array of String
where each string is a server groups
that this cache server will be a member of.AdminException
- if this cache server is runningString[] getGroups()
String
s where each string is a server group.
Modifying this array will not change the server groups that this cache 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 cache server.AdminException
- if the cache 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 cache server is running