static void n_SetMap_Ljava_util_Map_(IntPtr jnienv, IntPtr native__this, IntPtr native_map)
        {
            global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureValueSet __this = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureValueSet> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            var map = global::Android.Runtime.JavaDictionary <string, global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureValue> .FromJniHandle(native_map, JniHandleOwnership.DoNotTransfer);

            __this.Map = map;
        }
 static void n_WriteToParcel_Landroid_os_Parcel_I(IntPtr jnienv, IntPtr native__this, IntPtr native_dest, int native_flags)
 {
     global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureValueSet __this = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureValueSet> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Android.OS.Parcel dest = global::Java.Lang.Object.GetObject <global::Android.OS.Parcel> (native_dest, JniHandleOwnership.DoNotTransfer);
     global::Android.OS.ParcelableWriteFlags flags = (global::Android.OS.ParcelableWriteFlags)native_flags;
     __this.WriteToParcel(dest, flags);
 }
        static IntPtr n_SetValue_Ljava_lang_String_D(IntPtr jnienv, IntPtr native__this, IntPtr native_name, double value)
        {
            global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureValueSet __this = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureValueSet> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            string name  = JNIEnv.GetString(native_name, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.SetValue(name, value));

            return(__ret);
        }
        static void n_SetValue_Ljava_lang_String_Lcom_alibaba_mtl_appmonitor_model_MeasureValue_(IntPtr jnienv, IntPtr native__this, IntPtr native_name, IntPtr native_value)
        {
            global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureValueSet __this = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureValueSet> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            string name = JNIEnv.GetString(native_name, JniHandleOwnership.DoNotTransfer);

            global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureValue value = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureValue> (native_value, JniHandleOwnership.DoNotTransfer);
            __this.SetValue(name, value);
        }
        static bool n_ContainValue_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_name)
        {
            global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureValueSet __this = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureValueSet> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            string name  = JNIEnv.GetString(native_name, JniHandleOwnership.DoNotTransfer);
            bool   __ret = __this.ContainValue(name);

            return(__ret);
        }
        static bool n_Valid_Lcom_alibaba_mtl_appmonitor_model_MeasureValueSet_(IntPtr jnienv, IntPtr native__this, IntPtr native_measureValues)
        {
            global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureSet      __this        = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureSet> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureValueSet measureValues = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureValueSet> (native_measureValues, JniHandleOwnership.DoNotTransfer);
            bool __ret = __this.Valid(measureValues);

            return(__ret);
        }
        static IntPtr n_Update_Lcom_alibaba_mtl_appmonitor_model_DimensionValueSet_Lcom_alibaba_mtl_appmonitor_model_MeasureValueSet_(IntPtr jnienv, IntPtr native__this, IntPtr native_rowValues, IntPtr native_columnValues)
        {
            global::Com.Alibaba.Mtl.Appmonitor.AppMonitorStatTable     __this       = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.AppMonitorStatTable> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Com.Alibaba.Mtl.Appmonitor.Model.DimensionValueSet rowValues    = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.DimensionValueSet> (native_rowValues, JniHandleOwnership.DoNotTransfer);
            global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureValueSet   columnValues = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureValueSet> (native_columnValues, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.Update(rowValues, columnValues));

            return(__ret);
        }
コード例 #8
0
        static void n_Commit_Ljava_lang_String_Ljava_lang_String_Lcom_alibaba_mtl_appmonitor_model_DimensionValueSet_Lcom_alibaba_mtl_appmonitor_model_MeasureValueSet_(IntPtr jnienv, IntPtr native__this, IntPtr native_module, IntPtr native_monitorPoint, IntPtr native_dimensionValues, IntPtr native_measureValues)
        {
            global::Com.Alibaba.Mtl.Appmonitor.APTrack __this = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.APTrack> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            string module       = JNIEnv.GetString(native_module, JniHandleOwnership.DoNotTransfer);
            string monitorPoint = JNIEnv.GetString(native_monitorPoint, JniHandleOwnership.DoNotTransfer);

            global::Com.Alibaba.Mtl.Appmonitor.Model.DimensionValueSet dimensionValues = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.DimensionValueSet> (native_dimensionValues, JniHandleOwnership.DoNotTransfer);
            global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureValueSet   measureValues   = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureValueSet> (native_measureValues, JniHandleOwnership.DoNotTransfer);
            __this.Commit(module, monitorPoint, dimensionValues, measureValues);
        }
 static void n_Fill_arrayLjava_lang_Object_(IntPtr jnienv, IntPtr native__this, IntPtr native__params)
 {
     global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureValueSet __this = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureValueSet> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Java.Lang.Object[] @params = (global::Java.Lang.Object[])JNIEnv.GetArray(native__params, JniHandleOwnership.DoNotTransfer, typeof(global::Java.Lang.Object));
     __this.Fill(@params);
     if (@params != null)
     {
         JNIEnv.CopyArray(@params, native__params);
     }
 }
        public static unsafe global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureValueSet FromStringMap(global::System.Collections.Generic.IDictionary <string, string> values)
        {
            if (id_fromStringMap_Ljava_util_Map_ == IntPtr.Zero)
            {
                id_fromStringMap_Ljava_util_Map_ = JNIEnv.GetStaticMethodID(class_ref, "fromStringMap", "(Ljava/util/Map;)Lcom/alibaba/mtl/appmonitor/model/MeasureValueSet;");
            }
            IntPtr native_values = global::Android.Runtime.JavaDictionary <string, string> .ToLocalJniHandle(values);

            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(native_values);
                global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureValueSet __ret = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureValueSet> (JNIEnv.CallStaticObjectMethod(class_ref, id_fromStringMap_Ljava_util_Map_, __args), JniHandleOwnership.TransferLocalRef);
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_values);
            }
        }
        public virtual unsafe void SetConstantValue(global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureValueSet measureValues)
        {
            if (id_setConstantValue_Lcom_alibaba_mtl_appmonitor_model_MeasureValueSet_ == IntPtr.Zero)
            {
                id_setConstantValue_Lcom_alibaba_mtl_appmonitor_model_MeasureValueSet_ = JNIEnv.GetMethodID(class_ref, "setConstantValue", "(Lcom/alibaba/mtl/appmonitor/model/MeasureValueSet;)V");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(measureValues);

                if (((object)this).GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_setConstantValue_Lcom_alibaba_mtl_appmonitor_model_MeasureValueSet_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "setConstantValue", "(Lcom/alibaba/mtl/appmonitor/model/MeasureValueSet;)V"), __args);
                }
            } finally {
            }
        }
        public virtual unsafe bool Valid(global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureValueSet measureValues)
        {
            if (id_valid_Lcom_alibaba_mtl_appmonitor_model_MeasureValueSet_ == IntPtr.Zero)
            {
                id_valid_Lcom_alibaba_mtl_appmonitor_model_MeasureValueSet_ = JNIEnv.GetMethodID(class_ref, "valid", "(Lcom/alibaba/mtl/appmonitor/model/MeasureValueSet;)Z");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(measureValues);

                bool __ret;
                if (((object)this).GetType() == ThresholdType)
                {
                    __ret = JNIEnv.CallBooleanMethod(((global::Java.Lang.Object) this).Handle, id_valid_Lcom_alibaba_mtl_appmonitor_model_MeasureValueSet_, __args);
                }
                else
                {
                    __ret = JNIEnv.CallNonvirtualBooleanMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "valid", "(Lcom/alibaba/mtl/appmonitor/model/MeasureValueSet;)Z"), __args);
                }
                return(__ret);
            } finally {
            }
        }
 static void n_Clean(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureValueSet __this = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureValueSet> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.Clean();
 }
 static IntPtr n_GetMap(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureValueSet __this = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureValueSet> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(global::Android.Runtime.JavaDictionary <string, global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureValue> .ToLocalJniHandle(__this.Map));
 }
 static int n_DescribeContents(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureValueSet __this = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureValueSet> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.DescribeContents());
 }
 static void n_SetConstantValue_Lcom_alibaba_mtl_appmonitor_model_MeasureValueSet_(IntPtr jnienv, IntPtr native__this, IntPtr native_measureValues)
 {
     global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureSet      __this        = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureSet> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureValueSet measureValues = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureValueSet> (native_measureValues, JniHandleOwnership.DoNotTransfer);
     __this.SetConstantValue(measureValues);
 }
コード例 #17
0
        public virtual unsafe void Commit(string module, string monitorPoint, global::Com.Alibaba.Mtl.Appmonitor.Model.DimensionValueSet dimensionValues, global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureValueSet measureValues)
        {
            if (id_commit_Ljava_lang_String_Ljava_lang_String_Lcom_alibaba_mtl_appmonitor_model_DimensionValueSet_Lcom_alibaba_mtl_appmonitor_model_MeasureValueSet_ == IntPtr.Zero)
            {
                id_commit_Ljava_lang_String_Ljava_lang_String_Lcom_alibaba_mtl_appmonitor_model_DimensionValueSet_Lcom_alibaba_mtl_appmonitor_model_MeasureValueSet_ = JNIEnv.GetMethodID(class_ref, "commit", "(Ljava/lang/String;Ljava/lang/String;Lcom/alibaba/mtl/appmonitor/model/DimensionValueSet;Lcom/alibaba/mtl/appmonitor/model/MeasureValueSet;)V");
            }
            IntPtr native_module       = JNIEnv.NewString(module);
            IntPtr native_monitorPoint = JNIEnv.NewString(monitorPoint);

            try {
                JValue *__args = stackalloc JValue [4];
                __args [0] = new JValue(native_module);
                __args [1] = new JValue(native_monitorPoint);
                __args [2] = new JValue(dimensionValues);
                __args [3] = new JValue(measureValues);

                if (((object)this).GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_commit_Ljava_lang_String_Ljava_lang_String_Lcom_alibaba_mtl_appmonitor_model_DimensionValueSet_Lcom_alibaba_mtl_appmonitor_model_MeasureValueSet_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "commit", "(Ljava/lang/String;Ljava/lang/String;Lcom/alibaba/mtl/appmonitor/model/DimensionValueSet;Lcom/alibaba/mtl/appmonitor/model/MeasureValueSet;)V"), __args);
                }
            } finally {
                JNIEnv.DeleteLocalRef(native_module);
                JNIEnv.DeleteLocalRef(native_monitorPoint);
            }
        }
 static bool n_IsEmpty(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureValueSet __this = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureValueSet> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.IsEmpty);
 }
        public virtual unsafe global::Com.Alibaba.Mtl.Appmonitor.AppMonitorStatTable Update(global::Com.Alibaba.Mtl.Appmonitor.Model.DimensionValueSet rowValues, global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureValueSet columnValues)
        {
            if (id_update_Lcom_alibaba_mtl_appmonitor_model_DimensionValueSet_Lcom_alibaba_mtl_appmonitor_model_MeasureValueSet_ == IntPtr.Zero)
            {
                id_update_Lcom_alibaba_mtl_appmonitor_model_DimensionValueSet_Lcom_alibaba_mtl_appmonitor_model_MeasureValueSet_ = JNIEnv.GetMethodID(class_ref, "update", "(Lcom/alibaba/mtl/appmonitor/model/DimensionValueSet;Lcom/alibaba/mtl/appmonitor/model/MeasureValueSet;)Lcom/alibaba/mtl/appmonitor/AppMonitorStatTable;");
            }
            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(rowValues);
                __args [1] = new JValue(columnValues);

                global::Com.Alibaba.Mtl.Appmonitor.AppMonitorStatTable __ret;
                if (((object)this).GetType() == ThresholdType)
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.AppMonitorStatTable> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_update_Lcom_alibaba_mtl_appmonitor_model_DimensionValueSet_Lcom_alibaba_mtl_appmonitor_model_MeasureValueSet_, __args), JniHandleOwnership.TransferLocalRef);
                }
                else
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.AppMonitorStatTable> (JNIEnv.CallNonvirtualObjectMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "update", "(Lcom/alibaba/mtl/appmonitor/model/DimensionValueSet;Lcom/alibaba/mtl/appmonitor/model/MeasureValueSet;)Lcom/alibaba/mtl/appmonitor/AppMonitorStatTable;"), __args), JniHandleOwnership.TransferLocalRef);
                }
                return(__ret);
            } finally {
            }
        }