Uses of Class
net.rubyeye.xmemcached.command.Command
Packages that use Command
Package
Description
XMemcached's main classes and interfaces,use these classes/interfaces to interact with memcached servers.
Memcached 1.4.3 or later version has supported SASL authentication,these classes are used for that
Memcached protocol implementations
Memcached text protocol implementations
Kestrel protocol implementations
Memcached text protocol implementations
Manage tcp connection,memcached protocol optimized,and some MBeans for monitor.
Networking layout to talk with memcached.
-
Uses of Command in net.rubyeye.xmemcached
Methods in net.rubyeye.xmemcached that return CommandModifier and TypeMethodDescriptionCommandFactory.createAddCommand(String key, byte[] keyBytes, int exp, Object value, boolean noreply, Transcoder transcoder) create a add commandCommandFactory.createAppendCommand(String key, byte[] keyBytes, Object value, boolean noreply, Transcoder transcoder) create a append commandCommandFactory.createAuthListMechanismsCommand(CountDownLatch latch) Create a command for listing authentication mechanismsCommandFactory.createAuthStartCommand(String mechanism, CountDownLatch latch, byte[] authData) Create command for starting authenticationCommandFactory.createAuthStepCommand(String mechanism, CountDownLatch latch, byte[] authData) Create a command for stepping authenticationCommandFactory.createAWSElasticCacheConfigCommand(String subCommand, String key) Create a AWS ElasticCache config command, only supports Cache Engine Version 1.4.14 or Higher.CommandFactory.createCASCommand(String key, byte[] keyBytes, int exp, Object value, long cas, boolean noreply, Transcoder transcoder) Create a cas commandCommandFactory.createDeleteCommand(String key, byte[] keyBytes, int time, long cas, boolean noreply) create a delete commandCommandFactory.createFlushAllCommand(CountDownLatch latch, int delay, boolean noreply) create a flush_all commandCommandFactory.createGetAndTouchCommand(String key, byte[] keyBytes, CountDownLatch latch, int exp, boolean noreply) Create a get-and-touch commandCommandFactory.createGetCommand(String key, byte[] keyBytes, CommandType cmdType, Transcoder transcoder) create a get/gets command<T> CommandCommandFactory.createGetMultiCommand(Collection<String> keys, CountDownLatch latch, CommandType cmdType, Transcoder<T> transcoder) Create a multi-get commandCommandFactory.createIncrDecrCommand(String key, byte[] keyBytes, long delta, long initial, int expTime, CommandType cmdType, boolean noreply) create a incr/decr commandCommandFactory.createPrependCommand(String key, byte[] keyBytes, Object value, boolean noreply, Transcoder transcoder) Create a prepend commandCommandFactory.createQuitCommand()create a quit commandCommandFactory.createReplaceCommand(String key, byte[] keyBytes, int exp, Object value, boolean noreply, Transcoder transcoder) create a replace commandCommandFactory.createSetCommand(String key, byte[] keyBytes, int exp, Object value, boolean noreply, Transcoder transcoder) Create a set commandCommandFactory.createStatsCommand(InetSocketAddress server, CountDownLatch latch, String itemName) create a stats commandCommandFactory.createTouchCommand(String key, byte[] keyBytes, CountDownLatch latch, int exp, boolean noreply) Create a touch commandCommandFactory.createVerbosityCommand(CountDownLatch latch, int level, boolean noreply) Create a verbosity commandCommandFactory.createVersionCommand(CountDownLatch latch, InetSocketAddress server) create a version commandMemcachedOptimizer.optimize(Command currentCommand, Queue writeQueue, Queue<Command> executingCmds, int sendBufferSize) private final <T> CommandXMemcachedClient.sendGetMultiCommand(Collection<String> keys, CountDownLatch latch, CommandType cmdType, Transcoder<T> transcoder) Methods in net.rubyeye.xmemcached with parameters of type CommandModifier and TypeMethodDescriptionprotected voidXMemcachedClient.checkException(Command command) protected voidMemcachedOptimizer.optimize(Command currentCommand, Queue writeQueue, Queue<Command> executingCmds, int sendBufferSize) protected final SessionXMemcachedClient.sendCommand(Command cmd) private final <T> booleanXMemcachedClient.sendStoreCommand(Command command, long timeout) Method parameters in net.rubyeye.xmemcached with type arguments of type CommandModifier and TypeMethodDescriptionXMemcachedClient.reduceResult(CommandType cmdType, Transcoder<T> transcoder, List<Command> commands) -
Uses of Command in net.rubyeye.xmemcached.auth
Methods in net.rubyeye.xmemcached.auth that return CommandMethods in net.rubyeye.xmemcached.auth with parameters of type CommandModifier and TypeMethodDescriptionprivate voidAuthTask.waitCommand(Command cmd, AtomicBoolean done) -
Uses of Command in net.rubyeye.xmemcached.command
Subclasses of Command in net.rubyeye.xmemcached.commandModifier and TypeClassDescriptionclassAbstract verbosity command for text protocolMethods in net.rubyeye.xmemcached.command that return CommandModifier and TypeMethodDescriptionBinaryCommandFactory.createAddCommand(String key, byte[] keyBytes, int exp, Object value, boolean noreply, Transcoder transcoder) KestrelCommandFactory.createAddCommand(String key, byte[] keyBytes, int exp, Object value, boolean noreply, Transcoder transcoder) final CommandTextCommandFactory.createAddCommand(String key, byte[] keyBytes, int exp, Object value, boolean noreply, Transcoder transcoder) BinaryCommandFactory.createAppendCommand(String key, byte[] keyBytes, Object value, boolean noreply, Transcoder transcoder) KestrelCommandFactory.createAppendCommand(String key, byte[] keyBytes, Object value, boolean noreply, Transcoder transcoder) final CommandTextCommandFactory.createAppendCommand(String key, byte[] keyBytes, Object value, boolean noreply, Transcoder transcoder) BinaryCommandFactory.createAuthListMechanismsCommand(CountDownLatch latch) KestrelCommandFactory.createAuthListMechanismsCommand(CountDownLatch latch) TextCommandFactory.createAuthListMechanismsCommand(CountDownLatch latch) BinaryCommandFactory.createAuthStartCommand(String mechanism, CountDownLatch latch, byte[] authData) KestrelCommandFactory.createAuthStartCommand(String mechanism, CountDownLatch latch, byte[] authData) TextCommandFactory.createAuthStartCommand(String mechanism, CountDownLatch latch, byte[] authData) BinaryCommandFactory.createAuthStepCommand(String mechanism, CountDownLatch latch, byte[] authData) KestrelCommandFactory.createAuthStepCommand(String mechanism, CountDownLatch latch, byte[] authData) TextCommandFactory.createAuthStepCommand(String mechanism, CountDownLatch latch, byte[] authData) BinaryCommandFactory.createAWSElasticCacheConfigCommand(String subCommand, String key) KestrelCommandFactory.createAWSElasticCacheConfigCommand(String subCommand, String key) TextCommandFactory.createAWSElasticCacheConfigCommand(String subCommand, String key) BinaryCommandFactory.createCASCommand(String key, byte[] keyBytes, int exp, Object value, long cas, boolean noreply, Transcoder transcoder) KestrelCommandFactory.createCASCommand(String key, byte[] keyBytes, int exp, Object value, long cas, boolean noreply, Transcoder transcoder) final CommandTextCommandFactory.createCASCommand(String key, byte[] keyBytes, int exp, Object value, long cas, boolean noreply, Transcoder transcoder) BinaryCommandFactory.createDeleteCommand(String key, byte[] keyBytes, int time, long cas, boolean noreply) KestrelCommandFactory.createDeleteCommand(String key, byte[] keyBytes, int time, long cas, boolean noreply) final CommandTextCommandFactory.createDeleteCommand(String key, byte[] keyBytes, int time, long cas, boolean noreply) BinaryCommandFactory.createFlushAllCommand(CountDownLatch latch, int delay, boolean noreply) KestrelCommandFactory.createFlushAllCommand(CountDownLatch latch, int delay, boolean noreply) final CommandTextCommandFactory.createFlushAllCommand(CountDownLatch latch, int exptime, boolean noreply) BinaryCommandFactory.createGetAndTouchCommand(String key, byte[] keyBytes, CountDownLatch latch, int exp, boolean noreply) KestrelCommandFactory.createGetAndTouchCommand(String key, byte[] keyBytes, CountDownLatch latch, int exp, boolean noreply) TextCommandFactory.createGetAndTouchCommand(String key, byte[] keyBytes, CountDownLatch latch, int exp, boolean noreply) BinaryCommandFactory.createGetCommand(String key, byte[] keyBytes, CommandType cmdType, Transcoder transcoder) KestrelCommandFactory.createGetCommand(String key, byte[] keyBytes, CommandType cmdType, Transcoder transcoder) final CommandTextCommandFactory.createGetCommand(String key, byte[] keyBytes, CommandType cmdType, Transcoder transcoder) <T> CommandBinaryCommandFactory.createGetMultiCommand(Collection<String> keys, CountDownLatch latch, CommandType cmdType, Transcoder<T> transcoder) <T> CommandKestrelCommandFactory.createGetMultiCommand(Collection<String> keys, CountDownLatch latch, CommandType cmdType, Transcoder<T> transcoder) final <T> CommandTextCommandFactory.createGetMultiCommand(Collection<String> keys, CountDownLatch latch, CommandType cmdType, Transcoder<T> transcoder) BinaryCommandFactory.createIncrDecrCommand(String key, byte[] keyBytes, long amount, long initial, int expTime, CommandType cmdType, boolean noreply) KestrelCommandFactory.createIncrDecrCommand(String key, byte[] keyBytes, long amount, long initial, int expTime, CommandType cmdType, boolean noreply) final CommandTextCommandFactory.createIncrDecrCommand(String key, byte[] keyBytes, long amount, long initial, int exptime, CommandType cmdType, boolean noreply) BinaryCommandFactory.createPrependCommand(String key, byte[] keyBytes, Object value, boolean noreply, Transcoder transcoder) KestrelCommandFactory.createPrependCommand(String key, byte[] keyBytes, Object value, boolean noreply, Transcoder transcoder) final CommandTextCommandFactory.createPrependCommand(String key, byte[] keyBytes, Object value, boolean noreply, Transcoder transcoder) BinaryCommandFactory.createQuitCommand()KestrelCommandFactory.createQuitCommand()TextCommandFactory.createQuitCommand()BinaryCommandFactory.createReplaceCommand(String key, byte[] keyBytes, int exp, Object value, boolean noreply, Transcoder transcoder) KestrelCommandFactory.createReplaceCommand(String key, byte[] keyBytes, int exp, Object value, boolean noreply, Transcoder transcoder) final CommandTextCommandFactory.createReplaceCommand(String key, byte[] keyBytes, int exp, Object value, boolean noreply, Transcoder transcoder) BinaryCommandFactory.createSetCommand(String key, byte[] keyBytes, int exp, Object value, boolean noreply, Transcoder transcoder) KestrelCommandFactory.createSetCommand(String key, byte[] keyBytes, int exp, Object value, boolean noreply, Transcoder transcoder) final CommandTextCommandFactory.createSetCommand(String key, byte[] keyBytes, int exp, Object value, boolean noreply, Transcoder transcoder) final CommandTextCommandFactory.createStatsCachedumpCommand(InetSocketAddress server, CountDownLatch latch, int slabId, int limit) BinaryCommandFactory.createStatsCommand(InetSocketAddress server, CountDownLatch latch, String itemName) KestrelCommandFactory.createStatsCommand(InetSocketAddress server, CountDownLatch latch, String itemName) final CommandTextCommandFactory.createStatsCommand(InetSocketAddress server, CountDownLatch latch, String itemName) (package private) final CommandBinaryCommandFactory.createStoreCommand(String key, byte[] keyBytes, int exp, Object value, CommandType cmdType, boolean noreply, Transcoder transcoder) (package private) final CommandTextCommandFactory.createStoreCommand(String key, byte[] keyBytes, int exp, Object value, CommandType cmdType, boolean noreply, Transcoder transcoder) BinaryCommandFactory.createTouchCommand(String key, byte[] keyBytes, CountDownLatch latch, int exp, boolean noreply) KestrelCommandFactory.createTouchCommand(String key, byte[] keyBytes, CountDownLatch latch, int exp, boolean noreply) TextCommandFactory.createTouchCommand(String key, byte[] keyBytes, CountDownLatch latch, int exp, boolean noreply) BinaryCommandFactory.createVerbosityCommand(CountDownLatch latch, int level, boolean noreply) KestrelCommandFactory.createVerbosityCommand(CountDownLatch latch, int level, boolean noreply) final CommandTextCommandFactory.createVerbosityCommand(CountDownLatch latch, int level, boolean noreply) Create verbosity commandBinaryCommandFactory.createVersionCommand(CountDownLatch latch, InetSocketAddress server) KestrelCommandFactory.createVersionCommand(CountDownLatch latch, InetSocketAddress server) final CommandTextCommandFactory.createVersionCommand(CountDownLatch latch, InetSocketAddress server) Methods in net.rubyeye.xmemcached.command that return types with arguments of type CommandModifier and TypeMethodDescriptionAssocCommandAware.getAssocCommands()MergeCommandsAware.getMergeCommands()Method parameters in net.rubyeye.xmemcached.command with type arguments of type CommandModifier and TypeMethodDescriptionvoidAssocCommandAware.setAssocCommands(List<Command> assocCommands) voidMergeCommandsAware.setMergeCommands(Map<Object, Command> mergeCommands) -
Uses of Command in net.rubyeye.xmemcached.command.binary
Subclasses of Command in net.rubyeye.xmemcached.command.binaryModifier and TypeClassDescriptionclassBase Binary command.classBinary protocol for append,prependclassList auth mechanisms commandclassAuth start commandclassAuth step commandclassAWS ElasticCache config commandclassCAS binary protocol implementationclassBinary delete commandclassFlush command for binary protocolclassBinary GAT/GATQ commandclassImplements get/getq,getk/getkq protocolclassA command for holding getkq commandsclassBinary incr/decr commandclassImplement noop protocolclassQuit command for binary protocolclassA command for holding getkq commandsclassStats command for binary protocolclassBase binary protocol implementationclassBinary touch commandclassBinary verbosity commandclassVersion command for binary protocolFields in net.rubyeye.xmemcached.command.binary with type parameters of type CommandModifier and TypeFieldDescriptionBinaryGetCommand.assocCommandsBinaryGetMultiCommand.mergeCommandsBinarySetMultiCommand.mergeCommandsMethods in net.rubyeye.xmemcached.command.binary that return types with arguments of type CommandModifier and TypeMethodDescriptionBinaryGetCommand.getAssocCommands()BinaryGetMultiCommand.getMergeCommands()BinarySetMultiCommand.getMergeCommands()Method parameters in net.rubyeye.xmemcached.command.binary with type arguments of type CommandModifier and TypeMethodDescriptionfinal voidBinaryGetCommand.setAssocCommands(List<Command> assocCommands) voidBinaryGetMultiCommand.setMergeCommands(Map<Object, Command> mergeCommands) voidBinarySetMultiCommand.setMergeCommands(Map<Object, Command> mergeCommands) -
Uses of Command in net.rubyeye.xmemcached.command.kestrel
Subclasses of Command in net.rubyeye.xmemcached.command.kestrelModifier and TypeClassDescriptionclassclassKestrel flush commandclassKestrel get commandclasskestrel set command -
Uses of Command in net.rubyeye.xmemcached.command.text
Subclasses of Command in net.rubyeye.xmemcached.command.textModifier and TypeClassDescriptionclassAWS ElasticCache config command, see Adding Auto Discovery To Your Client Library.classclassCAS command for text protocolclassDelete command for text protocolclassFlushAll command for text protocolclassAbstract get command for text protocolclassBulk-get command for text protocolclassGet command for text protocolclassIncr/Decr command for text protocolclassQuit command for text protocolclassclassStats command for text protocolclassStore command for text protocolclassTouch command for touch protocol.classVerbosity command for text protocolclassVersion command for text protocolFields in net.rubyeye.xmemcached.command.text with type parameters of type CommandModifier and TypeFieldDescriptionTextGetCommand.assocCommandsWhen MemcachedClient merge get commands,those commans which have the same key will be merged into one get command.The result command's assocCommands contains all these commands with the same key.TextGetCommand.mergeCommandsMethods in net.rubyeye.xmemcached.command.text that return types with arguments of type CommandModifier and TypeMethodDescriptionTextGetCommand.getAssocCommands()TextGetCommand.getMergeCommands()Method parameters in net.rubyeye.xmemcached.command.text with type arguments of type CommandModifier and TypeMethodDescriptionfinal voidTextGetCommand.setAssocCommands(List<Command> assocCommands) final voidTextGetCommand.setMergeCommands(Map<Object, Command> mergeCommands) -
Uses of Command in net.rubyeye.xmemcached.impl
Fields in net.rubyeye.xmemcached.impl declared as CommandModifier and TypeFieldDescription(package private) CommandOptimizer.BinaryGetQCollector.prevCommandprivate final CommandMemcachedHandler.CheckHeartResultThread.versionCommandFields in net.rubyeye.xmemcached.impl with type parameters of type CommandModifier and TypeFieldDescriptionprotected BlockingQueue<Command> MemcachedTCPSession.commandAlreadySentCommand which are already sentprivate final AtomicReference<Command> MemcachedTCPSession.currentCommandOptimizer.BinarySetQCollector.mergeCommandsprivate final ThreadLocal<List<Command>> Optimizer.threadLocalMethods in net.rubyeye.xmemcached.impl that return CommandModifier and TypeMethodDescriptionMemcachedTCPSession.getCurrentCommand()private final CommandOptimizer.mergeBuffer(Command firstCommand, Queue writeQueue, Queue<Command> executingCmds, int sendBufferSize) private final CommandOptimizer.mergeGetCommands(Command currentCmd, Queue writeQueue, Queue<Command> executingCmds, CommandType expectedCommandType) private final CommandOptimizer.mergeSetCommands(Command currentCmd, Queue writeQueue, Queue<Command> executingCmds, CommandType expectedCommandType, int sendBufferSize) private CommandOptimizer.newMergedCommand(Map<Object, Command> mergeCommands, int mergeCount, Optimizer.CommandCollector commandCollector, CommandType commandType) final CommandOptimizer.optimiezeGet(Queue writeQueue, Queue<Command> executingCmds, Command optimiezeCommand) Merge get operation to multi-get operationfinal CommandOptimizer.optimiezeMergeBuffer(Command optimiezeCommand, Queue writeQueue, Queue<Command> executingCmds, int sendBufferSize) merge buffers to fit socket's send buffer sizefinal CommandOptimizer.optimiezeSet(Queue writeQueue, Queue<Command> executingCmds, Command optimiezeCommand, int sendBufferSize) Optimizer.optimize(Command currentCommand, Queue writeQueue, Queue<Command> executingCmds, int sendBufferSize) private CommandMemcachedTCPSession.takeExecutingCommand()get current command from queueMethods in net.rubyeye.xmemcached.impl that return types with arguments of type CommandMethods in net.rubyeye.xmemcached.impl with parameters of type CommandModifier and TypeMethodDescriptionvoidMemcachedTCPSession.addCommand(Command command) private final CommandOptimizer.mergeBuffer(Command firstCommand, Queue writeQueue, Queue<Command> executingCmds, int sendBufferSize) private final CommandOptimizer.mergeGetCommands(Command currentCmd, Queue writeQueue, Queue<Command> executingCmds, CommandType expectedCommandType) private final CommandOptimizer.mergeSetCommands(Command currentCmd, Queue writeQueue, Queue<Command> executingCmds, CommandType expectedCommandType, int sendBufferSize) final CommandOptimizer.optimiezeGet(Queue writeQueue, Queue<Command> executingCmds, Command optimiezeCommand) Merge get operation to multi-get operationfinal CommandOptimizer.optimiezeMergeBuffer(Command optimiezeCommand, Queue writeQueue, Queue<Command> executingCmds, int sendBufferSize) merge buffers to fit socket's send buffer sizefinal CommandOptimizer.optimiezeSet(Queue writeQueue, Queue<Command> executingCmds, Command optimiezeCommand, int sendBufferSize) Optimizer.optimize(Command currentCommand, Queue writeQueue, Queue<Command> executingCmds, int sendBufferSize) voidMemcachedTCPSession.setCurrentCommand(Command cmd) voidvoidvoidvoidMethod parameters in net.rubyeye.xmemcached.impl with type arguments of type CommandModifier and TypeMethodDescriptionprivate CommandOptimizer.newMergedCommand(Map<Object, Command> mergeCommands, int mergeCount, Optimizer.CommandCollector commandCollector, CommandType commandType) Constructors in net.rubyeye.xmemcached.impl with parameters of type Command -
Uses of Command in net.rubyeye.xmemcached.networking
Methods in net.rubyeye.xmemcached.networking with parameters of type Command