|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.rancid.adapter.PolicyManage
public class PolicyManage
This represents a policy to manage a provisioned node if matched a node will be added updated or deleted using the element attribute definitions .
| Constructor Summary | |
|---|---|
PolicyManage()
|
|
| Method Summary | |
|---|---|
void |
addSchedule(int index,
Schedule vSchedule)
|
void |
addSchedule(Schedule vSchedule)
|
void |
deleteDelay()
|
void |
deleteRetries()
|
void |
deleteUseCategories()
|
Enumeration<Schedule> |
enumerateSchedule()
Method enumerateSchedule. |
String |
getDefaultType()
Returns the value of field 'defaultType'. |
long |
getDelay()
Returns the value of field 'delay'. |
String |
getName()
Returns the value of field 'name'. |
Package |
getPackage()
Returns the value of field 'package'. |
int |
getRetries()
Returns the value of field 'retries'. |
Schedule[] |
getSchedule()
Method getSchedule.Returns the contents of the collection in an Array. |
Schedule |
getSchedule(int index)
Method getSchedule. |
List<Schedule> |
getScheduleCollection()
Method getScheduleCollection.Returns a reference to '_scheduleList'. |
int |
getScheduleCount()
Method getScheduleCount. |
boolean |
getUseCategories()
Returns the value of field 'useCategories'. |
boolean |
hasDelay()
Method hasDelay. |
boolean |
hasRetries()
Method hasRetries. |
boolean |
hasUseCategories()
Method hasUseCategories. |
boolean |
isUseCategories()
Returns the value of field 'useCategories'. |
boolean |
isValid()
Method isValid. |
Iterator<Schedule> |
iterateSchedule()
Method iterateSchedule. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllSchedule()
|
boolean |
removeSchedule(Schedule vSchedule)
Method removeSchedule. |
Schedule |
removeScheduleAt(int index)
Method removeScheduleAt. |
void |
setDefaultType(String defaultType)
Sets the value of field 'defaultType'. |
void |
setDelay(long delay)
Sets the value of field 'delay'. |
void |
setName(String name)
Sets the value of field 'name'. |
void |
setPackage(Package _package)
Sets the value of field 'package'. |
void |
setRetries(int retries)
Sets the value of field 'retries'. |
void |
setSchedule(int index,
Schedule vSchedule)
|
void |
setSchedule(List<Schedule> vScheduleList)
Sets the value of '_scheduleList' by copying the given Vector. |
void |
setSchedule(Schedule[] vScheduleArray)
|
void |
setScheduleCollection(List<Schedule> scheduleList)
Deprecated. |
void |
setUseCategories(boolean useCategories)
Sets the value of field 'useCategories'. |
static PolicyManage |
unmarshal(Reader reader)
Method unmarshal. |
void |
validate()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PolicyManage()
| Method Detail |
|---|
public void addSchedule(Schedule vSchedule)
throws IndexOutOfBoundsException
vSchedule -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addSchedule(int index,
Schedule vSchedule)
throws IndexOutOfBoundsException
index - vSchedule -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void deleteDelay()
public void deleteRetries()
public void deleteUseCategories()
public Enumeration<Schedule> enumerateSchedule()
public String getDefaultType()
public long getDelay()
public String getName()
public Package getPackage()
public int getRetries()
public Schedule getSchedule(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Schedule[] getSchedule()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<Schedule> getScheduleCollection()
public int getScheduleCount()
public boolean getUseCategories()
public boolean hasDelay()
public boolean hasRetries()
public boolean hasUseCategories()
public boolean isUseCategories()
public boolean isValid()
public Iterator<Schedule> iterateSchedule()
public void marshal(Writer out)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
out -
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void marshal(ContentHandler handler)
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
handler -
IOException - if an IOException occurs during
marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshalingpublic void removeAllSchedule()
public boolean removeSchedule(Schedule vSchedule)
vSchedule -
public Schedule removeScheduleAt(int index)
index -
public void setDefaultType(String defaultType)
defaultType - the value of field 'defaultType'.public void setDelay(long delay)
delay - the value of field 'delay'.public void setName(String name)
name - the value of field 'name'.public void setPackage(Package _package)
_package - package - the value of field 'package'.public void setRetries(int retries)
retries - the value of field 'retries'.
public void setSchedule(int index,
Schedule vSchedule)
throws IndexOutOfBoundsException
index - vSchedule -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setSchedule(Schedule[] vScheduleArray)
vScheduleArray - public void setSchedule(List<Schedule> vScheduleList)
vScheduleList - the Vector to copy.public void setScheduleCollection(List<Schedule> scheduleList)
scheduleList - the Vector to set.public void setUseCategories(boolean useCategories)
useCategories - the value of field 'useCategories'.
public static PolicyManage unmarshal(Reader reader)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
reader -
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void validate()
throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||