com.ibm.tivoli.maximo.iotservices

Class IoTConnectionService

    • Constructor Detail

      • IoTConnectionService

        public IoTConnectionService(MXServer mxServer)
                             throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
      • IoTConnectionService

        public IoTConnectionService()
                             throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • pingIoT

        public com.ibm.json.java.JSONObject pingIoT(MboRemote iotserv,
                                                    boolean iotcfg)
                                             throws MXException,
                                                    java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • getAllDeviceTypes

        public java.util.List getAllDeviceTypes(MboRemote iotserv,
                                                java.lang.String sort)
                                         throws java.rmi.RemoteException,
                                                MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • getDeviceTypeList

        public java.util.List getDeviceTypeList(MboRemote iotserv,
                                                java.lang.String sort,
                                                boolean isMapped)
                                         throws java.rmi.RemoteException,
                                                MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • getNotMappedYetDeviceTypes

        @Deprecated
        public java.util.List getNotMappedYetDeviceTypes(MboRemote iotserv,
                                                                     java.lang.String sort)
                                                              throws java.rmi.RemoteException,
                                                                     MXException
        Deprecated. 
        Throws:
        java.rmi.RemoteException
        MXException
      • getLastMessageFromCache

        public java.util.Map getLastMessageFromCache(MboRemote iotService,
                                                     java.lang.String deviceType)
                                              throws java.rmi.RemoteException,
                                                     MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • getLastMessageFromCacheForDevice

        public java.util.Map getLastMessageFromCacheForDevice(MboRemote iotserv,
                                                              java.lang.String deviceType,
                                                              java.lang.String deviceid)
                                                       throws java.rmi.RemoteException,
                                                              MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • getSampleAggregateResultForDeviceType

        public com.ibm.json.java.JSONObject getSampleAggregateResultForDeviceType(MboRemote iotService,
                                                                                  java.lang.String deviceType,
                                                                                  java.lang.String feedMapProperty,
                                                                                  java.lang.String deviceid)
                                                                           throws java.rmi.RemoteException,
                                                                                  MXException
        Get the aggregated data, using the getSampleAggregateResultForDeviceType endpoint. We want only one record worth, even if multiple are reported.
        Parameters:
        iotService - IoTService Mbo
        deviceType -
        feedMapProperty -
        Returns:
        the JSONObject or null
        Throws:
        java.rmi.RemoteException
        MXException
      • clearDeviceRefernceForService

        public void clearDeviceRefernceForService(MboRemote iotservice)
                                           throws java.rmi.RemoteException,
                                                  MXException
        Clear reference for device type and device id from asset and location meter.
        Parameters:
        iotf - IoTF organization object
        Throws:
        MXException
        java.rmi.RemoteException
      • clearDeviceReferenceAssetLocationLevel

        public void clearDeviceReferenceAssetLocationLevel(MboRemote iotconfig)
                                                    throws java.rmi.RemoteException,
                                                           MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • clearDeviceRefernce

        public void clearDeviceRefernce(MboRemote iotf)
                                 throws java.rmi.RemoteException,
                                        MXException
        Clear reference for device type and device id from asset and location meter for one device type.
        Parameters:
        iotf - IoTF device type object
        Throws:
        MXException
        java.rmi.RemoteException
      • getEndPointValues

        public java.util.List getEndPointValues(java.lang.String servicename)
                                         throws java.rmi.RemoteException,
                                                MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • getDevices

        public java.util.List getDevices(MboRemote iotserv,
                                         java.lang.String deviceType,
                                         java.lang.String limit)
                                  throws java.rmi.RemoteException,
                                         MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • checkCronTaskInstance

        public java.util.Map checkCronTaskInstance(java.lang.String instancename)
                                            throws java.rmi.RemoteException,
                                                   MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • devices

        public java.util.List devices(java.lang.String deviceType)
                               throws MXException,
                                      java.io.IOException
        Throws:
        MXException
        java.io.IOException
      • createAsset

        public void createAsset(java.lang.String iotfOrg,
                                java.lang.String deviceType,
                                com.ibm.json.java.JSONObject deviceJO)
                         throws MXException
        Throws:
        MXException
      • getHistorianDatabaseName

        public java.lang.String getHistorianDatabaseName(java.lang.String orgid,
                                                         java.lang.String historian,
                                                         java.util.Date dt)
                                                  throws java.rmi.RemoteException,
                                                         MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • getAnyHistorianDatabaseName

        public java.lang.String getAnyHistorianDatabaseName(java.lang.String orgid,
                                                            java.lang.String historian,
                                                            java.lang.String choice,
                                                            java.lang.String bucket,
                                                            java.util.Date dt,
                                                            int offset,
                                                            boolean isDefault)
                                                     throws java.rmi.RemoteException,
                                                            MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • deleteDocument

        public void deleteDocument(java.util.Map metaData,
                                   java.lang.String postUrl,
                                   HTTPHandler handler)
                            throws MXException,
                                   java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • canDeleteDeviceType

        public void canDeleteDeviceType(MboRemote iotdevtype)
                                 throws java.rmi.RemoteException,
                                        MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • anyDeviceTypesMapped

        public boolean anyDeviceTypesMapped(MboRemote iotserv)
                                     throws MXException,
                                            java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • isDeviceTypeAssociated

        public boolean isDeviceTypeAssociated(MboRemote iotservice,
                                              java.lang.String deviceType)
                                       throws java.rmi.RemoteException,
                                              MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • getTimePeriods

        public java.util.List getTimePeriods(MboRemote iotserv)
                                      throws java.rmi.RemoteException,
                                             MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • listOwnerChain

        public static java.lang.String listOwnerChain(MboSet mboset)
                                               throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException