Search in sources :

Example 6 with MemcachedClientIF

use of net.spy.memcached.MemcachedClientIF in project ignite by apache.

the class ClientMemcachedProtocolSelfTest method testCustomPort.

/**
 * @throws Exception If failed.
 */
@Test
public void testCustomPort() throws Exception {
    customPort = 11212;
    Ignite g = startGrid();
    assert g != null;
    assert g.cluster().nodes().size() == gridCount() + 1;
    MemcachedClientIF c = startClient();
    Assert.assertTrue(c.set("key", 0, 1).get());
    Assert.assertEquals(1, c.get("key"));
    c.shutdown();
    stopGrid();
}
Also used : MemcachedClientIF(net.spy.memcached.MemcachedClientIF) Ignite(org.apache.ignite.Ignite) Test(org.junit.Test)

Aggregations

MemcachedClientIF (net.spy.memcached.MemcachedClientIF)6 Ticket (org.apereo.cas.ticket.Ticket)2 Predicate (com.google.common.base.Predicate)1 Supplier (com.google.common.base.Supplier)1 ImmutableMap (com.google.common.collect.ImmutableMap)1 ImmutableSet (com.google.common.collect.ImmutableSet)1 ServiceEmitter (com.metamx.emitter.service.ServiceEmitter)1 ServiceMetricEvent (com.metamx.emitter.service.ServiceMetricEvent)1 AbstractMonitor (com.metamx.metrics.AbstractMonitor)1 ResourceHolder (io.druid.collections.ResourceHolder)1 StupidResourceHolder (io.druid.collections.StupidResourceHolder)1 IOException (java.io.IOException)1 InetSocketAddress (java.net.InetSocketAddress)1 HashMap (java.util.HashMap)1 Map (java.util.Map)1 Set (java.util.Set)1 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)1 ConcurrentMap (java.util.concurrent.ConcurrentMap)1 AtomicLong (java.util.concurrent.atomic.AtomicLong)1 AtomicReference (java.util.concurrent.atomic.AtomicReference)1