public class GemFireMemcachedServer extends Object
Region
named "gemcached".
"gemcached" region is RegionShortcut.PARTITION
by default, though a cache.xml can be
provided to override region attributes.
This class has a Main method that can be used to start the server.
Modifier and Type | Class and Description |
---|---|
static class |
GemFireMemcachedServer.Protocol
The protocol used by GemFireMemcachedServer
|
Modifier and Type | Field and Description |
---|---|
static String |
REGION_NAME
Name of the GemFire region in which data is stored, value id "gemcached"
|
static String |
version
version of gemcached server
|
Constructor and Description |
---|
GemFireMemcachedServer(int port)
Create an instance of the server.
|
GemFireMemcachedServer(String bindAddress,
int port,
GemFireMemcachedServer.Protocol protocol)
Create an instance of the server.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args) |
void |
shutdown()
shuts down this server and closes the embedded GemFire caching node
|
void |
start()
Starts an embedded GemFire caching node, and then listens for new memcached client connections.
|
public static final String REGION_NAME
public static final String version
public GemFireMemcachedServer(int port)
start()
must be called.port
- the port on which the server listens for new memcached client connections.public GemFireMemcachedServer(String bindAddress, int port, GemFireMemcachedServer.Protocol protocol)
start()
must be called.bindAddress
- the address on which the server listens for new memcached client
connections.port
- the port on which the server listens for new memcached client connections.protocol
- the protocol that this server should understandGemFireMemcachedServer.Protocol
public void start()
public void shutdown()
public static void main(String[] args)