forked from dustin/java-memcached-client
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto Discovery support for Amazon ElastiCache
* Introducing Dynamic and Static client modes for the memcached client. Dynamic allows the client to automatically pick up the node list using the ElastiCache configuration endpoint throughout the lifetime of the client object. Static mode is the existing behavior, where the client is initialized only once using the configuration provided by the user. * Support for a new configuration command used in ElastiCache Nodes. This command supports the config get, set and delete commands in ASCII and binary mode. * Periodic poller to check for node list changes in the ElastiCache cluster and dynamically update client connections according to the configuration. This operates only in Dynamic mode. * In dynamic mode, if IP addresses are specified in the configuration, then the connection is established using the IP address directly. For more information, please see http://docs.amazonwebservices.com/AmazonElastiCache/latest/UserGuide/AutoDiscovery.html
- Loading branch information
1 parent
abcb8b3
commit 70bf764
Showing
44 changed files
with
2,583 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/** | ||
* Copyright (C) 2012-2012 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* | ||
* Licensed under the Amazon Software License (the "License"). You may not use this | ||
* file except in compliance with the License. A copy of the License is located at | ||
* http://aws.amazon.com/asl/ | ||
* or in the "license" file accompanying this file. This file is distributed on | ||
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or | ||
* implied. See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package net.spy.memcached; | ||
|
||
/** | ||
* The modes in which the client can operate. | ||
*/ | ||
public enum ClientMode { | ||
|
||
/** | ||
* In Static Client mode, the set of endpoints specified during initialization is used throughout the lifetime of the client object. | ||
*/ | ||
Static, | ||
/** | ||
* In Dynamic Client mode, the set of cache node endpoints and any updates to it is dynamically managed in this mode. | ||
* The client is initialized with a configuration endpoint. The client will periodically learn about the cache nodes in the | ||
* cluster. | ||
*/ | ||
Dynamic | ||
} |
Oops, something went wrong.