com.ibm.tivoli.maximo.iotservices

Class IoTService

  • java.lang.Object
    • Constructor Detail

      • IoTService

        public IoTService(MboSet ms)
                   throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • delete

        public void delete(long accessModifier)
                    throws MXException,
                           java.rmi.RemoteException
        Called when this mbo is being deleted. This method deletes all the corresponding IOTFDEVICETYPECFG, IOTRESTENDPT, and MAXENDPOINT entries associated with this object
        Specified by:
        delete in interface MboRemote
        Overrides:
        delete in class Mbo
        Parameters:
        accessModifier - the access modifier
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
        See Also:
        Mbo.delete(long)
      • appValidate

        public void appValidate()
                         throws MXException,
                                java.rmi.RemoteException
        Copies the template data to create related MAXENDPOINT and IOTRESTENDPT records. Deactivates any active services if the new service is set to active.
        Overrides:
        appValidate in class Mbo
        Throws:
        MXException - throws MXException
        java.rmi.RemoteException - throws RemoteException
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Set default value for fields.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • modify

        public void modify()
                    throws MXException,
                           java.rmi.RemoteException
        Description copied from class: Mbo
        This called whenever a change is made to the attributes of a MBO. The programmer should override if interested in intercepting this event. An example of the use of this is to set the changeby/changedate of a work order whenever one of the attributes is set. If an MXException is thrown from this routine, the change of value is rolled back, this provides a mechanism to abort any changes. Default behavior is to do nothing. The derived method has to call super.modify().
        Overrides:
        modify in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • resetEndPoint

        public void resetEndPoint()
                           throws MXException,
                                  java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • save

        protected void save()
                     throws MXException,
                            java.rmi.RemoteException
        Save the object and other linked objects. Subclasses can code their save() logic to include any appropriate updates to other linked objects and call super.save().
        Overrides:
        save in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • registerDefaultQuery

        protected void registerDefaultQuery(java.lang.String histQueryName,
                                            boolean unregister,
                                            java.lang.String historianName)
                                     throws MXException,
                                            java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • createView

        protected void createView(java.util.Map metaData,
                                  HTTPHandler handler,
                                  com.ibm.json.java.JSONObject jo)
                           throws MXException,
                                  java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException