Package org.opennms.netmgt.config.poller
Class Downtime
- java.lang.Object
-
- org.opennms.netmgt.config.poller.Downtime
-
- All Implemented Interfaces:
Serializable
public class Downtime extends Object implements Serializable
Downtime model. This determines the rates at which addresses are to be polled when they remain down for extended periods. Usually polling is done at lower rates when a node is down until a certain amount of downtime at which the node is marked 'deleted'.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringDELETE_ALWAYSstatic StringDELETE_MANAGEDstatic StringDELETE_NEVER
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)LonggetBegin()Start of the interval.StringgetDelete()Attribute that determines if service is to be deleted when down continuously since the start time.LonggetEnd()End of the interval.LonggetInterval()Interval at which service is to be polled between the specified start and end when service has been continuously down.booleanhasEnd()inthashCode()voidsetBegin(Integer begin)voidsetBegin(Long begin)voidsetDelete(String delete)voidsetEnd(Integer end)voidsetEnd(Long end)voidsetInterval(Integer interval)voidsetInterval(Long interval)StringtoString()
-
-
-
Field Detail
-
DELETE_ALWAYS
public static final String DELETE_ALWAYS
- See Also:
- Constant Field Values
-
DELETE_MANAGED
public static final String DELETE_MANAGED
- See Also:
- Constant Field Values
-
DELETE_NEVER
public static final String DELETE_NEVER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Downtime
public Downtime()
-
Downtime
public Downtime(long interval, long begin, long end)
-
Downtime
public Downtime(long begin, String delete)
-
-
Method Detail
-
getBegin
public Long getBegin()
Start of the interval.
-
setBegin
public void setBegin(Long begin)
-
setBegin
public void setBegin(Integer begin)
-
getEnd
public Long getEnd()
End of the interval.
-
setEnd
public void setEnd(Long end)
-
setEnd
public void setEnd(Integer end)
-
hasEnd
public boolean hasEnd()
-
getDelete
public String getDelete()
Attribute that determines if service is to be deleted when down continuously since the start time.
-
setDelete
public void setDelete(String delete)
-
getInterval
public Long getInterval()
Interval at which service is to be polled between the specified start and end when service has been continuously down.
-
setInterval
public void setInterval(Long interval)
-
setInterval
public void setInterval(Integer interval)
-
-