public interface ReadablePollOutagesDao extends ReadableDao<Outages>
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.
|
getReadOnlyConfig, reload
boolean isNodeIdInOutage(long lnodeid, String outName)
lnodeid
- the nodeid to be checkedoutName
- the outage nameboolean isInterfaceInOutage(String linterface, String outName)
linterface
- the interface to be looked upoutName
- the outage nameboolean isCurTimeInOutage(String outName)
outName
- the outage nameboolean isTimeInOutage(long time, String outName)
time
- the time in millis to look upoutName
- the outage nameString getOutageType(String name)
name
- the outage that is to be looked upList<Time> getOutageTimes(String name)
name
- the outage that is to be looked upList<Interface> getInterfaces(String name)
name
- the outage that is to be looked upboolean isInterfaceInOutage(String linterface, Outage out)
linterface
- the interface to be looked upgetOutageSchedule(out)
- the outageboolean isTimeInOutage(Calendar cal, String outName)
boolean isTimeInOutage(Calendar cal, Outage outage)
cal
- the calendar to lookupgetOutageSchedule(outage)
- the outageboolean isCurTimeInOutage(Outage out)
getOutageSchedule(out)
- the outageCalendar getEndOfOutage(Outage out)
Copyright © 2020. All rights reserved.