Examples of afterPropertiesSet()


Examples of org.springframework.data.redis.connection.srp.SrpConnectionFactory.afterPropertiesSet()

    // SRP
    SrpConnectionFactory srpConnFactory = new SrpConnectionFactory();
    srpConnFactory.setPort(SettingsUtils.getPort());
    srpConnFactory.setHostName(SettingsUtils.getHost());
    srpConnFactory.afterPropertiesSet();

    StringRedisTemplate templateSRP = new StringRedisTemplate(srpConnFactory);
    DefaultRedisMap mapSRP = new DefaultRedisMap("bound:key:mapSRP", templateSRP);
    DefaultRedisSet setSRP = new DefaultRedisSet("bound:key:setSRP", templateSRP);
    RedisList listSRP = new DefaultRedisList("bound:key:listSRP", templateSRP);
View Full Code Here

Examples of org.springframework.data.redis.core.RedisTemplate.afterPropertiesSet()

    jedisConnFactory.setHostName(SettingsUtils.getHost());
    jedisConnFactory.afterPropertiesSet();

    RedisTemplate genericTemplate = new RedisTemplate();
    genericTemplate.setConnectionFactory(jedisConnFactory);
    genericTemplate.afterPropertiesSet();

    RedisTemplate<String, String> xstreamGenericTemplate = new RedisTemplate<String, String>();
    xstreamGenericTemplate.setConnectionFactory(jedisConnFactory);
    xstreamGenericTemplate.setDefaultSerializer(serializer);
    xstreamGenericTemplate.afterPropertiesSet();
View Full Code Here

Examples of org.springframework.data.redis.core.StringRedisTemplate.afterPropertiesSet()

  }

  @Test
  public void testDefaultPayloadSerializer() throws Exception {
    StringRedisTemplate template = new StringRedisTemplate(connectionFactory);
    template.afterPropertiesSet();

    adapter.afterPropertiesSet();
    adapter.handleMessage(new GenericMessage<String>("message1"));
    assertEquals("message1", template.boundListOps(QUEUE_NAME).rightPop());
  }
View Full Code Here

Examples of org.springframework.data.redis.listener.adapter.MessageListenerAdapter.afterPropertiesSet()

  }

  private void setupMessageListener(CountDownLatch latch, String topic) throws InterruptedException {
    MessageListenerAdapter listener = new MessageListenerAdapter();
    listener.setDelegate(new Listener(latch));
    listener.afterPropertiesSet();

    this.container = new RedisMessageListenerContainer();
    container.setConnectionFactory(this.redisAvailableRule.getResource());
    container.afterPropertiesSet();
    container.addMessageListener(listener, Collections.<Topic> singletonList(new ChannelTopic(topic)));
View Full Code Here

Examples of org.springframework.data.redis.support.collections.RedisCollectionFactoryBean.afterPropertiesSet()

  private RedisStore createCollection(String key, CollectionType type) {
    RedisCollectionFactoryBean fb = new RedisCollectionFactoryBean();
    fb.setKey(key);
    fb.setTemplate(template);
    fb.setType(type);
    fb.afterPropertiesSet();

    return fb.getObject();
  }

  @Test
View Full Code Here

Examples of org.springframework.data.solr.core.SolrTemplate.afterPropertiesSet()

  private SolrTemplate createTemplate(SolrServer solrServer) {

    SolrTemplate template = new SolrTemplate(solrServer);
    addSchemaCreationFeaturesIfEnabled(template);
    template.afterPropertiesSet();
    return template;
  }

  @Override
  public <T, ID extends Serializable> SolrEntityInformation<T, ID> getEntityInformation(Class<T> domainClass) {
View Full Code Here

Examples of org.springframework.data.solr.core.convert.MappingSolrConverter.afterPropertiesSet()

    }
  }

  private final SolrConverter getDefaultSolrConverter() {
    MappingSolrConverter converter = new MappingSolrConverter(this.mappingContext);
    converter.afterPropertiesSet(); // have to call this one to initialize default converters
    return converter;
  }

  @Override
  public final SolrServer getSolrServer() {
View Full Code Here

Examples of org.springframework.erlang.connection.SimpleConnectionFactory.afterPropertiesSet()

  protected void initializeDefaultErlangTemplate() {
    String peerNodeName = nodeName;
    logger.debug("Creating jinterface connection with peerNodeName = [" + peerNodeName + "]");
    SimpleConnectionFactory otpConnectionFactory = new SimpleConnectionFactory("rabbit-spring-monitor",
        peerNodeName, this.cookie);
    otpConnectionFactory.afterPropertiesSet();
    createErlangTemplate(otpConnectionFactory);
  }

  protected void createErlangTemplate(ConnectionFactory otpConnectionFactory) {
    erlangTemplate = new ErlangTemplate(otpConnectionFactory);
View Full Code Here

Examples of org.springframework.erlang.connection.SingleConnectionFactory.afterPropertiesSet()

    String selfNodeName = "rabbit-monitor";
    String peerNodeName = NODE_NAME;

    SingleConnectionFactory cf = new SingleConnectionFactory(selfNodeName, peerNodeName);

    cf.afterPropertiesSet();
    ErlangTemplate template = new ErlangTemplate(cf);
    template.afterPropertiesSet();

    long number = (Long) template.executeAndConvertRpc("erlang", "abs", -161803399);
    Assert.assertEquals(161803399, number);
View Full Code Here

Examples of org.springframework.erlang.core.ErlangTemplate.afterPropertiesSet()

    SingleConnectionFactory cf = new SingleConnectionFactory(selfNodeName, peerNodeName);

    cf.afterPropertiesSet();
    ErlangTemplate template = new ErlangTemplate(cf);
    template.afterPropertiesSet();

    long number = (Long) template.executeAndConvertRpc("erlang", "abs", -161803399);
    Assert.assertEquals(161803399, number);

    cf.destroy();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.