|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.dao.castor.AbstractCastorConfigDao<Outages,Outages>
org.opennms.netmgt.config.PollOutagesConfigManager
public abstract class PollOutagesConfigManager
Represents a PollOutagesConfigManager
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.opennms.netmgt.dao.castor.AbstractCastorConfigDao |
|---|
AbstractCastorConfigDao.CastorReloadCallback |
| Constructor Summary | |
|---|---|
PollOutagesConfigManager()
|
|
| Method Summary | |
|---|---|
void |
addOutage(Outage newOutage)
addOutage |
void |
afterPropertiesSet()
afterPropertiesSet |
protected String |
createLoadedLogMessage(Outages config,
long diffTime)
createLoadedLogMessage |
protected Outages |
getConfig()
getConfig |
static 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 |
Interface[] |
getInterfaces(String name)
Return the interfaces for specified outage. |
Node[] |
getNodeIds(String name)
getNodeIds |
Outage |
getOutage(String name)
Return the specified outage. |
Outage[] |
getOutages()
Return the outages configured. |
Time[] |
getOutageTimes(String name)
Return the outage times for specified outage. |
String |
getOutageType(String name)
Return the type for specified outage. |
Lock |
getReadLock()
|
Lock |
getWriteLock()
|
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. |
void |
removeOutage(Outage outageToRemove)
removeOutage |
void |
removeOutage(String outageName)
removeOutage |
void |
replaceOutage(Outage oldOutage,
Outage newOutage)
replaceOutage |
Outages |
translateConfig(Outages outages)
translateConfig |
| Methods inherited from class org.opennms.netmgt.dao.castor.AbstractCastorConfigDao |
|---|
getConfigResource, getContainer, getDescription, getReloadCheckInterval, loadConfig, log, setConfigResource, setReloadCheckInterval |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.opennms.netmgt.config.PollOutagesConfig |
|---|
update |
| Constructor Detail |
|---|
public PollOutagesConfigManager()
| Method Detail |
|---|
public Lock getReadLock()
public Lock getWriteLock()
protected String createLoadedLogMessage(Outages config,
long diffTime)
createLoadedLogMessage
createLoadedLogMessage in class AbstractCastorConfigDao<Outages,Outages>config - a V object.diffTime - a long.
String object.
public void afterPropertiesSet()
throws org.springframework.dao.DataAccessException
afterPropertiesSet
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanafterPropertiesSet in class AbstractCastorConfigDao<Outages,Outages>org.springframework.dao.DataAccessExceptionpublic Outages translateConfig(Outages outages)
AbstractCastorConfigDaotranslateConfig
translateConfig in class AbstractCastorConfigDao<Outages,Outages>outages - a K object.
protected Outages getConfig()
getConfig
public Outage[] getOutages()
public Outage getOutage(String name)
name - the outage that is to be looked up
public String getOutageType(String name)
name - the outage that is to be looked up
public Time[] getOutageTimes(String name)
name - the outage that is to be looked up
public Interface[] getInterfaces(String name)
name - the outage that is to be looked up
public boolean isInterfaceInOutage(String linterface,
String outName)
isInterfaceInOutage in interface PollOutagesConfiglinterface - the interface to be looked upoutName - the outage name
public boolean isInterfaceInOutage(String linterface,
Outage out)
linterface - the interface to be looked upout - the outage
public boolean isTimeInOutage(Calendar cal,
String outName)
public boolean isTimeInOutage(long time,
String outName)
isTimeInOutage in interface PollOutagesConfigtime - the time in millis to look upoutName - the outage name
public boolean isTimeInOutage(Calendar cal,
Outage outage)
cal - the calendar to lookupoutage - the outage
public boolean isCurTimeInOutage(String outName)
isCurTimeInOutage in interface PollOutagesConfigoutName - the outage name
public boolean isCurTimeInOutage(Outage out)
out - the outage
public void addOutage(Outage newOutage)
addOutage
newOutage - a Outage object.public void removeOutage(String outageName)
removeOutage
outageName - a String object.public void removeOutage(Outage outageToRemove)
removeOutage
outageToRemove - a Outage object.
public void replaceOutage(Outage oldOutage,
Outage newOutage)
replaceOutage
oldOutage - a Outage object.newOutage - a Outage object.public Node[] getNodeIds(String name)
getNodeIds
name - a String object.
Node objects.
public boolean isNodeIdInOutage(long lnodeid,
String outName)
Return if nodeid is part of specified outage
isNodeIdInOutage in interface PollOutagesConfiglnodeid - the nodeid to be checkedoutName - the outage name
public Calendar getEndOfOutage(String outName)
getEndOfOutage
outName - a String object.
Calendar object.public static Calendar getEndOfOutage(Outage out)
out - a Outage object.
Calendar object.
public boolean isNodeIdInOutage(long lnodeid,
Outage out)
Return if nodeid is part of specified outage
lnodeid - the nodeid to be looked upout - a Outage object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||