|
GemFire 5.5.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface BridgeServer
A cache bridge server that serves the contents of a
Cache to VMs in another distributed system via a
socket. A bridge server is used in conjunction with a BridgeLoader and a BridgeWriter to connect two regions
that reside in different distributed systems.
Cache.addBridgeServer(),
Cache.getBridgeServers()| Field Summary | |
|---|---|
static int |
DEFAULT_CONNECTION_LIMIT
The default number of sockets accepted by a BridgeServer. |
static int |
DEFAULT_MAXIMUM_MESSAGE_COUNT
The default maximum number of messages that can be enqueued in a client-queue. |
static int |
DEFAULT_MAXIMUM_TIME_BETWEEN_PINGS
The default maximum amount of time between client pings. |
static int |
DEFAULT_MESSAGE_TIME_TO_LIVE
The default time (in seconds ) after which a message in the client queue will expire. |
static boolean |
DEFAULT_NOTIFY_BY_SUBSCRIPTION
The default notify-by-subscription value which tells the BridgeServer whether or not to notify clients
based on key subscription. |
static int |
DEFAULT_PORT
The default port on which a BridgeServer is
configured to serve. |
static int |
DEFAULT_SOCKET_BUFFER_SIZE
The default socket buffer size for socket buffers from the server to the client. |
static int |
DEFAULT_THREAD_LIMIT
The default limit to the maximum number of server threads that can be created to service client requests. |
| Method Summary | |
|---|---|
int |
getMaxConnections()
Returns the maximum allowed client connections |
int |
getMaximumMessageCount()
Returns the maximum number of messages that can be enqueued in a client-queue. |
int |
getMaximumTimeBetweenPings()
Returns the maximum amount of time between client pings. |
int |
getMaxThreads()
Returns the maxium number of threads allowed in this server to service client requests. |
int |
getMessageTimeToLive()
Returns the time (in seconds ) after which a message in the client queue will expire. |
boolean |
getNotifyBySubscription()
Answers whether or not this bridge server should notify clients based on key subscription. |
int |
getPort()
Returns the port on which this bridge server listens for clients ( BridgeLoaders and BridgeWriters) to connect. |
int |
getSocketBufferSize()
Returns the configured buffer size of the socket connection for this BridgeServer. |
boolean |
isRunning()
Returns whether or not this bridge server is running |
void |
setMaxConnections(int maxCons)
Sets the maxium number of client connections allowed. |
void |
setMaximumMessageCount(int maxMessageCount)
Sets maximum number of messages that can be enqueued in a client-queue. |
void |
setMaximumTimeBetweenPings(int maximumTimeBetweenPings)
Sets the maximum amount of time between client pings. |
void |
setMaxThreads(int maxThreads)
Sets the maxium number of threads allowed in this server to service client requests. |
void |
setMessageTimeToLive(int messageTimeToLive)
Sets the time (in seconds ) after which a message in the client queue will expire. |
void |
setNotifyBySubscription(boolean b)
Sets whether or not this bridge server should notify clients based on key subscription. |
void |
setPort(int port)
Sets the port on which this bridge server listens for clients ( BridgeLoaders and BridgeWriters) to connect. |
void |
setSocketBufferSize(int socketBufferSize)
Sets the buffer size in bytes of the socket connection for this BridgeServer. |
void |
start()
Starts this bridge server. |
void |
stop()
Stops this bridge server. |
| Field Detail |
|---|
static final int DEFAULT_PORT
BridgeServer is
configured to serve.
static final int DEFAULT_CONNECTION_LIMIT
static final int DEFAULT_THREAD_LIMIT
0 causes a thread to be bound to every connection
and to be dedicated to detecting client requests on that connection. A selector
is not used in this default mode.
Current value: 0
static final boolean DEFAULT_NOTIFY_BY_SUBSCRIPTION
BridgeServer whether or not to notify clients
based on key subscription.
static final int DEFAULT_SOCKET_BUFFER_SIZE
static final int DEFAULT_MAXIMUM_TIME_BETWEEN_PINGS
ClientHealthMonitor to determine the
health of this BridgeServer's clients.
static final int DEFAULT_MAXIMUM_MESSAGE_COUNT
static final int DEFAULT_MESSAGE_TIME_TO_LIVE
| Method Detail |
|---|
int getPort()
BridgeLoaders and BridgeWriters) to connect.
void setPort(int port)
BridgeLoaders and BridgeWriters) to connect.
IllegalStateException - If this bridge server is runningvoid setNotifyBySubscription(boolean b)
boolean getNotifyBySubscription()
void setSocketBufferSize(int socketBufferSize)
BridgeServer. The default is 32768 bytes.
socketBufferSize - The size in bytes of the socket bufferint getSocketBufferSize()
BridgeServer. The default is 32768 bytes.
BridgeServervoid setMaximumTimeBetweenPings(int maximumTimeBetweenPings)
ClientHealthMonitor to determine the health
of this BridgeServer's clients. The default is 60000 ms.
maximumTimeBetweenPings - The maximum amount of time between client
pingsint getMaximumTimeBetweenPings()
ClientHealthMonitor to determine the health
of this BridgeServer's clients. The default is 60000 ms.
void start()
throws IOException
IOException - If an error occurs while starting the bridge serverboolean isRunning()
void stop()
BridgeServer can be reconfigured and restarted if
desired.
int getMaxConnections()
void setMaxConnections(int maxCons)
DEFAULT_CONNECTION_LIMITint getMaxThreads()
0 causes the server to dedicate a thread for
every client connection.
void setMaxThreads(int maxThreads)
0 causes the server to dedicate a thread for
every client connection.
DEFAULT_THREAD_LIMITint getMaximumMessageCount()
void setMaximumMessageCount(int maxMessageCount)
DEFAULT_MAXIMUM_MESSAGE_COUNTint getMessageTimeToLive()
void setMessageTimeToLive(int messageTimeToLive)
DEFAULT_MESSAGE_TIME_TO_LIVE
|
GemFire 5.5.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||