Interface ResourceStatusProvider


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

      • getType

        @Nonnull
        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.
        Returns:
        the type of the statuses provided by this provider
        See Also:
        ResourceStatus.getType()
      • getStatuses

        @Nullable
        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.
        Parameters:
        resource - a resource
        Returns:
        a list of statuses
        See Also:
        ResourceStatus