Class PolicyManage
- java.lang.Object
-
- org.opennms.netmgt.config.rancid.adapter.PolicyManage
-
- All Implemented Interfaces:
java.io.Serializable
public class PolicyManage extends java.lang.Object implements java.io.Serializable
This represents a policy to manage a provisioned node if matched a node will be added updated or deleted using the element attribute definitions .- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PolicyManage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSchedule(Schedule schedule)
boolean
equals(java.lang.Object obj)
java.util.Optional<java.lang.String>
getDefaultType()
java.util.Optional<java.lang.Long>
getDelay()
java.lang.String
getName()
Package
getPackage()
java.util.Optional<java.lang.Integer>
getRetries()
java.util.List<Schedule>
getSchedules()
java.util.Optional<java.lang.Boolean>
getUseCategories()
int
hashCode()
boolean
removeSchedule(Schedule schedule)
void
setDefaultType(java.lang.String defaultType)
void
setDelay(java.lang.Long delay)
void
setName(java.lang.String name)
void
setPackage(Package p)
void
setRetries(java.lang.Integer retries)
void
setSchedules(java.util.List<Schedule> schedules)
void
setUseCategories(java.lang.Boolean useCategories)
-
-
-
Method Detail
-
getName
public java.lang.String getName()
-
setName
public void setName(java.lang.String name)
-
getDelay
public java.util.Optional<java.lang.Long> getDelay()
-
setDelay
public void setDelay(java.lang.Long delay)
-
getRetries
public java.util.Optional<java.lang.Integer> getRetries()
-
setRetries
public void setRetries(java.lang.Integer retries)
-
getUseCategories
public java.util.Optional<java.lang.Boolean> getUseCategories()
-
setUseCategories
public void setUseCategories(java.lang.Boolean useCategories)
-
getDefaultType
public java.util.Optional<java.lang.String> getDefaultType()
-
setDefaultType
public void setDefaultType(java.lang.String defaultType)
-
getPackage
public Package getPackage()
-
setPackage
public void setPackage(Package p)
-
getSchedules
public java.util.List<Schedule> getSchedules()
-
setSchedules
public void setSchedules(java.util.List<Schedule> schedules)
-
addSchedule
public void addSchedule(Schedule schedule)
-
removeSchedule
public boolean removeSchedule(Schedule schedule)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-