public interface XMemcachedClientMBean
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addOneServerWithWeight(String server,
int weight)
Add a memcached server
|
void |
addServer(String hostList)
Add memcached servers
|
String |
getName()
Return the cache instance name
|
List<String> |
getServersDescription()
Get all connected memcached servers
|
void |
removeServer(String hostList)
Remove memcached servers
|
void |
setServerWeight(String server,
int weight)
Set a memcached server's weight
|
void addServer(String hostList) throws IOException
host - a String in the form of
"[host1]:[port1],[host2]:[port2] [host3]:[port3],[host4]:[port4]"IOExceptionvoid addOneServerWithWeight(String server, int weight) throws IOException
server - a String in the form of "[host1]:[port1],[host2]:[port2]"weight - server's weightIOExceptionvoid removeServer(String hostList)
host - a string in the form of "[host1]:[port1],[host2]:[port2] [host3]:[port3],[host4]:[port4]"List<String> getServersDescription()
void setServerWeight(String server, int weight)
server - weight - String getName()
Copyright © 2013. All Rights Reserved.