public class DefaultOutageService extends Object implements OutageService
DefaultOutageService class.
Constructor and Description |
---|
DefaultOutageService()
Constructor for DefaultOutageService.
|
DefaultOutageService(OutageDao dao)
Constructor for DefaultOutageService.
|
public DefaultOutageService()
Constructor for DefaultOutageService.
public Integer getCurrentOutageCount()
getCurrentOutageCount
getCurrentOutageCount
in interface OutageService
Integer
object.public Integer getOutageCount(OnmsCriteria criteria)
getOutageCount
getOutageCount
in interface OutageService
criteria
- a OnmsCriteria
object.Integer
object.public Collection<OnmsOutage> getCurrentOutages()
getCurrentOutages
getCurrentOutages
in interface OutageService
Collection
object.public Collection<OnmsOutage> getCurrentOutagesOrdered(String orderBy)
getCurrentOutagesOrdered
orderBy
- a String
object.Collection
object.public Collection<OnmsOutage> getCurrentOutagesForNode(int nodeId)
getCurrentOutagesForNode
getCurrentOutagesForNode
in interface OutageService
nodeId
- a int.Collection
object.public Collection<OnmsOutage> getNonCurrentOutagesForNode(int nodeId)
getNonCurrentOutagesForNode
getNonCurrentOutagesForNode
in interface OutageService
nodeId
- a int.Collection
object.public Collection<OnmsOutage> getOutagesForInterface(int nodeId, String ipInterface)
getOutagesForInterface
getOutagesForInterface
in interface OutageService
nodeId
- a int.ipInterface
- a String
object.Collection
object.public Collection<OnmsOutage> getOutagesForInterface(int nodeId, String ipAddr, Date time)
getOutagesForInterface
getOutagesForInterface
in interface OutageService
nodeId
- a int.ipAddr
- a String
object.time
- a java$util$Date object.Collection
object.public Collection<OnmsOutage> getOutagesForNode(int nodeId)
getOutagesForNode
getOutagesForNode
in interface OutageService
nodeId
- a int.Collection
object.public Collection<OnmsOutage> getOutagesForNode(int nodeId, Date time)
getOutagesForNode
getOutagesForNode
in interface OutageService
nodeId
- a int.time
- a java$util$Date object.Collection
object.public Collection<OnmsOutage> getOutagesForService(int nodeId, String ipInterface, int serviceId)
getOutagesForService
getOutagesForService
in interface OutageService
nodeId
- a int.ipInterface
- a String
object.serviceId
- a int.Collection
object.public Collection<OnmsOutage> getOutagesForService(int nodeId, String ipAddr, int serviceId, Date time)
getOutagesForService
getOutagesForService
in interface OutageService
nodeId
- a int.ipAddr
- a String
object.serviceId
- a int.time
- a java$util$Date object.Collection
object.public Integer getSuppressedOutageCount()
getSuppressedOutageCount
getSuppressedOutageCount
in interface OutageService
Integer
object.public Collection<OnmsOutage> getSuppressedOutages()
getSuppressedOutages
getSuppressedOutages
in interface OutageService
Collection
object.public Collection<OnmsOutage> getOpenAndResolved()
getOpenAndResolved
Collection
object.public Collection<OnmsOutage> getOutagesByRange(Integer offset, Integer limit, String orderProperty, String direction, OnmsCriteria criteria)
getOutagesByRange
getOutagesByRange
in interface OutageService
offset
- a Integer
object.limit
- a Integer
object.orderProperty
- a String
object.direction
- a String
object.criteria
- a OnmsCriteria
object.Collection
object.public Collection<OnmsOutage> getSuppressedOutagesByRange(Integer Offset, Integer Limit)
getSuppressedOutagesByRange
Offset
- a Integer
object.Limit
- a Integer
object.Collection
object.public Collection<OnmsOutage> getOpenAndResolved(Integer Offset, Integer Limit)
getOpenAndResolved
Offset
- a Integer
object.Limit
- a Integer
object.Collection
object.public Collection<OnmsOutage> getCurrentOutages(String ordering)
getCurrentOutages
getCurrentOutages
in interface OutageService
ordering
- a String
object.Collection
object.public OnmsOutage load(Integer outageid)
load
load
in interface OutageService
outageid
- a Integer
object.OnmsOutage
object.public void update(OnmsOutage outage)
update
update
in interface OutageService
outage
- a OnmsOutage
object.public Collection<OnmsOutage> getOutagesByRange(Integer offset, Integer limit, String orderProperty, String direction)
getOutagesByRange
offset
- a Integer
object.limit
- a Integer
object.orderProperty
- a String
object.direction
- a String
object.Collection
object.public Collection<OnmsOutage> getOutagesByRange(Integer offset, Integer limit, String orderProperty, String direction, String filter)
getOutagesByRange
getOutagesByRange
in interface OutageService
offset
- a Integer
object.limit
- a Integer
object.orderProperty
- a String
object.direction
- a String
object.filter
- a String
object.Collection
object.public Integer getOutageCount()
getOutageCount
getOutageCount
in interface OutageService
Integer
object.public Integer outageCountFiltered(String filter)
outageCountFiltered
outageCountFiltered
in interface OutageService
filter
- a String
object.Integer
object.public Collection<OnmsOutage> getSuppressedOutagesByRange(Integer offset, Integer limit, String orderProperty, String direction)
getSuppressedOutagesByRange
getSuppressedOutagesByRange
in interface OutageService
offset
- a Integer
object.limit
- a Integer
object.orderProperty
- a String
object.direction
- a String
object.Collection
object.public Collection<OnmsOutage> getResolvedOutagesByRange(Integer offset, Integer limit, String orderProperty, String direction, String filter)
getResolvedOutagesByRange
getResolvedOutagesByRange
in interface OutageService
offset
- a Integer
object.limit
- a Integer
object.orderProperty
- a String
object.direction
- a String
object.filter
- a String
object.Collection
object.public Integer outageResolvedCountFiltered(String searchFilter)
outageResolvedCountFiltered
outageResolvedCountFiltered
in interface OutageService
searchFilter
- a String
object.Integer
object.Copyright © 2016. All rights reserved.