|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.novell.zos.jdl.MatchContext
public class MatchContext
The MatchContext defines a context for evaluating a constraint.
An instance of this class is supplied to match()
for evaluating
constraints. The MatchContext
provides a way to setup an evaluation context that
the constraint engine is using to evaluate constraints. The MatchContext
is
filled out with the context that is required for evaluating your constraints.
This includes assigning a deployed Job, User, Resource, VM Host and Repository grid objects.
Constructor Summary | |
---|---|
MatchContext()
Construct a new MatchContext |
Method Summary | |
---|---|
void |
setContextArrayFact(java.lang.String factname,
org.python.core.PyList list)
Create and store an array fact on the Context that can be accessed from constraint with the 'context.{factname}'. |
void |
setContextFact(java.lang.String factname,
org.python.core.PyObject value)
Create and store a fact on the Context that can be accessed from constraint with the 'context.{factname}'. |
void |
setJob(java.lang.String job)
Set the Job Grid Object to use in constraint context. |
void |
setJobInstanceId(java.lang.String jobInstanceId)
Set the Job Instance ID to use in constraint context. |
void |
setMatchIterator(java.lang.String iteratorType)
Set the Grid Object type to use in building the array of IDs to match against. |
void |
setRepository(java.lang.String repositoryId)
Set the Repository Grid Object to use in constraint context. |
void |
setResource(java.lang.String resourceId)
Set the Resource Grid Object to use in constraint context. |
void |
setUser(java.lang.String userId)
Set the User Grid Object to use in constraint context. |
void |
setVmHost(java.lang.String vmHostId)
Set the VmHost Grid Object to use in constraint context. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MatchContext()
Method Detail |
---|
public void setRepository(java.lang.String repositoryId)
repositoryId
- Repository Grid Object IDpublic void setUser(java.lang.String userId)
userId
- User Grid Object IDpublic void setVmHost(java.lang.String vmHostId)
vmHostId
- Vm Host Grid Object IDpublic void setResource(java.lang.String resourceId)
resourceId
- Resource Grid Object IDpublic void setJob(java.lang.String job)
job
- Job Grid Object ID to use in constraint context.public void setJobInstanceId(java.lang.String jobInstanceId)
jobInstanceId
- None to not use the current Job instance context.public void setMatchIterator(java.lang.String iteratorType)
TYPE_RESOURCE
.
iteratorType
- Grid Object type to matchpublic void setContextFact(java.lang.String factname, org.python.core.PyObject value)
factname
- the simple name of the factvalue
- the desired fact valuepublic void setContextArrayFact(java.lang.String factname, org.python.core.PyList list)
matchContext = MatchContext() matchContext.setVmHost("host1_demoAdapter") matchContext.setMatchIterator(TYPE_REPOSITORY) matchContext.setContextArrayFact("mode",["provision"]) getMatrix().matchAll(matchContext,"vmhost")
factname
- the simple name of the factlist
- List to be stored as an array fact value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |