示例#1
0
 /** \fn Sequoiadb(List<string> connStrings)
  *  \brief Constructor
  *  \param connStrings Remote server addresses "IP : Port"
  */
 public Sequoiadb(List<string> connStrings)
 {
     if (connStrings.Count == 0)
         throw new BaseException("SDB_INVALIDARG");
     serverAddresses = new ServerAddress[connStrings.Count];
     for (int i = 0; i < connStrings.Count; i++)
     {
         try
         {
             serverAddresses[i] = new ServerAddress(connStrings[i]);
         }
         catch (BaseException e)
         {
             throw e;
         }
     }
 }
示例#2
0
 //private readonly Logger logger = new Logger("IConnectionICPImpl");
 public ConnectionTCPImpl(ServerAddress addr, ConfigOptions opts)
 {
     this.hostAddress = addr;
     this.options = opts;
 }
示例#3
0
        //private readonly Logger logger = new Logger("IConnectionICPImpl");

        public ConnectionTCPImpl(ServerAddress addr, ConfigOptions opts)
        {
            this.hostAddress = addr;
            this.options     = opts;
        }
示例#4
0
 /** \fn Sequoiadb(string host, int port)
  *  \brief Constructor
  *  \param addr IP address
  *  \param port Port
  */
 public Sequoiadb(string host, int port)
 {
     serverAddress = new ServerAddress(host, port);
 }
示例#5
0
 /** \fn Sequoiadb(string connString)
  *  \brief Constructor
  *  \param connString Remote server address "IP : Port" or "IP"(port is 11810)
  */
 public Sequoiadb(string connString)
 {
     serverAddress = new ServerAddress(connString);
 }
示例#6
0
 /** \fn Sequoiadb()
  *  \brief Default Constructor
  *
  * Server address "127.0.0.1 : 11810"
  */
 public Sequoiadb()
 {
     serverAddress = new ServerAddress();
 }