Uses of Interface
net.spy.memcached.MemcachedNode
Packages that use MemcachedNode
Package
Description
Memcached client and transformation utils
Auth Utilities.
Fundamental protocol operation interfaces
Base classes for protocol abstractions.
Low-level operations for the memcached ascii protocol
Low-level operations for the memcached binary protocol
Cache Utilities.
-
Uses of MemcachedNode in net.spy.memcached
Classes in net.spy.memcached that implement MemcachedNodeClasses in net.spy.memcached that implement interfaces with type arguments of type MemcachedNodeModifier and TypeClassDescription(package private) class(package private) classImplements an Iterator which the KetamaNodeLoctaor may return to a client for iterating through alternate nodes for a given key.Fields in net.spy.memcached declared as MemcachedNodeModifier and TypeFieldDescriptionprivate MemcachedNode[]ArrayModNodeLocator.nodesprivate final MemcachedNodeMemcachedNodeROImpl.rootFields in net.spy.memcached with type parameters of type MemcachedNodeModifier and TypeFieldDescriptionprotected final ConcurrentLinkedQueue<MemcachedNode> MemcachedConnection.addedQueueAddedQueue is used to track the QueueAttachments for which operations have recently been queued.private Collection<MemcachedNode> KetamaNodeLocator.allNodesprivate final TreeMap<Long, MemcachedNode> KetamaIterator.ketamaNodesprivate TreeMap<Long, MemcachedNode> KetamaNodeLocator.ketamaNodesprivate Map<MemcachedNode, String> KetamaNodeKeyFormatter.nodeKeysprotected final ConcurrentLinkedQueue<MemcachedNode> MemcachedConnection.nodesToShutdownHolds all nodes that are scheduled for shutdown.private final SortedMap<Long, MemcachedNode> MemcachedConnection.reconnectQueuereconnectQueue contains the attachments that need to be reconnected.Methods in net.spy.memcached that return MemcachedNodeModifier and TypeMethodDescriptionBinaryConnectionFactory.createMemcachedNode(SocketAddress sa, SocketChannel c, int bufSize) ConnectionFactory.createMemcachedNode(SocketAddress sa, SocketChannel c, int bufSize) Create a new memcached node.DefaultConnectionFactory.createMemcachedNode(SocketAddress sa, SocketChannel c, int bufSize) private MemcachedNodeMemcachedClient.findNode(SocketAddress sa) private MemcachedNodeTapConnectionProvider.findNode(SocketAddress sa) private MemcachedNodeKetamaIterator.getNodeForKey(long hash) (package private) MemcachedNodeKetamaNodeLocator.getNodeForKey(long hash) ArrayModNodeLocator.getPrimary(String k) KetamaNodeLocator.getPrimary(String k) NodeLocator.getPrimary(String k) Get the primary location for the given key.ArrayModNodeLocator.NodeIterator.next()KetamaIterator.next()Methods in net.spy.memcached that return types with arguments of type MemcachedNodeModifier and TypeMethodDescriptionprotected List<MemcachedNode> MemcachedConnection.createConnections(Collection<InetSocketAddress> addrs) Create connections for the given list of addresses.ArrayModNodeLocator.getAll()KetamaNodeLocator.getAll()NodeLocator.getAll()Get all memcached nodes.protected TreeMap<Long, MemcachedNode> KetamaNodeLocator.getKetamaNodes()ArrayModNodeLocator.getSequence(String k) KetamaNodeLocator.getSequence(String k) NodeLocator.getSequence(String k) Get an iterator over the sequence of nodes that make up the backup locations for a given key.Methods in net.spy.memcached with parameters of type MemcachedNodeModifier and TypeMethodDescriptionprotected voidMemcachedConnection.addOperation(MemcachedNode node, Operation o) Enqueue an operation on the given node.voidTapConnectionProvider.addTapAckOp(MemcachedNode node, Operation op) (package private) booleanMemcachedConnection.belongsToCluster(MemcachedNode node) Makes sure that the given node belongs to the current cluster.private voidMemcachedConnection.connected(MemcachedNode node) Indicate a successful connect to the given node.private voidMemcachedConnection.finishConnect(SelectionKey sk, MemcachedNode node) Finish the connect phase and potentially verify its liveness.KetamaNodeKeyFormatter.getKeyForNode(MemcachedNode node, int repetition) Returns a uniquely identifying key, suitable for hashing by the KetamaNodeLocator algorithm.private voidMemcachedConnection.handleReads(MemcachedNode node) Handle pending reads for the given node.private voidMemcachedConnection.handleReadsAndWrites(SelectionKey sk, MemcachedNode node) A helper method forMemcachedConnection.handleIO(java.nio.channels.SelectionKey)to handle reads and writes if appropriate.private OperationMemcachedConnection.handleReadsWhenChannelEndOfStream(Operation currentOp, MemcachedNode node, ByteBuffer rbuf) Deal with an operation where the channel reached the end of a stream.private voidMemcachedConnection.handleWrites(MemcachedNode node) Handle pending writes for the given node.voidMemcachedConnection.insertOperation(MemcachedNode node, Operation o) Insert an operation on the given node to the beginning of the queue.KetamaNodeLocator.ketamaNodePositionsAtIteration(MemcachedNode node, int iteration) private voidMemcachedConnection.lostConnection(MemcachedNode node) Indicate a lost connection to the given node.BroadcastOpFactory.newOp(MemcachedNode n, CountDownLatch latch) Construct a new operation for delivery to the given node.private voidMemcachedConnection.potentiallyCloseLeakingChannel(SocketChannel ch, MemcachedNode node) Make sure channel connections are not leaked and properly close under faulty reconnect cirumstances.protected voidMemcachedConnection.queueReconnect(MemcachedNode node) Enqueue the givenMemcachedNodefor reconnect.private voidMemcachedConnection.readBufferAndLogMetrics(Operation currentOp, ByteBuffer rbuf, MemcachedNode node) Read from the buffer and add metrics information.private voidTapClient.tapAck(TapConnectionProvider conn, MemcachedNode node, TapOpcode opcode, int opaque, OperationCallback cb) Method parameters in net.spy.memcached with type arguments of type MemcachedNodeModifier and TypeMethodDescriptionvoidMemcachedConnection.addOperations(Map<MemcachedNode, Operation> ops) Enqueue the given list of operations on each handling node.MemcachedClient.broadcastOp(BroadcastOpFactory of, Collection<MemcachedNode> nodes) private CountDownLatchMemcachedClient.broadcastOp(BroadcastOpFactory of, Collection<MemcachedNode> nodes, boolean checkShuttingDown) MemcachedClientIF.broadcastOp(BroadcastOpFactory of, Collection<MemcachedNode> nodes) private CountDownLatchTapConnectionProvider.broadcastOp(BroadcastOpFactory of, Collection<MemcachedNode> nodes, boolean checkShuttingDown) MemcachedConnection.broadcastOperation(BroadcastOpFactory of, Collection<MemcachedNode> nodes) Broadcast an operation to a collection of nodes.ConnectionFactory.createLocator(List<MemcachedNode> nodes) Create a NodeLocator instance for the given list of nodes.DefaultConnectionFactory.createLocator(List<MemcachedNode> nodes) KetamaConnectionFactory.createLocator(List<MemcachedNode> nodes) protected voidKetamaNodeLocator.setKetamaNodes(List<MemcachedNode> nodes) Setup the KetamaNodeLocator with the list of nodes it should use.voidArrayModNodeLocator.updateLocator(List<MemcachedNode> newNodes) voidKetamaNodeLocator.updateLocator(List<MemcachedNode> nodes) voidNodeLocator.updateLocator(List<MemcachedNode> nodes) Update locator status.Constructors in net.spy.memcached with parameters of type MemcachedNodeConstructor parameters in net.spy.memcached with type arguments of type MemcachedNodeModifierConstructorDescriptionConstruct an ArraymodNodeLocator over the given array of nodes and using the given hash algorithm.protectedKetamaIterator(String k, int t, TreeMap<Long, MemcachedNode> ketamaNodes, HashAlgorithm hashAlg) Create a new KetamaIterator to be used by a client for an operation.KetamaNodeLocator(List<MemcachedNode> nodes, HashAlgorithm alg) Create a new KetamaNodeLocator using specified nodes and the specifed hash algorithm.KetamaNodeLocator(List<MemcachedNode> nodes, HashAlgorithm alg, Map<InetSocketAddress, Integer> nodeWeights, KetamaNodeLocatorConfiguration configuration) Create a new KetamaNodeLocator with specific nodes, hash, node key format, and weightKetamaNodeLocator(List<MemcachedNode> nodes, HashAlgorithm alg, KetamaNodeKeyFormatter.Format nodeKeyFormat, Map<InetSocketAddress, Integer> weights) Create a new KetamaNodeLocator with specific nodes, hash, node key format, and weightKetamaNodeLocator(List<MemcachedNode> nodes, HashAlgorithm alg, KetamaNodeLocatorConfiguration conf) Create a new KetamaNodeLocator using specified nodes and the specifed hash algorithm and configuration.privateKetamaNodeLocator(TreeMap<Long, MemcachedNode> smn, Collection<MemcachedNode> an, HashAlgorithm alg, Map<InetSocketAddress, Integer> nodeWeights, KetamaNodeLocatorConfiguration conf) privateKetamaNodeLocator(TreeMap<Long, MemcachedNode> smn, Collection<MemcachedNode> an, HashAlgorithm alg, Map<InetSocketAddress, Integer> nodeWeights, KetamaNodeLocatorConfiguration conf) -
Uses of MemcachedNode in net.spy.memcached.auth
Fields in net.spy.memcached.auth declared as MemcachedNodeMethods in net.spy.memcached.auth with parameters of type MemcachedNodeModifier and TypeMethodDescriptionvoidAuthThreadMonitor.authConnection(MemcachedConnection conn, OperationFactory opFact, AuthDescriptor authDescriptor, MemcachedNode node) Authenticate a new connection.private voidAuthThreadMonitor.interruptOldAuth(MemcachedNode nodeToStop) Constructors in net.spy.memcached.auth with parameters of type MemcachedNodeModifierConstructorDescription -
Uses of MemcachedNode in net.spy.memcached.ops
Methods in net.spy.memcached.ops that return MemcachedNodeModifier and TypeMethodDescriptionOperation.getHandlingNode()Get the node that should've been handling this operation.Methods in net.spy.memcached.ops that return types with arguments of type MemcachedNodeMethods in net.spy.memcached.ops with parameters of type MemcachedNodeModifier and TypeMethodDescriptionvoidVBucketAware.addNotMyVbucketNode(MemcachedNode node) voidTapOperation.Callback.gotAck(MemcachedNode node, TapOpcode opcode, int opaque) voidObserveOperation.Callback.gotData(String key, long cas, MemcachedNode node, ObserveResponse or) Callback for each result from a observe.voidOperation.setHandlingNode(MemcachedNode to) Set a reference to the node that will be/is handling this operation.Method parameters in net.spy.memcached.ops with type arguments of type MemcachedNodeModifier and TypeMethodDescriptionvoidVBucketAware.setNotMyVbucketNodes(Collection<MemcachedNode> nodes) -
Uses of MemcachedNode in net.spy.memcached.protocol
Classes in net.spy.memcached.protocol that implement MemcachedNodeModifier and TypeClassDescriptionclassRepresents a node with the memcached cluster, along with buffering and operation queues.Fields in net.spy.memcached.protocol declared as MemcachedNodeFields in net.spy.memcached.protocol with type parameters of type MemcachedNodeModifier and TypeFieldDescriptionprotected Collection<MemcachedNode> BaseOperationImpl.notMyVbucketNodesMethods in net.spy.memcached.protocol that return MemcachedNodeMethods in net.spy.memcached.protocol with parameters of type MemcachedNode -
Uses of MemcachedNode in net.spy.memcached.protocol.ascii
Classes in net.spy.memcached.protocol.ascii that implement MemcachedNodeModifier and TypeClassDescriptionfinal classMemcached node for the ASCII protocol. -
Uses of MemcachedNode in net.spy.memcached.protocol.binary
Classes in net.spy.memcached.protocol.binary that implement MemcachedNodeModifier and TypeClassDescriptionclassImplementation of MemcachedNode for speakers of the binary protocol.Methods in net.spy.memcached.protocol.binary that return types with arguments of type MemcachedNodeModifier and TypeMethodDescriptionMultiKeyOperationImpl.getNotMyVbucketNodes()SingleKeyOperationImpl.getNotMyVbucketNodes()Methods in net.spy.memcached.protocol.binary with parameters of type MemcachedNodeModifier and TypeMethodDescriptionvoidMultiKeyOperationImpl.addNotMyVbucketNode(MemcachedNode node) voidSingleKeyOperationImpl.addNotMyVbucketNode(MemcachedNode node) Method parameters in net.spy.memcached.protocol.binary with type arguments of type MemcachedNodeModifier and TypeMethodDescriptionvoidMultiKeyOperationImpl.setNotMyVbucketNodes(Collection<MemcachedNode> nodes) voidSingleKeyOperationImpl.setNotMyVbucketNodes(Collection<MemcachedNode> nodes) -
Uses of MemcachedNode in net.spy.memcached.tapmessage
Fields in net.spy.memcached.tapmessage declared as MemcachedNodeMethods in net.spy.memcached.tapmessage that return MemcachedNodeConstructors in net.spy.memcached.tapmessage with parameters of type MemcachedNodeModifierConstructorDescriptionTapAck(TapConnectionProvider conn, MemcachedNode node, TapOpcode opcode, int opaque, OperationCallback cb) -
Uses of MemcachedNode in net.spy.memcached.util
Methods in net.spy.memcached.util with parameters of type MemcachedNodeModifier and TypeMethodDescriptionDefaultKetamaNodeLocatorConfiguration.getKeyForNode(MemcachedNode node, int repetition) Delegates to the KetamaNodeKeyFormatterKetamaNodeLocatorConfiguration.getKeyForNode(MemcachedNode node, int repetition) Returns a uniquely identifying key, suitable for hashing by the KetamaNodeLocator algorithm.