com.ibm.tivoli.maximo.iotservices.mapper

Class IoTCloudantProcessor

    • Constructor Detail

      • IoTCloudantProcessor

        public IoTCloudantProcessor()
                             throws MXException,
                                    java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • processResource

        public com.ibm.json.java.JSONArtifact processResource(JSONResourceInfo resourceInfo,
                                                              MboRemote owner,
                                                              UserInfo userInfo,
                                                              int pageSize,
                                                              int currentPage,
                                                              JSONAnalyzer jsonAnalyzer)
                                                       throws MXException,
                                                              java.rmi.RemoteException
        Invoke external Resource
        Overrides:
        processResource in class HistorianProcessor
        Parameters:
        pageSize - Page size if paging is used
        pageNum - Current page
        Returns:
        JSON from external resource invocation
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • mapReadings

        public void mapReadings(com.ibm.json.java.JSONArray readings,
                                com.ibm.json.java.JSONObject jo,
                                IoTMeterToPayloadMappingInfo mapInfo)
                         throws MXException,
                                java.rmi.RemoteException
        Map response of the external resource invocation to format accepted in AH Dash Board. This method can both getting date from historian and mapping it.
        Parameters:
        ja - JSON with results of the external invocation
        pageSize - Page size if paging is used
        pageNum - Current page
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • getReadings

        public java.lang.Object getReadings(com.ibm.json.java.JSONObject jo,
                                            IoTMeterToPayloadMappingInfo mapInfo)
                                     throws MXException,
                                            java.rmi.RemoteException
        Map response of the external resource invocation to format accepted in AH Dash Board. This method can both getting date from historian and mapping it.
        Parameters:
        ja - JSON with results of the external invocation
        pageSize - Page size if paging is used
        pageNum - Current page
        Returns:
        JSON from external resource invocation
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • evaluateExpression

        public com.ibm.json.java.JSONObject evaluateExpression(com.ibm.json.java.JSONObject jsonData,
                                                               java.lang.String path)
                                                        throws MXException
        Throws:
        MXException