Interface PoolProcessorQuery

All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidOperableQuery, OsidProcessorQuery, OsidQuery, OsidRuleQuery, Suppliable

public interface PoolProcessorQuery extends OsidProcessorQuery

This is the query for searching pool processors. Each method match specifies an AND term while multiple invocations of the same method produce a nested OR .

  • Method Details

    • matchAllocatesByLeastUse

      void matchAllocatesByLeastUse(boolean match)
      Matches pools that allocate by least use.
      Parameters:
      match - true to match pool allocators that allocate by least use, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • clearAllocatesByLeastUseTerms

      void clearAllocatesByLeastUseTerms()
      Clears the allocate by least use query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchAllocatesByMostUse

      void matchAllocatesByMostUse(boolean match)
      Matches pools that allocate by most use.
      Parameters:
      match - true to match pool allocators that allocate by most use, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • clearAllocatesByMostUseTerms

      void clearAllocatesByMostUseTerms()
      Clears the allocate by most use query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchAllocatesByLeastCost

      void matchAllocatesByLeastCost(boolean match)
      Matches pools that allocate by least cost.
      Parameters:
      match - true to match pool allocators that allocate by least cost, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • clearAllocatesByLeastCostTerms

      void clearAllocatesByLeastCostTerms()
      Clears the allocate by most cost query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchAllocatesByMostCost

      void matchAllocatesByMostCost(boolean match)
      Matches pools that allocate by most cost.
      Parameters:
      match - true to match pool allocators that allocate by most cost, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • clearAllocatesByMostCostTerms

      void clearAllocatesByMostCostTerms()
      Clears the allocate by least cost query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchRuledPoolId

      void matchRuledPoolId(Id poolId, boolean match)
      Matches mapped to the pool.
      Parameters:
      poolId - the pool Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - poolId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearRuledPoolIdTerms

      void clearRuledPoolIdTerms()
      Clears the pool Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsRuledPoolQuery

      boolean supportsRuledPoolQuery()
      Tests if a PoolQuery is available.
      Returns:
      true if a pool query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getRuledPoolQuery

      PoolQuery getRuledPoolQuery()
      Gets the query for a pool. Multiple retrievals produce a nested OR term.
      Returns:
      the pool query
      Throws:
      UnimplementedException - supportsRuledPoolQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsRuledPoolQuery()} is {@code true} .
    • matchAnyRuledPool

      void matchAnyRuledPool(boolean match)
      Matches mapped to any pool.
      Parameters:
      match - true for mapped to any pool, false to match mapped to no pool
      Compliance:
      mandatory - This method must be implemented.
    • clearRuledPoolTerms

      void clearRuledPoolTerms()
      Clears the pool query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchDistributorId

      void matchDistributorId(Id distributorId, boolean match)
      Matches mapped to the distributor.
      Parameters:
      distributorId - the distributor Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - distributorId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearDistributorIdTerms

      void clearDistributorIdTerms()
      Clears the distributor Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsDistributorQuery

      boolean supportsDistributorQuery()
      Tests if a DistributorQuery is available.
      Returns:
      true if a distributor query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getDistributorQuery

      DistributorQuery getDistributorQuery()
      Gets the query for a distributor. Multiple retrievals produce a nested OR term.
      Returns:
      the distributor query
      Throws:
      UnimplementedException - supportsDistributorQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsDistributorQuery()} is {@code true} .
    • clearDistributorTerms

      void clearDistributorTerms()
      Clears the distributor query terms.
      Compliance:
      mandatory - This method must be implemented.
    • getPoolProcessorQueryRecord

      PoolProcessorQueryRecord getPoolProcessorQueryRecord(Type poolProcessorRecordType) throws OperationFailedException
      Gets the pool processor query record corresponding to the given PoolProcessor record Type . Multiple record retrievals produce a nested OR term.
      Parameters:
      poolProcessorRecordType - a pool processor record type
      Returns:
      the pool processor query record
      Throws:
      NullArgumentException - poolProcessorRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(poolProcessorRecordType) is false
      Compliance:
      mandatory - This method must be implemented.