Class JexlIndexStorageStrategy

    • Constructor Detail

      • JexlIndexStorageStrategy

        public JexlIndexStorageStrategy()
    • Method Detail

      • getResourceNameFromIndex

        public java.lang.String getResourceNameFromIndex​(CollectionResource resource)
        This functions translate resourceIndex into a "unique" and "non-variable" name that could be identify a resource, as described earlier. This method could be expensive because it could require send SNMP queries and make complicated functions to build the name. So you must try to call it only when is necessary.
        Specified by:
        getResourceNameFromIndex in interface StorageStrategy
        Overrides:
        getResourceNameFromIndex in class IndexStorageStrategy
        Parameters:
        resource - a CollectionResource object
        Returns:
        a String object.
      • setParameters

        public void setParameters​(java.util.List<Parameter> parameterCollection)
                           throws java.lang.IllegalArgumentException

        setParameters

        Specified by:
        setParameters in interface StorageStrategy
        Overrides:
        setParameters in class IndexStorageStrategy
        Parameters:
        parameterCollection - a List object.
        Throws:
        java.lang.IllegalArgumentException
      • updateContext

        public void updateContext​(org.apache.commons.jexl2.JexlContext context,
                                  CollectionResource resource)
                           throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException