org.opennms.web.svclayer.outage
Class DefaultOutageService
java.lang.Object
org.opennms.web.svclayer.outage.DefaultOutageService
- All Implemented Interfaces:
- OutageService
public class DefaultOutageService
- extends Object
- implements OutageService
- Author:
- Johan Edstrom, Mathew Brozowski, DJ Gregor
|
Method Summary |
Integer |
getCurrentOutageCount()
|
Collection<OnmsOutage> |
getCurrentOutages()
|
Collection<OnmsOutage> |
getCurrentOutages(String ordering)
|
Collection<OnmsOutage> |
getCurrentOutagesForNode(int nodeId)
|
Collection<OnmsOutage> |
getCurrentOutagesOrdered(String orderBy)
|
OutageDao |
getDao()
|
Collection<OnmsOutage> |
getNonCurrentOutagesForNode(int nodeId)
|
Collection<OnmsOutage> |
getOpenAndResolved()
|
Collection<OnmsOutage> |
getOpenAndResolved(Integer Offset,
Integer Limit)
|
Integer |
getOutageCount()
|
Integer |
getOutageCount(OnmsCriteria criteria)
|
Collection<OnmsOutage> |
getOutagesByRange(Integer offset,
Integer limit,
String orderProperty,
String direction)
|
Collection<OnmsOutage> |
getOutagesByRange(Integer offset,
Integer limit,
String orderProperty,
String direction,
OnmsCriteria criteria)
|
Collection<OnmsOutage> |
getOutagesByRange(Integer offset,
Integer limit,
String orderProperty,
String direction,
String filter)
|
Collection<OnmsOutage> |
getOutagesForInterface(int nodeId,
String ipInterface)
|
Collection<OnmsOutage> |
getOutagesForInterface(int nodeId,
String ipAddr,
Date time)
|
Collection<OnmsOutage> |
getOutagesForNode(int nodeId)
|
Collection<OnmsOutage> |
getOutagesForNode(int nodeId,
Date time)
|
Collection<OnmsOutage> |
getOutagesForService(int nodeId,
String ipInterface,
int serviceId)
|
Collection<OnmsOutage> |
getOutagesForService(int nodeId,
String ipAddr,
int serviceId,
Date time)
|
Collection<OnmsOutage> |
getResolvedOutagesByRange(Integer offset,
Integer limit,
String orderProperty,
String direction,
String filter)
|
Integer |
getSuppressedOutageCount()
|
Collection<OnmsOutage> |
getSuppressedOutages()
|
Collection<OnmsOutage> |
getSuppressedOutagesByRange(Integer Offset,
Integer Limit)
|
Collection<OnmsOutage> |
getSuppressedOutagesByRange(Integer offset,
Integer limit,
String orderProperty,
String direction)
|
OnmsOutage |
load(Integer outageid)
|
Integer |
outageCountFiltered(String filter)
|
Integer |
outageResolvedCountFiltered(String searchFilter)
|
void |
setDao(OutageDao dao)
|
void |
update(OnmsOutage outage)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultOutageService
public DefaultOutageService()
DefaultOutageService
public DefaultOutageService(OutageDao dao)
getDao
public OutageDao getDao()
setDao
public void setDao(OutageDao dao)
getCurrentOutageCount
public Integer getCurrentOutageCount()
- Specified by:
getCurrentOutageCount in interface OutageService
getOutageCount
public Integer getOutageCount(OnmsCriteria criteria)
- Specified by:
getOutageCount in interface OutageService
getCurrentOutages
public Collection<OnmsOutage> getCurrentOutages()
- Specified by:
getCurrentOutages in interface OutageService
getCurrentOutagesOrdered
public Collection<OnmsOutage> getCurrentOutagesOrdered(String orderBy)
getCurrentOutagesForNode
public Collection<OnmsOutage> getCurrentOutagesForNode(int nodeId)
- Specified by:
getCurrentOutagesForNode in interface OutageService
getNonCurrentOutagesForNode
public Collection<OnmsOutage> getNonCurrentOutagesForNode(int nodeId)
- Specified by:
getNonCurrentOutagesForNode in interface OutageService
getOutagesForInterface
public Collection<OnmsOutage> getOutagesForInterface(int nodeId,
String ipInterface)
- Specified by:
getOutagesForInterface in interface OutageService
getOutagesForInterface
public Collection<OnmsOutage> getOutagesForInterface(int nodeId,
String ipAddr,
Date time)
- Specified by:
getOutagesForInterface in interface OutageService
getOutagesForNode
public Collection<OnmsOutage> getOutagesForNode(int nodeId)
- Specified by:
getOutagesForNode in interface OutageService
getOutagesForNode
public Collection<OnmsOutage> getOutagesForNode(int nodeId,
Date time)
- Specified by:
getOutagesForNode in interface OutageService
getOutagesForService
public Collection<OnmsOutage> getOutagesForService(int nodeId,
String ipInterface,
int serviceId)
- Specified by:
getOutagesForService in interface OutageService
getOutagesForService
public Collection<OnmsOutage> getOutagesForService(int nodeId,
String ipAddr,
int serviceId,
Date time)
- Specified by:
getOutagesForService in interface OutageService
getSuppressedOutageCount
public Integer getSuppressedOutageCount()
- Specified by:
getSuppressedOutageCount in interface OutageService
getSuppressedOutages
public Collection<OnmsOutage> getSuppressedOutages()
- Specified by:
getSuppressedOutages in interface OutageService
getOpenAndResolved
public Collection<OnmsOutage> getOpenAndResolved()
getOutagesByRange
public Collection<OnmsOutage> getOutagesByRange(Integer offset,
Integer limit,
String orderProperty,
String direction,
OnmsCriteria criteria)
- Specified by:
getOutagesByRange in interface OutageService
getSuppressedOutagesByRange
public Collection<OnmsOutage> getSuppressedOutagesByRange(Integer Offset,
Integer Limit)
getOpenAndResolved
public Collection<OnmsOutage> getOpenAndResolved(Integer Offset,
Integer Limit)
getCurrentOutages
public Collection<OnmsOutage> getCurrentOutages(String ordering)
- Specified by:
getCurrentOutages in interface OutageService
load
public OnmsOutage load(Integer outageid)
- Specified by:
load in interface OutageService
update
public void update(OnmsOutage outage)
- Specified by:
update in interface OutageService
getOutagesByRange
public Collection<OnmsOutage> getOutagesByRange(Integer offset,
Integer limit,
String orderProperty,
String direction)
getOutagesByRange
public Collection<OnmsOutage> getOutagesByRange(Integer offset,
Integer limit,
String orderProperty,
String direction,
String filter)
- Specified by:
getOutagesByRange in interface OutageService
getOutageCount
public Integer getOutageCount()
- Specified by:
getOutageCount in interface OutageService
outageCountFiltered
public Integer outageCountFiltered(String filter)
- Specified by:
outageCountFiltered in interface OutageService
getSuppressedOutagesByRange
public Collection<OnmsOutage> getSuppressedOutagesByRange(Integer offset,
Integer limit,
String orderProperty,
String direction)
- Specified by:
getSuppressedOutagesByRange in interface OutageService
getResolvedOutagesByRange
public Collection<OnmsOutage> getResolvedOutagesByRange(Integer offset,
Integer limit,
String orderProperty,
String direction,
String filter)
- Specified by:
getResolvedOutagesByRange in interface OutageService
outageResolvedCountFiltered
public Integer outageResolvedCountFiltered(String searchFilter)
- Specified by:
outageResolvedCountFiltered in interface OutageService
Copyright © 2009. All Rights Reserved.