@Test public void test(){ IRegistrar registrar = new RedisRegistrarImpl(); registrar.register("127.0.0.1:62880", "com.ofcoder.farpc.demo.api.IWelcome"); registrar.discover("com.ofcoder.farpc.demo.api.IWelcome"); }
public void register(String providerAddress, String service) { RedisOparetor.getJedis().lpush(FOLDER + SEPARATOR + service, providerAddress); }
RedisRegistrarImpl extends AbstractRegistrar { public void register(String providerAddress, String service) { RedisOparetor.getJedis().lpush(FOLDER + SEPARATOR + service, providerAddress); } }
RedisRegistrarImpl extends AbstractRegistrar { public void register(String providerAddress, String service) { RedisOparetor.getJedis().lpush(FOLDER + SEPARATOR + service, providerAddress); }  }
RedisRegistrarImpl extends AbstractRegistrar { public void register(String providerAddress, String service) { RedisOparetor.getJedis().lpush(FOLDER + SEPARATOR + service, providerAddress); }  void register(String providerAddress, String service); @Override List<String> lookup(String service); }
RedisRegistrarImpl extends AbstractRegistrar { public void register(String providerAddress, String service) { RedisOparetor.getJedis().lpush(FOLDER + SEPARATOR + service, providerAddress); }  void register(String providerAddress, String service); @Override List<String> lookup(String service);  }