static void n_UpateMeasures_Ljava_util_List_(IntPtr jnienv, IntPtr native__this, IntPtr native_configMeasures)
        {
            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);
            var configMeasures = global::Android.Runtime.JavaList <global::Com.Alibaba.Mtl.Appmonitor.Model.Measure> .FromJniHandle(native_configMeasures, JniHandleOwnership.DoNotTransfer);

            __this.UpateMeasures(configMeasures);
        }
 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.MeasureSet __this = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureSet> (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_AddMeasure_Lcom_alibaba_mtl_appmonitor_model_Measure_(IntPtr jnienv, IntPtr native__this, IntPtr native_measure)
        {
            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.Measure    measure = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.Measure> (native_measure, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.AddMeasure(measure));

            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_GetMeasure_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_name)
        {
            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);
            string name  = JNIEnv.GetString(native_name, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.GetMeasure(name));

            return(__ret);
        }
        static IntPtr n_RegisterRowAndColumn_Lcom_alibaba_mtl_appmonitor_model_DimensionSet_Lcom_alibaba_mtl_appmonitor_model_MeasureSet_Z(IntPtr jnienv, IntPtr native__this, IntPtr native_rows, IntPtr native_columns, bool isDetail)
        {
            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.DimensionSet  rows    = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.DimensionSet> (native_rows, JniHandleOwnership.DoNotTransfer);
            global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureSet    columns = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureSet> (native_columns, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.RegisterRowAndColumn(rows, columns, isDetail));

            return(__ret);
        }
        public static unsafe global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureSet Create(global::System.Collections.Generic.ICollection <string> measures)
        {
            if (id_create_Ljava_util_Collection_ == IntPtr.Zero)
            {
                id_create_Ljava_util_Collection_ = JNIEnv.GetStaticMethodID(class_ref, "create", "(Ljava/util/Collection;)Lcom/alibaba/mtl/appmonitor/model/MeasureSet;");
            }
            IntPtr native_measures = global::Android.Runtime.JavaCollection <string> .ToLocalJniHandle(measures);

            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(native_measures);
                global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureSet __ret = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureSet> (JNIEnv.CallStaticObjectMethod(class_ref, id_create_Ljava_util_Collection_, __args), JniHandleOwnership.TransferLocalRef);
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_measures);
            }
        }
        public static unsafe global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureSet Create(string[] measures)
        {
            if (id_create_arrayLjava_lang_String_ == IntPtr.Zero)
            {
                id_create_arrayLjava_lang_String_ = JNIEnv.GetStaticMethodID(class_ref, "create", "([Ljava/lang/String;)Lcom/alibaba/mtl/appmonitor/model/MeasureSet;");
            }
            IntPtr native_measures = JNIEnv.NewArray(measures);

            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(native_measures);
                global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureSet __ret = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureSet> (JNIEnv.CallStaticObjectMethod(class_ref, id_create_arrayLjava_lang_String_, __args), JniHandleOwnership.TransferLocalRef);
                return(__ret);
            } finally {
                if (measures != null)
                {
                    JNIEnv.CopyArray(native_measures, measures);
                    JNIEnv.DeleteLocalRef(native_measures);
                }
            }
        }
Beispiel #9
0
        public unsafe Metric(string module, string monitorPoint, global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureSet measureSet, global::Com.Alibaba.Mtl.Appmonitor.Model.DimensionSet dimensionSet, bool isCommitDetail)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            IntPtr native_module       = JNIEnv.NewString(module);
            IntPtr native_monitorPoint = JNIEnv.NewString(monitorPoint);

            try {
                JValue *__args = stackalloc JValue [5];
                __args [0] = new JValue(native_module);
                __args [1] = new JValue(native_monitorPoint);
                __args [2] = new JValue(measureSet);
                __args [3] = new JValue(dimensionSet);
                __args [4] = new JValue(isCommitDetail);
                if (((object)this).GetType() != typeof(Metric))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Ljava/lang/String;Ljava/lang/String;Lcom/alibaba/mtl/appmonitor/model/MeasureSet;Lcom/alibaba/mtl/appmonitor/model/DimensionSet;Z)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Ljava/lang/String;Ljava/lang/String;Lcom/alibaba/mtl/appmonitor/model/MeasureSet;Lcom/alibaba/mtl/appmonitor/model/DimensionSet;Z)V", __args);
                    return;
                }

                if (id_ctor_Ljava_lang_String_Ljava_lang_String_Lcom_alibaba_mtl_appmonitor_model_MeasureSet_Lcom_alibaba_mtl_appmonitor_model_DimensionSet_Z == IntPtr.Zero)
                {
                    id_ctor_Ljava_lang_String_Ljava_lang_String_Lcom_alibaba_mtl_appmonitor_model_MeasureSet_Lcom_alibaba_mtl_appmonitor_model_DimensionSet_Z = JNIEnv.GetMethodID(class_ref, "<init>", "(Ljava/lang/String;Ljava/lang/String;Lcom/alibaba/mtl/appmonitor/model/MeasureSet;Lcom/alibaba/mtl/appmonitor/model/DimensionSet;Z)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Ljava_lang_String_Ljava_lang_String_Lcom_alibaba_mtl_appmonitor_model_MeasureSet_Lcom_alibaba_mtl_appmonitor_model_DimensionSet_Z, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Ljava_lang_String_Ljava_lang_String_Lcom_alibaba_mtl_appmonitor_model_MeasureSet_Lcom_alibaba_mtl_appmonitor_model_DimensionSet_Z, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_module);
                JNIEnv.DeleteLocalRef(native_monitorPoint);
            }
        }
 static IntPtr n_GetMeasures(IntPtr jnienv, IntPtr native__this)
 {
     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);
     return(global::Android.Runtime.JavaList <global::Com.Alibaba.Mtl.Appmonitor.Model.Measure> .ToLocalJniHandle(__this.Measures));
 }
 static void n_UpateMeasure_Lcom_alibaba_mtl_appmonitor_model_Measure_(IntPtr jnienv, IntPtr native__this, IntPtr native_newMeasure)
 {
     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.Measure    newMeasure = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.Measure> (native_newMeasure, JniHandleOwnership.DoNotTransfer);
     __this.UpateMeasure(newMeasure);
 }
 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);
 }
 static int n_DescribeContents(IntPtr jnienv, IntPtr native__this)
 {
     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);
     return(__this.DescribeContents());
 }
        public virtual unsafe global::Com.Alibaba.Mtl.Appmonitor.AppMonitorStatTable RegisterRowAndColumn(global::Com.Alibaba.Mtl.Appmonitor.Model.DimensionSet rows, global::Com.Alibaba.Mtl.Appmonitor.Model.MeasureSet columns, bool isDetail)
        {
            if (id_registerRowAndColumn_Lcom_alibaba_mtl_appmonitor_model_DimensionSet_Lcom_alibaba_mtl_appmonitor_model_MeasureSet_Z == IntPtr.Zero)
            {
                id_registerRowAndColumn_Lcom_alibaba_mtl_appmonitor_model_DimensionSet_Lcom_alibaba_mtl_appmonitor_model_MeasureSet_Z = JNIEnv.GetMethodID(class_ref, "registerRowAndColumn", "(Lcom/alibaba/mtl/appmonitor/model/DimensionSet;Lcom/alibaba/mtl/appmonitor/model/MeasureSet;Z)Lcom/alibaba/mtl/appmonitor/AppMonitorStatTable;");
            }
            try {
                JValue *__args = stackalloc JValue [3];
                __args [0] = new JValue(rows);
                __args [1] = new JValue(columns);
                __args [2] = new JValue(isDetail);

                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_registerRowAndColumn_Lcom_alibaba_mtl_appmonitor_model_DimensionSet_Lcom_alibaba_mtl_appmonitor_model_MeasureSet_Z, __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, "registerRowAndColumn", "(Lcom/alibaba/mtl/appmonitor/model/DimensionSet;Lcom/alibaba/mtl/appmonitor/model/MeasureSet;Z)Lcom/alibaba/mtl/appmonitor/AppMonitorStatTable;"), __args), JniHandleOwnership.TransferLocalRef);
                }
                return(__ret);
            } finally {
            }
        }