psdi.app.asset.virtual

Class MeterMetricTypeSet

    • Constructor Detail

      • MeterMetricTypeSet

        public MeterMetricTypeSet(MboServerInterface ms)
                           throws MXException,
                                  java.rmi.RemoteException
        Construct the set
        Parameters:
        ms - The MboServerInterface
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • getMboInstance

        protected Mbo getMboInstance(MboSet ms)
                              throws MXException,
                                     java.rmi.RemoteException
        Generate a new AssetMoveDflt object
        Specified by:
        getMboInstance in class MboSet
        Parameters:
        ms - The MeterMetricTypeSet.
        Returns:
        AssetMoveDflt Mbo object.
        Throws:
        MXException
        java.rmi.RemoteException
      • getMetricsJson

        public static io.vertx.core.json.JsonArray getMetricsJson(boolean isAsset,
                                                                  java.lang.String identifier,
                                                                  java.lang.String siteid,
                                                                  java.lang.String metricid)
                                                           throws MXException
        Throws:
        MXException
      • fillMetricMbo

        public static void fillMetricMbo(MboRemote mboRemote,
                                         io.vertx.core.json.JsonObject jo)
                                  throws MXException,
                                         java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • isMetricIdMapped

        public static boolean isMetricIdMapped(java.lang.String metricId,
                                               MboRemote mbo,
                                               boolean isAsset)
                                        throws MXException,
                                               java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • setQbe

        public void setQbe(java.lang.String attribute,
                           java.lang.String expression)
                    throws MXException,
                           java.rmi.RemoteException
        Description copied from class: MboSet
        Add an expression to the existing Qbe. This will take effect the next time the MboSet is reset and a record is fetched. setQbe(String, String) can be called multiple times before initiating the fetch, in which case the expressions will be ANDed together.
        Specified by:
        setQbe in interface MboSetRemote
        Overrides:
        setQbe in class MboSet
        Parameters:
        attribute - The attribute name whose value is being restricted.
        expression - The restriction value for the attribute. The expression can be in either of two forms:
        • [operator] [operand] For example, >10. The supported operators are >, >=, <, <=, =, !=, and LIKE (default). For string datatypes, the operand can contain % characters for wildcards.
        • [operand] For example, "ABC" . In this form, the operator is assumed to be LIKE.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        MboSet.resetQbe(), MboSet.setQbe(String[], String), MboSet.reset(), MboSet.getMbo()