|
GemFire 7.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.gemstone.gemfire.memcached.GemFireMemcachedServer
public class GemFireMemcachedServer
This is the Server that listens for incoming memcached client connections.
This server understands the memcached ASCII protocol
documented in
memcached source control
It then translates these commands to the corresponding
GemFire commands, and stores the data in GemFire in a 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.
| Nested Class Summary | |
|---|---|
static class |
GemFireMemcachedServer.Protocol
The protocol used by GemFireMemcachedServer |
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
GemFireMemcachedServer(int port)
Create an instance of the server. to start the server start() must be called. |
|
GemFireMemcachedServer(int port,
GemFireMemcachedServer.Protocol protocol)
Create an instance of the server. to start the server start() must be called. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String REGION_NAME
public static final String version
| Constructor Detail |
|---|
public GemFireMemcachedServer(int port)
start() must be called.
port - the port on which the server listens
for new memcached client connections.
public GemFireMemcachedServer(int port,
GemFireMemcachedServer.Protocol protocol)
start() must be called.
port - the port on which the server listens
for new memcached client connections.protocol - the protocol that this server should understandGemFireMemcachedServer.Protocol| Method Detail |
|---|
public void start()
public void shutdown()
public static void main(String[] args)
args -
|
GemFire 7.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||