Beispiel #1
0
    public static int Keyspace_Init(SWIGTYPE_p_void client, Keyspace_NodeParams arg1)
    {
        int ret = keyspace_clientPINVOKE.Keyspace_Init(SWIGTYPE_p_void.getCPtr(client), Keyspace_NodeParams.getCPtr(arg1));

        if (keyspace_clientPINVOKE.SWIGPendingException.Pending)
        {
            throw keyspace_clientPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Beispiel #2
0
        public Client(string[] nodes)
        {
            cptr = keyspace_client.Keyspace_Create();
            result = null;

            Keyspace_NodeParams nodeParams = new Keyspace_NodeParams(nodes.Length);
            for (int i = 0; i < nodes.Length; i++)
                nodeParams.AddNode(nodes[i]);

            int status = keyspace_client.Keyspace_Init(cptr, nodeParams);
            nodeParams.Close();
        }
Beispiel #3
0
        public Client(string[] nodes)
        {
            cptr   = keyspace_client.Keyspace_Create();
            result = null;

            Keyspace_NodeParams nodeParams = new Keyspace_NodeParams(nodes.Length);

            for (int i = 0; i < nodes.Length; i++)
            {
                nodeParams.AddNode(nodes[i]);
            }

            int status = keyspace_client.Keyspace_Init(cptr, nodeParams);

            nodeParams.Close();
        }
 internal static HandleRef getCPtr(Keyspace_NodeParams obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
Beispiel #5
0
 internal static HandleRef getCPtr(Keyspace_NodeParams obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
Beispiel #6
0
 public static int Keyspace_Init(SWIGTYPE_p_void client, Keyspace_NodeParams arg1)
 {
     int ret = keyspace_clientPINVOKE.Keyspace_Init(SWIGTYPE_p_void.getCPtr(client), Keyspace_NodeParams.getCPtr(arg1));
     if (keyspace_clientPINVOKE.SWIGPendingException.Pending) throw keyspace_clientPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }