Examples of RedisServer


Examples of org.platformlayer.service.redis.model.RedisServer

  @Test
  public void testCreateAndDeleteItem() throws Exception {
    String id = "redis" + random.randomAlphanumericString(8);

    RedisServer redis = new RedisServer();
    redis.dnsName = id + ".test.platformlayer.org";

    redis = putItem(id, redis);
    redis = waitForHealthy(redis);
View Full Code Here

Examples of org.platformlayer.service.redis.model.RedisServer

  public void handler() throws OpsException, IOException {
  }

  @Override
  protected void addChildren() throws OpsException {
    RedisServer model = OpsContext.get().getInstance(RedisServer.class);

    InstanceBuilder vm;

    {
      vm = InstanceBuilder.build(model.dnsName, this, model.getTags());

      // TODO: Memory _really_ needs to be configurable here!
      vm.publicPorts.add(PORT);

      vm.minimumMemoryMb = 1024;

      vm.hostPolicy.allowRunInContainer = true;
      addChild(vm);
    }

    vm.addChild(PackageDependency.build("redis-server"));

    RedisTemplateModel template = injected(RedisTemplateModel.class);

    vm.addChild(TemplatedFile.build(template, new File("/etc/redis/redis.conf")).setFileMode("444"));

    // Collectd not restarting correctly (doesn't appear to be hostname problems??)
    // instance.addChild(CollectdCollector.build());

    {
      PublicEndpoint endpoint = injected(PublicEndpoint.class);
      // endpoint.network = null;
      endpoint.publicPort = PORT;
      endpoint.backendPort = PORT;
      endpoint.dnsName = model.dnsName;

      endpoint.tagItem = model.getKey();
      endpoint.parentItem = model.getKey();

      vm.addChild(endpoint);
    }

    vm.addChild(ManagedService.build("redis-server"));
View Full Code Here

Examples of org.springframework.data.redis.connection.RedisServer

   * @see DATAREDIS-330
   */
  @Test
  public void monitorShouldBeSentCorrectly() {

    RedisServer server = new RedisServer("127.0.0.1", 6382);
    server.setName("anothermaster");
    server.setQuorum(3L);

    connection.monitor(server);
    verify(jedisMock, times(1)).sentinelMonitor(eq("anothermaster"), eq("127.0.0.1"), eq(6382), eq(3));
  }
View Full Code Here

Examples of redis.embedded.RedisServer

        private RedisServer redisServer;


        @Override
        public void afterPropertiesSet() throws Exception {
            redisServer = new RedisServer(Protocol.DEFAULT_PORT);
            redisServer.start();
        }
View Full Code Here

Examples of redis.embedded.RedisServer

        private RedisServer redisServer;


        @Override
        public void afterPropertiesSet() throws Exception {
            redisServer = new RedisServer(Protocol.DEFAULT_PORT);
            redisServer.start();
        }
View Full Code Here

Examples of redis.embedded.RedisServer

    @Autowired
    private SessionRepository<S> repository;

    @Before
    public void setup() throws IOException {
        redisServer = new RedisServer(getPort());
        redisServer.start();
    }
View Full Code Here

Examples of redis.embedded.RedisServer

      thisServer.setExecutable(true);

      PortLock portLock = PortUtils.getNextAvailablePort(basePort);
      try {
        logger.info("Using port from port lock: " + portLock.getPort());
        redisServer = new RedisServer(thisServer, portLock.getPort());
        redisServer.start();
        jedis = new Jedis("localhost", portLock.getPort());
      } finally {
        portLock.release();
      }
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.