Interface ResourceStatusProvider

  • public interface ResourceStatusProvider
    A ResourceStatusProvider provides ResourceStatuses of a certain status type about Resources.
    • Method Detail

      • getType

        java.lang.String getType()
        Returns the type of statuses that are provided by this provider. The status type defines the module or feature the status originates from. The statuses returned by getStatuses(Resource) must be of the this status type.
        the type of the statuses provided by this provider
        See Also:
      • getStatuses

        java.util.List<ResourceStatus> getStatuses​(Resource resource)
        Returns a list of ResourceStatuses for a given Resource. The returned statuses must match the status type returned by getType() and must not leak any information which the resource's underlying resource provider is not privileged to access.
        resource - a resource
        a list of statuses
        See Also: