Class TextStatsCommand
- java.lang.Object
-
- net.rubyeye.xmemcached.command.Command
-
- net.rubyeye.xmemcached.command.text.TextStatsCommand
-
- All Implemented Interfaces:
WriteMessage
,ServerAddressAware
- Direct Known Subclasses:
TextStatsCachedumpCommand
public class TextStatsCommand extends Command implements ServerAddressAware
Stats command for text protocol
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
itemName
private java.net.InetSocketAddress
server
static java.nio.ByteBuffer
STATS
-
Fields inherited from class net.rubyeye.xmemcached.command.Command
cancel, commandType, exception, ioBuffer, key, keyBytes, latch, mergeCount, noreply, REQUEST_MAGIC_NUMBER, RESPONSE_MAGIC_NUMBER, result, status, transcoder, writeFuture
-
Fields inherited from interface net.rubyeye.xmemcached.command.ServerAddressAware
VERSION
-
-
Constructor Summary
Constructors Constructor Description TextStatsCommand(java.net.InetSocketAddress server, java.util.concurrent.CountDownLatch latch, java.lang.String itemName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
decode(MemcachedTCPSession session, java.nio.ByteBuffer buffer)
protected boolean
done(MemcachedSession session)
void
encode()
java.lang.String
getItemName()
java.net.InetSocketAddress
getServer()
void
setItemName(java.lang.String item)
void
setServer(java.net.InetSocketAddress server)
-
Methods inherited from class net.rubyeye.xmemcached.command.Command
cancel, countDownLatch, decodeError, decodeError, decodeError, decodeError, getCommandType, getCopiedMergeCount, getException, getIoBuffer, getKey, getKeyBytes, getLatch, getMergeCount, getMessage, getResult, getStatus, getTranscoder, getWriteBuffer, getWriteFuture, isAdded, isCancel, isNoreply, isWriting, setAdded, setCommandType, setException, setIoBuffer, setKey, setKeyBytes, setLatch, setMergeCount, setNoreply, setResult, setStatus, setTranscoder, setWriteBuffer, setWriteFuture, toString, writing
-
-
-
-
Method Detail
-
getItemName
public java.lang.String getItemName()
-
getServer
public final java.net.InetSocketAddress getServer()
- Specified by:
getServer
in interfaceServerAddressAware
-
setServer
public final void setServer(java.net.InetSocketAddress server)
- Specified by:
setServer
in interfaceServerAddressAware
-
setItemName
public void setItemName(java.lang.String item)
-
decode
public boolean decode(MemcachedTCPSession session, java.nio.ByteBuffer buffer)
-
done
protected final boolean done(MemcachedSession session)
-
-