|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.novell.zos.jdl.GridObjectInfo com.novell.zos.jdl.PolicyInfo
public class PolicyInfo
Representation of a Policy Object.
This class allows for associating and unassociation of Grid objects using this policy.
Example of retrieving a policy object and associating a resource object to the policy:
resource = getMatrix().getGridObject(TYPE_RESOURCE,"sles10") policy = getMatrix().getPolicy("myPolicy") policy.associate(resource)
Method Summary | |
---|---|
void |
associate(GridObjectInfo gridObject)
Associate a grid object with this policy. |
java.lang.String |
getPolicyText()
Retrieve policy text from policy |
void |
setPolicyText(java.lang.String policyText)
Set new policy text for policy |
void |
unassociate(GridObjectInfo gridObject)
Unassociate a Grid Object with this policy. |
Methods inherited from class com.novell.zos.jdl.GridObjectInfo |
---|
deleteFact, factExists, getFact, getFactLastModified, getFactNames, refresh, setArrayFact, setBooleanArrayFact, setDateArrayFact, setDateFact, setFact, setIntegerArrayFact, setRealArrayFact, setStringArrayFact, setTimeArrayFact, setTimeFact |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void associate(GridObjectInfo gridObject)
gridObject
- Grid Object to associate this policy withpublic void unassociate(GridObjectInfo gridObject)
gridObject
- Grid Object to unassociate this policy withpublic java.lang.String getPolicyText()
public void setPolicyText(java.lang.String policyText)
policyText
- String policy text
java.lang.Exception
- if syntax or validation errors occur
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |