Beispiel #1
0
    public void Read(TProtocol iprot)
    {
        TField field;

        iprot.ReadStructBegin();
        while (true)
        {
            field = iprot.ReadFieldBegin();
            if (field.Type == TType.Stop)
            {
                break;
            }
            switch (field.ID)
            {
            case 1:
                if (field.Type == TType.Struct)
                {
                    Kill_options = new KillOptions();
                    Kill_options.Read(iprot);
                }
                else
                {
                    TProtocolUtil.Skip(iprot, field.Type);
                }
                break;

            case 2:
                if (field.Type == TType.Struct)
                {
                    Rebalance_options = new RebalanceOptions();
                    Rebalance_options.Read(iprot);
                }
                else
                {
                    TProtocolUtil.Skip(iprot, field.Type);
                }
                break;

            default:
                TProtocolUtil.Skip(iprot, field.Type);
                break;
            }
            iprot.ReadFieldEnd();
        }
        iprot.ReadStructEnd();
    }
 public void Read (TProtocol iprot)
 {
   TField field;
   iprot.ReadStructBegin();
   while (true)
   {
     field = iprot.ReadFieldBegin();
     if (field.Type == TType.Stop) { 
       break;
     }
     switch (field.ID)
     {
       case 1:
         if (field.Type == TType.Struct) {
           Kill_options = new KillOptions();
           Kill_options.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 2:
         if (field.Type == TType.Struct) {
           Rebalance_options = new RebalanceOptions();
           Rebalance_options.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
Beispiel #3
0
 public void send_rebalance(string name, RebalanceOptions options)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("rebalance", TMessageType.Call, seqid_));
   rebalance_args args = new rebalance_args();
   args.Name = name;
   args.Options = options;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }
Beispiel #4
0
 public IAsyncResult send_rebalance(AsyncCallback callback, object state, string name, RebalanceOptions options)
Beispiel #5
0
    public void rebalance(string name, RebalanceOptions options)
    {
      #if !SILVERLIGHT
      send_rebalance(name, options);
      recv_rebalance();

      #else
      var asyncResult = Begin_rebalance(null, null, name, options);
      End_rebalance(asyncResult);

      #endif
    }
Beispiel #6
0
 public IAsyncResult Begin_rebalance(AsyncCallback callback, object state, string name, RebalanceOptions options)
 {
   return send_rebalance(callback, state, name, options);
 }