Class AbstractResource

    • Constructor Detail

      • AbstractResource

        public AbstractResource()
    • Method Detail

      • setTimestamp

        public void setTimestamp​(java.util.Date timestamp)
      • getTimestamp

        public java.util.Date getTimestamp()
        Description copied from interface: Resource
        Returns the Date to use for attributes associated with this resource.
        Specified by:
        getTimestamp in interface Resource
        Returns:
        a Date or null if the current time should be used.
      • resolve

        public Resource resolve()
        Description copied from interface: Resource

        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).

        Specified by:
        resolve in interface Resource
        Returns:
        possibly a new resource, or this same instance if no resolving was performed