com.ibm.tivoli.maximo.fdmbo.map

Class JSONMapperCacheImpl

  • java.lang.Object
    • com.ibm.tivoli.maximo.fdmbo.map.JSONMapperCacheImpl
  • All Implemented Interfaces:
    MaximoCache


    public class JSONMapperCacheImpl
    extends java.lang.Object
    implements MaximoCache
    Loads data JSON Map objects into memory
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String NAME 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.util.Map getAllMaps()
      Get all JSON Maps in the memory
      JSONMapInfo getMapInfo(java.lang.String mapName)
      Gets the info object for the specific map
      java.lang.String getName()
      Returns the name as registered in Maximo Cache
      void init()
      Initialization.
      void refresh()
      Refresh the JSON Map DD
      void reload()
      Refresh the DD in memory
      void reload(java.lang.String key)
      Re-load a particular key in Maximo Cache.
      • Methods inherited from class java.lang.Object

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

      • JSONMapperCacheImpl

        public JSONMapperCacheImpl()
    • Method Detail

      • init

        public void init()
                  throws MXException
        Initialization. Sets up the Database connection to be used and loads the JSON Map into Maximo cache
        Specified by:
        init in interface MaximoCache
        Throws:
        MXException - Maximo Exception
      • getAllMaps

        public java.util.Map getAllMaps()
        Get all JSON Maps in the memory
        Returns:
        intObjects Maximo Object Structures loaded in memory
      • getMapInfo

        public JSONMapInfo getMapInfo(java.lang.String mapName)
        Gets the info object for the specific map
        Parameters:
        mapName - map Name
        Returns:
        JSONMapInfo object
      • getName

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

        public void reload(java.lang.String key)
                    throws MXException
        Re-load a particular key in Maximo Cache. Does not do anything (exists only for the sake of compilation)
        Specified by:
        reload in interface MaximoCache
        Parameters:
        key - key
        Throws:
        MXException - Maximo Exception
      • refresh

        public void refresh()
                     throws MXException
        Refresh the JSON Map DD
        Throws:
        MXException - Maximo Exception