public interface JobConstrainerSmartFoundrySession extends OsidSession
This session manages queries and sequencing to create "smart" dynamic
foundries. A JobConstrainerQuery
can be retrieved from this
session and mapped to this Foundry
to create a virtual
collection of job constrainers. The job constrainer may be sequenced using
the JobConstrainerSearchOrder
from this session.
This Foundry
has a default query that matches any job
constrainer and a default search order that specifies no sequencing. The
queries may be examined using a JobConstrainerQueryInspector.
The query may be modified by converting the inspector back to a
JobConstrainerQuery.
Modifier and Type | Method and Description |
---|---|
void |
applyJobConstrainerQuery(JobConstrainerQuery jobConstrainerQuery)
Applies a job constrainer query to this foundry.
|
void |
applyJobConstrainerSequencing(JobConstrainerSearchOrder jobConstrainerSearchOrder)
Applies a job constrainer search order to this foundry.
|
boolean |
canManageSmartFoundries()
Tests if this user can manage smart foundries.
|
Foundry |
getFoundry()
Gets the
Foundry associated with this session. |
Id |
getFoundryId()
Gets the
Foundry Id associated with this
session. |
JobConstrainerQuery |
getJobConstrainerQuery()
Gets a job constrainer query.
|
JobConstrainerQuery |
getJobConstrainerQueryFromInspector(JobConstrainerQueryInspector jobConstrainerQueryInspector)
Gets a job constrainer query from an inspector.
|
JobConstrainerSearchOrder |
getJobConstrainerSearchOrder()
Gets a job constrainer search order.
|
JobConstrainerQueryInspector |
inspectJobConstrainerQuery()
Gets a job constrainer query inspector for this foundry.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getFoundryId()
Foundry
Id
associated with this
session. Foundry Id
associated with this sessionmandatory
- This method must be implemented. Foundry getFoundry() throws OperationFailedException, PermissionDeniedException
Foundry
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canManageSmartFoundries()
PERMISSION_DENIED.
This is intended as a hint to an
application that may opt not to offer operations to unauthorized
users. false
if smart foundry management is not
authorized, true
otherwisemandatory
- This method must be implemented. JobConstrainerQuery getJobConstrainerQuery()
mandatory
- This method must be implemented. JobConstrainerSearchOrder getJobConstrainerSearchOrder()
mandatory
- This method must be implemented. void applyJobConstrainerQuery(JobConstrainerQuery jobConstrainerQuery) throws OperationFailedException, PermissionDeniedException
jobConstrainerQuery
- the job constrainer queryNullArgumentException
- jobConstrainerQuery
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- jobConstrainerQuery
not of this servicemandatory
- This method must be implemented. JobConstrainerQueryInspector inspectJobConstrainerQuery() throws OperationFailedException, PermissionDeniedException
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredmandatory
- This method must be implemented. void applyJobConstrainerSequencing(JobConstrainerSearchOrder jobConstrainerSearchOrder) throws OperationFailedException, PermissionDeniedException
jobConstrainerSearchOrder
- the job constrainer search orderNullArgumentException
-
jobConstrainerSearchOrder
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- jobConstrainerSearchOrder
not of this servicemandatory
- This method must be implemented. JobConstrainerQuery getJobConstrainerQueryFromInspector(JobConstrainerQueryInspector jobConstrainerQueryInspector)
jobConstrainerQueryInspector
- a job constrainer query inspectorNullArgumentException
-
jobConstrainerQueryInspector
is null
UnsupportedException
-
jobConstrainerQueryInspector
is not of this servicemandatory
- This method must be implemented.