Interface Resource

    • Method Detail

      • getTypeName

        String getTypeName()
        Returns the type name associated with the resource. Used for thresholding.
        Returns:
        type name
      • getInstance

        String getInstance()
        Returns a unique name for the instance of this resource. Used by the IndexStorageStrategy
        Returns:
        instance name
      • getUnmodifiedInstance

        String getUnmodifiedInstance()
        Returns the original unmodified unique name for the instance of this resource. Used by the ObjectNameStorageStrategy
        Returns:
        instance name
      • getPath

        ResourcePath getPath​(CollectionResource resource)
        Retrieves the path of the resource, relative to the repository root.
        Parameters:
        resource - Used by the GenericTypeResource in order to determine the instance name.
        Returns:
        relative path
      • getTimestamp

        Date getTimestamp()
        Returns the Date to use for attributes associated with this resource.
        Returns:
        a Date or null if the current time should be used.
      • resolve

        Resource resolve()

        Used to lookup additional resource related information that may not have been available when the resource was created, and optionally return a new resource.

        See DeferredGenericTypeResource.resolve().

        This method should only be called when running in the context of the OpenNMS JVM (and not the Minion).

        Returns:
        possibly a new resource, or this same instance if no resolving was performed