com.ibm.tivoli.maximo.fdmbo

Class JSONResourceCacheImpl

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


    public class JSONResourceCacheImpl
    extends java.lang.Object
    implements MaximoCache
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getName()
      Returns the name of the cache object.
      JSONResourceInfo getResourceInfo(java.lang.String resourceName)
      Returns resource info based on resource name.
      java.util.Map getResourceMap()
      Returns map of all resource types.
      ResourceTypeInfo getResourceTypeInfo(java.lang.String resourceType)
      Returns resource types based on resource type name.
      java.util.Map getResourceTypeMap()
      Returns map of all resource types.
      void init()
      Initialize the cache object.
      void reload()
      Reloads the cache object.
      void reload(java.lang.String key)
      Initialize a specific component of the cache identified by the key.
      • Methods inherited from class java.lang.Object

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

      • JSONResourceCacheImpl

        public JSONResourceCacheImpl()
    • Method Detail

      • init

        public void init()
                  throws MXException
        Initialize the cache object. This will be called by the app server on startup.
        Specified by:
        init in interface MaximoCache
        Throws:
        MXException
      • reload

        public void reload()
                    throws MXException
        Reloads the cache object. This will be called by the app server whenever the cache needs to be refreshed.
        Specified by:
        reload in interface MaximoCache
        Throws:
        MXException
      • reload

        public void reload(java.lang.String key)
                    throws MXException
        Initialize a specific component of the cache identified by the key. E.g. In JSON resource, a specific JSON resource can be re-initiliazed from the database.
        Specified by:
        reload in interface MaximoCache
        Parameters:
        key -
        Throws:
        MXException
      • getResourceTypeMap

        public java.util.Map getResourceTypeMap()
        Returns map of all resource types.
        Returns:
        map of ResourceTypeInfo objects
      • getResourceTypeInfo

        public ResourceTypeInfo getResourceTypeInfo(java.lang.String resourceType)
        Returns resource types based on resource type name.
        Returns:
        ResourceTypeInfo objects
      • getResourceMap

        public java.util.Map getResourceMap()
        Returns map of all resource types.
        Returns:
        map of ResourceTypeInfo objects
      • getResourceInfo

        public JSONResourceInfo getResourceInfo(java.lang.String resourceName)
        Returns resource info based on resource name.
        Returns:
        JSONResourceInfo object
      • getName

        public java.lang.String getName()
        Returns the name of the cache object. Should be unique within the app server. This name is used to uniquely identify the cache object among all cached object for both accessing the cache object as well as refreshing the cache object. Ex. JSON Resource Cache returns "JSONOS"
        Specified by:
        getName in interface MaximoCache
        Returns:
        name of the cache