psdi.app.site

Class SaaSOrgSiteCronTask

  • All Implemented Interfaces:
    CronTask


    public class SaaSOrgSiteCronTask
    extends SimpleCronTask
    A MAXIMO SaaS crontask used for creating default Org and Site data for GA/Landlord and tenants when on-boarded This crontask should run only once per tenant
    • Field Detail

      • AUTOCOMMIT_LIMIT

        public static final int AUTOCOMMIT_LIMIT
        automatically commit after this number of delete or insert statements have been sent to the DB
        See Also:
        Constant Field Values
    • Constructor Detail

      • SaaSOrgSiteCronTask

        public SaaSOrgSiteCronTask()
    • Method Detail

      • start

        public void start()
        Initialize the crontask, read in the configuration data and prepare a UserInfo object.
        Specified by:
        start in interface CronTask
        Overrides:
        start in class SimpleCronTask
        See Also:
        CronTask.stop(), startup()
      • previouslyRun

        public boolean previouslyRun()
                              throws MXException,
                                     java.rmi.RemoteException
        Initiate the value based on taskscheduler record for the crontask. The value will not be refreshed automatically.
        Throws:
        MXException
        java.rmi.RemoteException
      • readConfig

        public void readConfig()
                        throws java.rmi.RemoteException,
                               MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • getInstanceName

        public java.lang.String getInstanceName()
        Returns the crontask instance name
      • getLogMessage

        protected java.lang.String getLogMessage(java.lang.String msg)
        Parameters:
        msg -
        Returns:
        String
      • getCrontaskParameter

        protected java.lang.String getCrontaskParameter(java.lang.String paramName)
                                                 throws MXException,
                                                        java.rmi.RemoteException
        Read in the configuration information from mxserver.properties.
        Returns:
        ReconCronTaskParameters
        Throws:
        MXException
        java.rmi.RemoteException
      • getLogFooter

        protected java.lang.String getLogFooter(java.lang.String paramName)
        Parameters:
        paramName -
        Returns:
        String
      • getLogHeader

        protected java.lang.String getLogHeader(java.lang.String paramName)
        Parameters:
        paramName -
        Returns:
        String
      • getServerTimestamp

        protected java.lang.String getServerTimestamp()
        Retrieves the server's current timestamp as a String
        Returns:
        String The current timestamp of the server or an empty String if an error occurs