com.novell.zos.jdl
Class PolicyInfo

java.lang.Object
  extended by com.novell.zos.jdl.GridObjectInfo
      extended by com.novell.zos.jdl.PolicyInfo

public class PolicyInfo
extends GridObjectInfo

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

associate

public void associate(GridObjectInfo gridObject)
Associate a grid object with this policy.

Parameters:
gridObject - Grid Object to associate this policy with

unassociate

public void unassociate(GridObjectInfo gridObject)
Unassociate a Grid Object with this policy.

Parameters:
gridObject - Grid Object to unassociate this policy with

getPolicyText

public java.lang.String getPolicyText()
Retrieve policy text from policy

Returns:
String Policy text

setPolicyText

public void setPolicyText(java.lang.String policyText)
Set new policy text for policy

Parameters:
policyText - String policy text
Throws:
java.lang.Exception - if syntax or validation errors occur


Copyright (c) 2008 Novell, Inc. All rights reserved.