public String getRoleReported() { return get(INFO.ROLE_REPORTED); }
public String getRunId() { return get(INFO.RUN_ID); }
public String getFlags() { return get(INFO.FLAGS); }
/** * @param info must not be null * @return {@literal null} if no entry found for requested {@link INFO}. */ public String get(INFO info) { Assert.notNull(info, "Cannot retrieve client information for 'null'."); return get(info.key); }
private Long getLongValueOf(INFO info) { String value = get(info); return value == null ? null : Long.valueOf(value); } }
/** * Creates a new {@link RedisServer} with the given {@code host}, {@code port} and {@code properties}. * * @param host must not be {@literal null} * @param port * @param properties may be {@literal null} */ public RedisServer(String host, int port, Properties properties) { super(host, port); this.properties = properties; String name = host + ":" + port; if (properties != null && properties.containsKey(INFO.NAME.key)) { name = get(INFO.NAME); } setName(name); }
public String getRoleReported() { return get(INFO.ROLE_REPORTED); }
public String getFlags() { return get(INFO.FLAGS); }
public String getRoleReported() { return get(INFO.ROLE_REPORTED); }
public String getFlags() { return get(INFO.FLAGS); }
public String getRunId() { return get(INFO.RUN_ID); }
public String getRunId() { return get(INFO.RUN_ID); }
private Long getLongValueOf(INFO info) { String value = get(info); return value == null ? null : Long.valueOf(value); } }
private Long getLongValueOf(INFO info) { String value = get(info); return value == null ? null : Long.valueOf(value); } }
/** * @param info must not be null * @return {@literal null} if no entry found for requested {@link INFO}. */ public String get(INFO info) { Assert.notNull(info, "Cannot retrieve client information for 'null'."); return get(info.key); }
/** * @param info must not be null * @return {@literal null} if no entry found for requested {@link INFO}. */ public String get(INFO info) { Assert.notNull(info, "Cannot retrieve client information for 'null'."); return get(info.key); }
/** * Creates a new {@link RedisServer} with the given {@code host}, {@code port} and {@code properties}. * * @param host must not be {@literal null} * @param port * @param properties may be {@literal null} */ public RedisServer(String host, int port, Properties properties) { super(host, port); this.properties = properties; String name = host + ":" + port; if (properties != null && properties.containsKey(INFO.NAME.key)) { name = get(INFO.NAME); } setName(name); }
/** * Creates a new {@link RedisServer} with the given {@code host}, {@code port} and {@code properties}. * * @param host must not be {@literal null} * @param port * @param properties may be {@literal null} */ public RedisServer(String host, int port, Properties properties) { super(host, port); this.properties = properties; String name = host + ":" + port; if (properties != null && properties.containsKey(INFO.NAME.key)) { name = get(INFO.NAME); } setName(name); }