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 String
DELETE_ALWAYS
static String
DELETE_MANAGED
static String
DELETE_NEVER
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Long
getBegin()
Start of the interval.String
getDelete()
Attribute that determines if service is to be deleted when down continuously since the start time.Long
getEnd()
End of the interval.Long
getInterval()
Interval at which service is to be polled between the specified start and end when service has been continuously down.boolean
hasEnd()
int
hashCode()
void
setBegin(Integer begin)
void
setBegin(Long begin)
void
setDelete(String delete)
void
setEnd(Integer end)
void
setEnd(Long end)
void
setInterval(Integer interval)
void
setInterval(Long interval)
String
toString()
-
-
-
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)
-
-