|
"WEBNMS_5 API Docs" | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.management.policydb.PolicyObject
com.adventnet.management.policydb.PeriodicPolicyObject
public abstract class PeriodicPolicyObject
Policies which need to be called on a fixed time interval can extend this class. One of the important variables is the period ( in seconds ) between 2 schedules of the policy. The NmsPolicyMgr takes care of scheduling these polices. Please note that when the executeAction is invoked on the Policies of this types the the "target"//No Internationalisation field in PolicyEvent would be null. In other words the Polices of this type will have the intelligence within them to get the targets on which they would be executed.
| Field Summary | |
|---|---|
protected int |
period
The Periodicity of the occurence. |
| Fields inherited from class com.adventnet.management.policydb.PolicyObject |
|---|
actions, conditions, groupName, helpURL, isAlreadyInExecution, name, policyObjectCustomizer, runnableInst, status, userProperties |
| Constructor Summary | |
|---|---|
PeriodicPolicyObject()
|
|
| Method Summary | |
|---|---|
abstract void |
executeAction(PolicyEvent policyEvt)
executes action of this policy object. |
protected java.util.Properties |
getBaseProperties()
Returns all the base properties(namely name,groupName,status and period) of the policy object |
abstract java.lang.String |
getHelpURL()
Returns the help URL of this PolicyObject. |
int |
getPeriod()
gets the time intervals ( in second) between the 2 schedules of this policy. |
abstract java.lang.String |
getPolicyObjectCustomizer()
Returns the customizer class of this policy object |
abstract java.util.Properties |
getProperties()
Returns the properties of this policy object |
protected void |
setBaseProperties(java.util.Properties p)
sets all the base properties(namely name,groupName,status and period) of the policy object |
void |
setPeriod(int i)
sets the time intervals ( in second) between the 2 schedules of this policy. |
abstract void |
setProperties(java.util.Properties p)
Sets the properties for this policy object |
| Methods inherited from class com.adventnet.management.policydb.PolicyObject |
|---|
addAction, addCondition, addPolicyActionAndCondition, checkConditions, clone, executePolicy, getActionKeys, getActions, getConditionKeys, getConditions, getGroupName, getKey, getKeyName, getName, getPolicyAction, getPolicyCondition, getRunnableInstance, getStatus, getTimeVector, getUserProperties, getUserProperty, performRequiredActions, removeUserProperty, setGroupName, setHelpURL, setName, setPolicyObjectCustomizer, setRunnableInstance, setStatus, setTimeVector, setUserProperty |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int period
| Constructor Detail |
|---|
public PeriodicPolicyObject()
| Method Detail |
|---|
public int getPeriod()
public void setPeriod(int i)
i - time in secondspublic abstract java.util.Properties getProperties()
getProperties in interface DBInterfacegetProperties in class PolicyObjectpublic abstract void setProperties(java.util.Properties p)
setProperties in interface DBInterfacesetProperties in class PolicyObjectp - the property to be set.public abstract java.lang.String getPolicyObjectCustomizer()
getPolicyObjectCustomizer in class PolicyObjectNOTE
Returns null if there is no customizer class.
public abstract java.lang.String getHelpURL()
getHelpURL in class PolicyObjectNOTE
Returns null if there is no help associated with the policy object.
protected void setBaseProperties(java.util.Properties p)
All instances of this class are expected to call this method in their setProperties method (Abstract method in this class) to set their base properties.
setBaseProperties in class PolicyObjectProperties - to be setprotected java.util.Properties getBaseProperties()
All instances of this class are expected to call this method in their getProperties method (Abstract method in this class) to get their base properties.
getBaseProperties in class PolicyObjectpublic abstract void executeAction(PolicyEvent policyEvt)
executeAction in class PolicyObjectpolicyEvt - PolicyEvent
|
"WEBNMS_5 API Docs" | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||