Used to hold the configuration parameters.
        public void StartHotrodServer()
        {
            ConfigurationBuilder builder = new ConfigurationBuilder();
            conf = builder.AddServers("127.0.0.1:11222").Build();

            string jbossHome = System.Environment.GetEnvironmentVariable("JBOSS_HOME");
            if (jbossHome == null)
            {
                throw new Exception("JBOSS_HOME env variable not set.");
            }

            Assert.IsTrue(PortProbe.IsPortClosed(conf.Servers()[0].Host(),
                                                 conf.Servers()[0].Port(),
                                                 millisTimeout:10000),
                          "Another process already listening on the same ip/port.");

            hrServer = new Process();
            hrServer.StartInfo.FileName = buildStartCommand(jbossHome);
            hrServer.StartInfo.UseShellExecute = false;
            if (PlatformUtils.isUnix()) {
                // Drop the output generated by the server on the console (data present in log file).
                hrServer.StartInfo.RedirectStandardOutput = true;
                hrServer.StartInfo.RedirectStandardError = true;
                hrServer.OutputDataReceived += new DataReceivedEventHandler(DropOutputHandler);
                hrServer.ErrorDataReceived += new DataReceivedEventHandler(DropOutputHandler);
            }
            hrServer.Start();

            Assert.IsTrue(PortProbe.IsPortOpen(conf.Servers()[0].Host(),
                                               conf.Servers()[0].Port()),
                          "Server not listening on the expected ip/port.");

            remoteManager = new RemoteCacheManager(conf, serializer);
            remoteManager.Start();
        }
 public RemoteCacheManager(Configuration configuration, bool start, bool useCompatibilityMarshaller)
 {
     if (useCompatibilityMarshaller)
         manager = new Infinispan.HotRod.RemoteCacheManager(configuration, new Infinispan.HotRod.CompatibilityMarshaller(), start);
     else
         // Don't serialize, use the already serialized data.
         manager = new Infinispan.HotRod.RemoteCacheManager(configuration, new Infinispan.HotRod.IdentityMarshaller(), start);
 }
 public RemoteCacheManager(Configuration configuration)
 {
     // Don't serialize, use the already serialized data.
     manager = new Infinispan.HotRod.RemoteCacheManager(configuration, new Infinispan.HotRod.IdentityMarshaller());
 }
 public RemoteCacheManager(Configuration configuration, Infinispan.HotRod.IMarshaller marshaller)
 {
     manager = new Infinispan.HotRod.RemoteCacheManager(configuration, marshaller);
 }