com.ibm.tivoli.maximo.fdmbo.analyze

Class WeatherAPIAnalyzer



  • public class WeatherAPIAnalyzer
    extends JSONAnalyzer
    Class for Weather API JSON Analyzer.
    • Constructor Detail

      • WeatherAPIAnalyzer

        public WeatherAPIAnalyzer()
    • Method Detail

      • formatParameter

        public java.lang.String formatParameter(java.lang.String url,
                                                java.lang.String paramter,
                                                java.lang.String whereClause)
                                         throws java.rmi.RemoteException,
                                                MXException
        Formats where clause.
        Overrides:
        formatParameter in class JSONAnalyzer
        Parameters:
        url - invoke url
        method - HTTP invoke method
        method - HTTP invoke method
        Returns:
        new formatted URL
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
      • licenseCheck

        public boolean licenseCheck(java.lang.String productName)
                             throws java.rmi.RemoteException,
                                    MXException
        Check license.
        Overrides:
        licenseCheck in class JSONAnalyzer
        Parameters:
        productName - product name
        Returns:
        can resource be processed
        Throws:
        MXException
        java.rmi.RemoteException
      • logAPICall

        public void logAPICall(java.lang.String productName,
                               java.lang.String resourceName,
                               UserInfo userInfo)
                        throws java.rmi.RemoteException,
                               MXException
        Log call to store product name and last time it was called.
        Overrides:
        logAPICall in class JSONAnalyzer
        Parameters:
        productName - product name
        resourceName - resource name
        UserInfo - user info
        Throws:
        MXException
        java.rmi.RemoteException