org.opennms.netmgt.config
Interface PollOutagesConfig

All Known Implementing Classes:
PollOutagesConfigFactory, PollOutagesConfigManager

public interface PollOutagesConfig

Author:
brozow TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Method Summary
 boolean isCurTimeInOutage(String outName)
          Return if current time is part of specified outage.
 boolean isInterfaceInOutage(String linterface, String outName)
          Return if interfaces 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(long time, String outName)
          Return if time is part of specified outage.
 void update()
           
 

Method Detail

isNodeIdInOutage

boolean isNodeIdInOutage(long lnodeid,
                         String outName)
Return if the node represented by the nodeid is part of specified outage.

Parameters:
lnodeid - the nodeid to be checked
outName - the outage name
Returns:
the node is part of the specified outage

isInterfaceInOutage

boolean isInterfaceInOutage(String linterface,
                            String outName)
Return if interfaces is part of specified outage.

Parameters:
linterface - the interface to be looked up
outName - the outage name
Returns:
the interface is part of the specified outage

isCurTimeInOutage

boolean isCurTimeInOutage(String outName)
Return if current time is part of specified outage.

Parameters:
outName - the outage name
Returns:
true if current time is in outage

isTimeInOutage

boolean isTimeInOutage(long time,
                       String outName)
Return if time is part of specified outage.

Parameters:
time - the time in millis to look up
outName - the outage name
Returns:
true if time is in outage

update

void update()
            throws Exception
Throws:
Exception


Copyright © 2009. All Rights Reserved.