psdi.app.recontask.engine

Class ReconContext

  • java.lang.Object
    • psdi.app.recontask.engine.ReconContext
  • Direct Known Subclasses:
    ComparatorContext, DataSetContext


    public class ReconContext
    extends java.lang.Object
    This class provides an interface through which the data set provider classes can use the services and information provided by the recon engine.
    • Field Detail

      • reconInfo

        protected ReconInfo reconInfo
        Most of the services provided to the data set providers are delegated to the ReconInfo object. The ReconInfo object itself is never exposed to the data set providers because we want the data set providers to communicate with the recon engine through one single interface.
    • Constructor Detail

      • ReconContext

        public ReconContext(ReconInfo reconInfo)
        Constructor. It takes a valid ReconInfo object so that the service can be delegated to it.
        Parameters:
        reconInfo -
    • Method Detail

      • getReconInfo

        public ReconInfo getReconInfo()
        Expose the ReconInfo.
        Returns:
        the ReconInfo object.
      • getUserInfo

        public UserInfo getUserInfo()
        Expose the UserInfo object. It may be needed for using in constructing SQLFormat or running SQL statements.
        Returns:
        The Maximo UserInfo object
      • getLogger

        public MXLogger getLogger()
        Expose the maximo logger to data set providers to adding logging data.
        Returns:
        The Maximo logger
      • getSqlLogger

        public MXLogger getSqlLogger()
        Expose the maximo SQL logger to data set providers to adding SQL logging data.
        Returns:
        The Maximo SQL ogger
      • getCronName

        public java.lang.String getCronName()
        Expose the current cron task name to data set providers.
        Returns:
        The current cron task name
      • getInstanceName

        public java.lang.String getInstanceName()
        Expose the current cron task instance name to data set providers.
        Returns:
        The current cron task instance name
      • getTaskName

        public java.lang.String getTaskName()
        Expose the current recon task name to data set providers.
        Returns:
        The current recon task name
      • getTask

        public MboRemote getTask()
        Expose the current recon task MBO to data set providers.
        Returns:
        The current recon task MBO
      • getDBShortcut

        public DBShortcut getDBShortcut()
                                 throws MXException,
                                        java.rmi.RemoteException
        Convenience method to provide data set providers a valid DBShortcut object. The data set providers can use it to run SQL statements. And they need to release it after they are done with it.
        Returns:
        A valid DBShortcut
        Throws:
        MXException
        java.rmi.RemoteException
      • releaseDBShortcut

        public void releaseDBShortcut(DBShortcut dbShortcut)
        Release a previously obtained DBShortcut
        Parameters:
        dbShortcut - to be released.
      • getDataSet1

        public DataSet getDataSet1()
      • getDataSet2

        public DataSet getDataSet2()