Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ServerOptions.h « parameters « moses2 - github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2b67e5156cc34f1592ac21ccd86632961bd421d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// -*- mode: c++; indent-tabs-mode: nil; tab-width: 2 -*-
#pragma once

#include "../legacy/xmlrpc-c.h"
#include <string>
#include <map>
#include <stdint.h>

namespace Moses2
{
class Parameter;

struct
    ServerOptions {
  bool is_serial;
  uint32_t numThreads; // might not be used any more, actually

  size_t sessionTimeout;   // this is related to Moses translation sessions
  size_t sessionCacheSize; // this is related to Moses translation sessions

  int port;              // this is for the abyss server
  std::string logfile;   // this is for the abyss server
  int maxConn;           // this is for the abyss server
  int maxConnBacklog;    // this is for the abyss server
  int keepaliveTimeout;  // this is for the abyss server
  int keepaliveMaxConn;  // this is for the abyss server
  int timeout;           // this is for the abyss server

  bool init(Parameter const& param);
  ServerOptions(Parameter const& param);
  ServerOptions();

  bool
  update(std::map<std::string,xmlrpc_c::value>const& params) {
    return true;
  }

};

}