psdi.app.bim.loader

Class ProgressLoggerBase

  • java.lang.Object
    • psdi.app.bim.loader.ProgressLoggerBase
    • Field Detail

      • _itemCount

        protected long _itemCount
        Total number of items of any type loaded by the parser - Used to calculate % complete. Set by the loader after all files are parsed but before anything is loaded into the database
    • Constructor Detail

      • ProgressLoggerBase

        public ProgressLoggerBase(java.lang.String messageBundleName)
                           throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • getStartMsg

        protected abstract java.lang.String getStartMsg()
      • getWarningCount

        public int getWarningCount()
      • disableWrites

        protected void disableWrites()
      • enableWrites

        protected void enableWrites()
      • getMessageBundleName

        protected java.lang.String getMessageBundleName()
      • setItemCount

        public void setItemCount(long count)
        Description copied from interface: ProgressLogger
        Set the total number of items to process
        Specified by:
        setItemCount in interface ProgressLogger
      • error

        public void error(java.lang.String msg)
        Specified by:
        error in interface MessageLogger
      • error

        public void error(java.lang.String msg,
                          java.lang.String[] params)
        Specified by:
        error in interface MessageLogger
      • exception

        public void exception(java.lang.Throwable t)
        Specified by:
        exception in interface MessageLogger
      • exception

        public void exception(java.lang.String pageName,
                              java.lang.String itemName,
                              java.lang.Throwable t)
        Specified by:
        exception in interface MessageLogger
      • exception

        public void exception(java.lang.String pageName,
                              java.lang.String itemName,
                              java.lang.String fieldName,
                              java.lang.Throwable t)
        Specified by:
        exception in interface MessageLogger
      • message

        public void message(java.lang.String msg)
        Specified by:
        message in interface MessageLogger
      • message

        public void message(java.lang.String msg,
                            java.lang.String[] params)
        Specified by:
        message in interface MessageLogger
      • progressMsg

        public void progressMsg(java.lang.String msg,
                                java.lang.String[] params)
        Specified by:
        progressMsg in interface MessageLogger
      • start

        public void start(int startStatus)
                   throws java.rmi.RemoteException,
                          MXException
        Description copied from interface: ProgressLogger
        Initiates logging activity. Must be called before any messages are logged
        Specified by:
        start in interface ProgressLogger
        Parameters:
        startStatus - Active status for session
        Throws:
        java.rmi.RemoteException
        MXException
      • warning

        public void warning(java.lang.String msg)
        Specified by:
        warning in interface MessageLogger
      • warning

        public void warning(java.lang.String msg,
                            java.lang.String[] params)
        Specified by:
        warning in interface MessageLogger
      • dataIntegrityMessage

        public void dataIntegrityMessage(java.lang.String msg,
                                         java.lang.String[] params)
        Specified by:
        dataIntegrityMessage in interface MessageLogger
      • itemProcessed

        public void itemProcessed(long count)
        Description copied from interface: ProgressLogger
        Set the number of items processed to count and generate status messages as needed
        Specified by:
        itemProcessed in interface ProgressLogger
      • itemProcessed

        public void itemProcessed()
        Description copied from interface: ProgressLogger
        Increment the number of item processed by one and generate status messages as needed
        Specified by:
        itemProcessed in interface ProgressLogger
      • setMaxLogSize

        public void setMaxLogSize(int maxLogSize)
      • appendMsg

        protected void appendMsg(java.lang.String msg)
      • exceptionNoSave

        protected void exceptionNoSave(java.lang.Throwable t)
      • updatePerdcentComplete

        protected void updatePerdcentComplete()
      • writeLog

        protected void writeLog(java.lang.String msg)
      • writeLog

        protected void writeLog()
      • formatMessage

        public static java.lang.String formatMessage(java.lang.String msg,
                                                     java.lang.String[] params)
      • messageFromException

        public static java.lang.String messageFromException(java.lang.Throwable t)