public abstract class AbstractPollOutagesDao extends Object implements ReadablePollOutagesDao
Modifier and Type | Field and Description |
---|---|
static String |
JSON_STORE_KEY |
Constructor and Description |
---|
AbstractPollOutagesDao() |
Modifier and Type | Method and Description |
---|---|
Calendar |
getEndOfOutage(Outage out)
Return a calendar representing the end time of this outage, assuming it's
currently active (i.e.
|
Calendar |
getEndOfOutage(String outName)
getEndOfOutage
|
List<Interface> |
getInterfaces(String name)
Return the interfaces for specified outage.
|
List<Node> |
getNodeIds(String name)
getNodeIds
|
List<Time> |
getOutageTimes(String name)
Return the outage times for specified outage.
|
String |
getOutageType(String name)
Return the type for specified outage.
|
boolean |
isCurTimeInOutage(Outage out)
Return if current time is part of specified outage.
|
boolean |
isCurTimeInOutage(String outName)
Return if current time is part of specified outage.
|
boolean |
isInterfaceInOutage(String linterface,
Outage out)
Return if interfaces is part of specified outage.
|
boolean |
isInterfaceInOutage(String linterface,
String outName)
Return if interfaces is part of specified outage.
|
boolean |
isNodeIdInOutage(long lnodeid,
Outage out)
Return if nodeid is part of specified outage
|
boolean |
isNodeIdInOutage(long lnodeid,
String outName)
Return if the node represented by the nodeid is part of specified outage.
|
boolean |
isTimeInOutage(Calendar cal,
Outage outage)
Return if time is part of specified outage.
|
boolean |
isTimeInOutage(Calendar cal,
String outName)
Return if time is part of specified outage.
|
boolean |
isTimeInOutage(long time,
String outName)
Return if time is part of specified outage.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getReadOnlyConfig, reload
public static final String JSON_STORE_KEY
public boolean isNodeIdInOutage(long lnodeid, String outName)
ReadablePollOutagesDao
isNodeIdInOutage
in interface ReadablePollOutagesDao
lnodeid
- the nodeid to be checkedoutName
- the outage namepublic boolean isInterfaceInOutage(String linterface, String outName)
ReadablePollOutagesDao
isInterfaceInOutage
in interface ReadablePollOutagesDao
linterface
- the interface to be looked upoutName
- the outage namepublic boolean isCurTimeInOutage(String outName)
ReadablePollOutagesDao
isCurTimeInOutage
in interface ReadablePollOutagesDao
outName
- the outage namepublic boolean isTimeInOutage(long time, String outName)
ReadablePollOutagesDao
isTimeInOutage
in interface ReadablePollOutagesDao
time
- the time in millis to look upoutName
- the outage namepublic String getOutageType(String name)
ReadablePollOutagesDao
getOutageType
in interface ReadablePollOutagesDao
name
- the outage that is to be looked uppublic List<Time> getOutageTimes(String name)
ReadablePollOutagesDao
getOutageTimes
in interface ReadablePollOutagesDao
name
- the outage that is to be looked uppublic List<Interface> getInterfaces(String name)
ReadablePollOutagesDao
getInterfaces
in interface ReadablePollOutagesDao
name
- the outage that is to be looked uppublic boolean isTimeInOutage(Calendar cal, String outName)
ReadablePollOutagesDao
isTimeInOutage
in interface ReadablePollOutagesDao
public List<Node> getNodeIds(String name)
ReadablePollOutagesDao
getNodeIds
getNodeIds
in interface ReadablePollOutagesDao
name
- a String
object.Node
objects.public Calendar getEndOfOutage(String outName)
ReadablePollOutagesDao
getEndOfOutage
getEndOfOutage
in interface ReadablePollOutagesDao
outName
- a String
object.Calendar
object.public boolean isInterfaceInOutage(String linterface, Outage out)
ReadablePollOutagesDao
isInterfaceInOutage
in interface ReadablePollOutagesDao
linterface
- the interface to be looked uppublic boolean isTimeInOutage(Calendar cal, Outage outage)
ReadablePollOutagesDao
isTimeInOutage
in interface ReadablePollOutagesDao
cal
- the calendar to lookuppublic boolean isCurTimeInOutage(Outage out)
ReadablePollOutagesDao
isCurTimeInOutage
in interface ReadablePollOutagesDao
public Calendar getEndOfOutage(Outage out)
ReadablePollOutagesDao
getEndOfOutage
in interface ReadablePollOutagesDao
Calendar
object.public boolean isNodeIdInOutage(long lnodeid, Outage out)
ReadablePollOutagesDao
Return if nodeid is part of specified outage
isNodeIdInOutage
in interface ReadablePollOutagesDao
lnodeid
- the nodeid to be looked upCopyright © 2020. All rights reserved.