redis.clients.jedis.DebugParams Java Examples

The following examples show how to use redis.clients.jedis.DebugParams. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TracingJedisCluster.java    From java-redis-client with Apache License 2.0 5 votes vote down vote up
@Override
public String debug(DebugParams params) {
  Span span = helper.buildSpan("debug");
  span.setTag("params", Arrays.toString(params.getCommand()));
  try {
    return super.debug(params);
  } catch (Exception e) {
    onError(e, span);
    throw e;
  } finally {
    span.finish();
  }
}
 
Example #2
Source File: ControlCommandsTest.java    From cachecloud with Apache License 2.0 5 votes vote down vote up
@Test
public void debug() {
  jedis.set("foo", "bar");
  String resp = jedis.debug(DebugParams.OBJECT("foo"));
  assertNotNull(resp);
  resp = jedis.debug(DebugParams.RELOAD());
  assertNotNull(resp);
}
 
Example #3
Source File: JedisAdapter.java    From gameserver with Apache License 2.0 5 votes vote down vote up
@Override
public String debug(DebugParams params) {
	redis.clients.jedis.Jedis delegate = pool.getResource();
	try {
		return delegate.debug(params);
	} finally {
		pool.returnResource(delegate);
	}
}
 
Example #4
Source File: JedisDummyAdapter.java    From gameserver with Apache License 2.0 4 votes vote down vote up
@Override
public String debug(DebugParams params) {
	return null;
}
 
Example #5
Source File: DefaultRedis.java    From craft-atom with MIT License 4 votes vote down vote up
private String debugobject0(Jedis j, String key) {
	return debug0(j, DebugParams.OBJECT(key));
}
 
Example #6
Source File: DefaultRedis.java    From craft-atom with MIT License 4 votes vote down vote up
private String debugsegfault0(Jedis j) {
	return debug0(j, DebugParams.SEGFAULT());
}
 
Example #7
Source File: DefaultRedis.java    From craft-atom with MIT License 4 votes vote down vote up
private String debug0(Jedis j, DebugParams params) {
	return j.debug(params);
}
 
Example #8
Source File: JedisAllCommand.java    From gameserver with Apache License 2.0 2 votes vote down vote up
/**
 * @param params
 * @return
 * @see redis.clients.jedis.BinaryJedis#debug(redis.clients.jedis.DebugParams)
 */
public abstract String debug(DebugParams params);
 
Example #9
Source File: BasicCommands.java    From cachecloud with Apache License 2.0 votes vote down vote up
String debug(DebugParams params);