psdi.iface.mic

Class IntErrorCache

  • java.lang.Object
    • psdi.iface.mic.IntErrorCache
  • All Implemented Interfaces:
    MaximoCache


    public class IntErrorCache
    extends java.lang.Object
    implements MaximoCache
    Loads information from MAXINTERROR and MAXINTERRORMSG tables
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.util.Map getAllErrors()
      Get all the eror messages.
      static IntErrorCache getInstance()
      Always use one instance of EndPointCache
      MaxIntErrorInfo getIntErrorInfo(java.lang.String id)
      Get the MaxIntErrorInfo object
      java.lang.String getName()
      Returns the name as registered in Maximo Cache
      boolean hasError(java.lang.String id)
      Get the MaxIntErrorInfo object
      void init()
      Initialize the IntErrorCache
      void reload()
      Refresh the IntErrorCache
      void reload(java.lang.String key)
      Reload a paricular key in memory.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • reload

        public void reload(java.lang.String key)
                    throws MXException
        Reload a paricular key in memory. Not implemented (exists only for compilation sake)
        Specified by:
        reload in interface MaximoCache
        Parameters:
        key - to reload
        Throws:
        MXException - Maximo Exception
      • getName

        public java.lang.String getName()
        Returns the name as registered in Maximo Cache
        Specified by:
        getName in interface MaximoCache
        Returns:
        MAXINTERROR
      • getAllErrors

        public java.util.Map getAllErrors()
        Get all the eror messages. key is message id, value is MaxIntErrorInfo object
        Returns:
        map of all the defined endpoints
      • getIntErrorInfo

        public MaxIntErrorInfo getIntErrorInfo(java.lang.String id)
        Get the MaxIntErrorInfo object
        Parameters:
        id - mesage id
        Returns:
        MaxIntErrorInfo object
      • hasError

        public boolean hasError(java.lang.String id)
        Get the MaxIntErrorInfo object
        Parameters:
        id - message id
        Returns:
        true or false depending nif message has error