Beispiel #1
0
        static void n_SetCommitDetailFromConfig_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_isCommitDetailFromConfig)
        {
            global::Com.Alibaba.Mtl.Appmonitor.Model.Metric __this = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.Metric> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            string isCommitDetailFromConfig = JNIEnv.GetString(native_isCommitDetailFromConfig, JniHandleOwnership.DoNotTransfer);

            __this.SetCommitDetailFromConfig(isCommitDetailFromConfig);
        }
        static bool n_Remove_Lcom_alibaba_mtl_appmonitor_model_Metric_(IntPtr jnienv, IntPtr native__this, IntPtr native_metric)
        {
            global::Com.Alibaba.Mtl.Appmonitor.Model.MetricRepo __this = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.MetricRepo> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Com.Alibaba.Mtl.Appmonitor.Model.Metric     metric = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.Metric> (native_metric, JniHandleOwnership.DoNotTransfer);
            bool __ret = __this.Remove(metric);

            return(__ret);
        }
Beispiel #3
0
        static bool n_Valid_Lcom_alibaba_mtl_appmonitor_model_DimensionValueSet_Lcom_alibaba_mtl_appmonitor_model_MeasureValueSet_(IntPtr jnienv, IntPtr native__this, IntPtr native_dimensionValues, IntPtr native_measureValues)
        {
            global::Com.Alibaba.Mtl.Appmonitor.Model.Metric            __this          = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.Metric> (jnienv, native__this, 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);
            bool __ret = __this.Valid(dimensionValues, measureValues);

            return(__ret);
        }
Beispiel #4
0
 static void n_Fill_arrayLjava_lang_Object_(IntPtr jnienv, IntPtr native__this, IntPtr native__params)
 {
     global::Com.Alibaba.Mtl.Appmonitor.Model.Metric __this = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.Metric> (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 virtual unsafe void Add(global::Com.Alibaba.Mtl.Appmonitor.Model.Metric metric)
        {
            if (id_add_Lcom_alibaba_mtl_appmonitor_model_Metric_ == IntPtr.Zero)
            {
                id_add_Lcom_alibaba_mtl_appmonitor_model_Metric_ = JNIEnv.GetMethodID(class_ref, "add", "(Lcom/alibaba/mtl/appmonitor/model/Metric;)V");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(metric);

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

                bool __ret;
                if (((object)this).GetType() == ThresholdType)
                {
                    __ret = JNIEnv.CallBooleanMethod(((global::Java.Lang.Object) this).Handle, id_remove_Lcom_alibaba_mtl_appmonitor_model_Metric_, __args);
                }
                else
                {
                    __ret = JNIEnv.CallNonvirtualBooleanMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "remove", "(Lcom/alibaba/mtl/appmonitor/model/Metric;)Z"), __args);
                }
                return(__ret);
            } finally {
            }
        }
 static void n_Add_Lcom_alibaba_mtl_appmonitor_model_Metric_(IntPtr jnienv, IntPtr native__this, IntPtr native_metric)
 {
     global::Com.Alibaba.Mtl.Appmonitor.Model.MetricRepo __this = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.MetricRepo> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Alibaba.Mtl.Appmonitor.Model.Metric     metric = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.Metric> (native_metric, JniHandleOwnership.DoNotTransfer);
     __this.Add(metric);
 }
Beispiel #8
0
 static void n_ResetTransactionId(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Alibaba.Mtl.Appmonitor.Model.Metric __this = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.Metric> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.ResetTransactionId();
 }
Beispiel #9
0
 static IntPtr n_GetTransactionId(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Alibaba.Mtl.Appmonitor.Model.Metric __this = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.Metric> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.NewString(__this.TransactionId));
 }
Beispiel #10
0
 static IntPtr n_GetMeasureSet(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Alibaba.Mtl.Appmonitor.Model.Metric __this = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.Metric> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.ToLocalJniHandle(__this.MeasureSet));
 }
Beispiel #11
0
 static bool n_IsCommitDetail(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Alibaba.Mtl.Appmonitor.Model.Metric __this = global::Java.Lang.Object.GetObject <global::Com.Alibaba.Mtl.Appmonitor.Model.Metric> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.IsCommitDetail);
 }