def configure(self, config):
     TarantoolServer.configure(self, config)
     with open(self.config) as fp:
         dummy_section_name = "tarantool"
         config = ConfigParser.ConfigParser()
         config.readfp(TarantoolConfigFile(fp, dummy_section_name))
         self.port = int(config.get(dummy_section_name, "wal_feeder_bind_port"))
Esempio n. 2
0
 def configure(self, config):
   TarantoolServer.configure(self, config)
   with open(self.config) as fp:
     dummy_section_name = "tarantool"
     config = ConfigParser.ConfigParser()
     config.readfp(TarantoolConfigFile(fp, dummy_section_name))
     self.port = int(config.get(dummy_section_name, "wal_feeder_bind_port"))
Esempio n. 3
0
 def configure(self, config):
   TarantoolServer.configure(self, config)
   with open(self.config) as fp:
     dummy_section_name = "tarantool"
     config = ConfigParser.ConfigParser()
     config.readfp(TarantoolConfigFile(fp, dummy_section_name))
     self.primary_port = int(config.get(dummy_section_name, "primary_port"))
     self.admin_port = int(config.get(dummy_section_name, "admin_port"))
     self.port = self.admin_port
     self.admin = TarantoolAdmin("localhost", self.admin_port)
     self.sql = Box("localhost", self.primary_port)
Esempio n. 4
0
 def configure(self, config):
     TarantoolServer.configure(self, config)
     with open(self.config) as fp:
         dummy_section_name = "tarantool"
         config = ConfigParser.ConfigParser()
         config.readfp(TarantoolConfigFile(fp, dummy_section_name))
         self.primary_port = int(
             config.get(dummy_section_name, "primary_port"))
         self.admin_port = int(config.get(dummy_section_name, "admin_port"))
         self.port = self.admin_port
         self.admin = TarantoolAdmin("localhost", self.admin_port)
         self.sql = Box("localhost", self.primary_port)
    def configure(self, config):
        TarantoolServer.configure(self, config)
        with open(self.config) as fp:
            dummy_section_name = "tarantool"
            config = ConfigParser.ConfigParser()
            config.readfp(TarantoolConfigFile(fp, dummy_section_name))

            self.primary_port = self.get_option_int(config, dummy_section_name, "primary_port")
            self.admin_port = self.get_option_int(config, dummy_section_name, "admin_port")
            self.memcached_port = self.get_option_int(config, dummy_section_name, "memcached_port")

        self.port = self.admin_port
        self.admin = AdminConnection("localhost", self.admin_port)
        self.sql = BoxConnection("localhost", self.primary_port)
        if self.memcached_port != 0:
            # Run memcached client
            self.memcached = MemcachedConnection('localhost', self.memcached_port)
Esempio n. 6
0
    def configure(self, config):
        TarantoolServer.configure(self, config)
        with open(self.config) as fp:
            dummy_section_name = "tarantool"
            config = ConfigParser.ConfigParser()
            config.readfp(TarantoolConfigFile(fp, dummy_section_name))

            self.primary_port = self.get_option_int(config, dummy_section_name,
                                                    "primary_port")
            self.admin_port = self.get_option_int(config, dummy_section_name,
                                                  "admin_port")
            self.memcached_port = self.get_option_int(config,
                                                      dummy_section_name,
                                                      "memcached_port")

        self.port = self.admin_port
        self.admin = AdminConnection("localhost", self.admin_port)
        self.sql = BoxConnection("localhost", self.primary_port)
        if self.memcached_port != 0:
            # Run memcached client
            self.memcached = MemcachedConnection('localhost',
                                                 self.memcached_port)
Esempio n. 7
0
 def __init__(self, core="tarantool", module="box"):
     TarantoolServer.__init__(self, core, module)
Esempio n. 8
0
 def __new__(cls, core="tarantool", module="box"):
     return TarantoolServer.__new__(cls)
 def __init__(self, core="tarantool", module="box"):
     TarantoolServer.__init__(self, core, module)
Esempio n. 10
0
 def __new__(cls, core="tarantool", module="box"):
     return TarantoolServer.__new__(cls)