psdi.app.scheduler

Class SchedulerDashboardCronTask

    • Constructor Detail

      • SchedulerDashboardCronTask

        public SchedulerDashboardCronTask()
    • Method Detail

      • cronAction

        public void cronAction()
        Description copied from class: SimpleCronTask
        This is the CORE METHOD of this class. You should invoke whatever logic you want your CronTask to perform from this method. This method should
        1. check the shutdown variable before invoking any processing logic.
        2. call resetErrorCount() if processing proceeds w/out error.
        3. call incErrorCount() if a serious error occurs during the processing logic.
        Specified by:
        cronAction in interface CronTask
        Specified by:
        cronAction in class SimpleCronTask
      • sendODMEEmail

        public void sendODMEEmail(SKDProjectRemote project,
                                  java.util.Date startDate,
                                  java.util.Date endDate,
                                  boolean success)
                           throws java.rmi.RemoteException,
                                  MXException,
                                  javax.mail.MessagingException
        Throws:
        java.rmi.RemoteException
        MXException
        javax.mail.MessagingException
      • getParameter

        public MboRemote getParameter(java.lang.String parameter)
                               throws MXException,
                                      java.rmi.RemoteException
        Description copied from class: SimpleCronTask
        Get the MBO of crontaskparameter for the specified parameter for the instance this crontask object is instantiated for.
        Overrides:
        getParameter in class SimpleCronTask
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • getParameters

        public CrontaskParamInfo[] getParameters()
                                          throws MXException,
                                                 java.rmi.RemoteException
        Description copied from interface: CronTask
        This method provides an array of CrontaskParamInfo() object to describe all the parameters of the crontask. Parameter name, default values and the description of the parameter should be set to the CrontaskParamInfo object for each parameter. If default value and description is not set, null will be the values.
        Specified by:
        getParameters in interface CronTask
        Overrides:
        getParameters in class SimpleCronTask
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        CrontaskParamInfo
      • getMyLogger

        public MXLogger getMyLogger()
        Return the log specific for the Scheduler Dashboard application.
        Returns:
      • isInitialized

        public boolean isInitialized()
      • setInitialized

        public void setInitialized(boolean initialized)
      • calculatewocost

        public void calculatewocost(MboRemote skdProject)
                             throws MXException,
                                    java.rmi.RemoteException
        Calculate WO Cost
        Throws:
        MXException
        java.rmi.RemoteException
      • calculatelaborhrs

        public void calculatelaborhrs(MboRemote skdProject)
                               throws MXException,
                                      java.rmi.RemoteException
        Calculate Labor Hours
        Throws:
        MXException
        java.rmi.RemoteException
      • sumDuration

        protected void sumDuration(java.util.Date startTime,
                                   java.util.Date endTime,
                                   long durationQtt)
        Calculate the duration of laybor hours
        Parameters:
        startTime -
        endTime -
        durationQtt -
      • calculatewocostall

        public void calculatewocostall(MboRemote mbo)
                                throws MXException,
                                       java.rmi.RemoteException
        Calculate WO Cost for both scenarios to compare
        Throws:
        MXException
        java.rmi.RemoteException
      • calculatepmfocost

        public void calculatepmfocost(MboRemote skdProject)
                               throws MXException,
                                      java.rmi.RemoteException
        Calculate PM Forecast Cost
        Throws:
        MXException
        java.rmi.RemoteException
      • setRefreshSKDData

        public void setRefreshSKDData(boolean refresh)
      • getParam

        public long getParam()
                      throws java.rmi.RemoteException,
                             MXException
        Throws:
        java.rmi.RemoteException
        MXException