psdi.app.dpamswusg

Class DPASWUsageCache

  • java.lang.Object
    • psdi.app.dpamswusg.DPASWUsageCache
  • All Implemented Interfaces:
    MaximoCache


    public class DPASWUsageCache
    extends java.lang.Object
    implements MaximoCache
    Chache software detection tools usage count information from DPAMSWUSAGERANGE
    • Constructor Summary

      Constructors 
      Constructor and Description
      DPASWUsageCache() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String convertValue(java.lang.String swdetectiontool, int usagecount)
      return the description of the usagecout that in the range
      java.lang.String getName()
      Returns the name of the cache object.
      void init()
      Initialize the cache object.
      void initInstance()
      Creates and populates the conversion map
      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

      • DPASWUsageCache

        public DPASWUsageCache()
    • Method Detail

      • getName

        public java.lang.String getName()
        Description copied from interface: MaximoCache
        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. MaximoDD returns "MAXIMODD"
        Specified by:
        getName in interface MaximoCache
        Returns:
      • convertValue

        public java.lang.String convertValue(java.lang.String swdetectiontool,
                                             int usagecount)
        return the description of the usagecout that in the range
      • init

        public void init()
        Description copied from interface: MaximoCache
        Initialize the cache object. This will be called by the app server on startup.
        Specified by:
        init in interface MaximoCache
      • initInstance

        public void initInstance()
                          throws MXException
        Creates and populates the conversion map
        Throws:
        MXException
      • reload

        public void reload()
                    throws MXException
        Description copied from interface: MaximoCache
        Reloads the cache object. This will be called by the app server whenever the cache needs to be refreshed. Don't call this method directly. Instead call MXServer.reloadCache(String, boolean).
        Specified by:
        reload in interface MaximoCache
        Throws:
        MXException
      • reload

        public void reload(java.lang.String key)
                    throws MXException
        Description copied from interface: MaximoCache
        Initialize a specific component of the cache identified by the key. E.g. In Maxvars, a specific maxvar can be reinitiliazed from the database. Don't call this method directly. Instead call MXServer.reloadCache(String, String, boolean).
        Specified by:
        reload in interface MaximoCache
        Throws:
        MXException