|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.PollOutagesConfigManager
public abstract class PollOutagesConfigManager
Represents a PollOutagesConfigManager
| Constructor Summary | |
|---|---|
PollOutagesConfigManager()
|
|
| Method Summary | |
|---|---|
void |
addOutage(Outage newOutage)
|
protected Outages |
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)
|
Interface[] |
getInterfaces(String name)
Return the interfaces for specified outage. |
Node[] |
getNodeIds(String name)
|
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. |
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 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)
|
void |
removeOutage(String outageName)
|
void |
replaceOutage(Outage oldOutage,
Outage newOutage)
|
void |
saveCurrent()
Saves the current in-memory configuration to disk and reloads |
protected abstract void |
saveXML(String xmlString)
|
protected void |
setConfig(Outages config)
|
abstract void |
update()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PollOutagesConfigManager()
| Method Detail |
|---|
protected void setConfig(Outages config)
config - The config to set.protected Outages 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)
cal - the calendar to lookupoutName - the outage name
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)
public void removeOutage(String outageName)
public void removeOutage(Outage outageToRemove)
public void replaceOutage(Outage oldOutage,
Outage newOutage)
public Node[] getNodeIds(String name)
public boolean isNodeIdInOutage(long lnodeid,
String outName)
Return if nodeid is part of specified outage
isNodeIdInOutage in interface PollOutagesConfiglnodeid - the nodeid to be looked upoutName - the outage name
public Calendar getEndOfOutage(String outName)
public static Calendar getEndOfOutage(Outage out)
public boolean isNodeIdInOutage(long lnodeid,
Outage out)
Return if nodeid is part of specified outage
lnodeid - the nodeid to be looked upoutName - the outage
public void saveCurrent()
throws org.exolab.castor.xml.MarshalException,
IOException,
org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.MarshalException
IOException
org.exolab.castor.xml.ValidationException
protected abstract void saveXML(String xmlString)
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
public abstract void update()
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
update in interface PollOutagesConfigIOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||