public class MockResourceDao extends Object implements ResourceDao
Constructor and Description |
---|
MockResourceDao() |
Modifier and Type | Method and Description |
---|---|
List<OnmsResource> |
findDomainResources()
findDomainResources
|
List<OnmsResource> |
findTopLevelResources()
findTopLevelResources
|
OnmsResource |
getResourceById(String id)
getResourceById
|
OnmsResource |
getResourceForIpInterface(OnmsIpInterface ipInterface)
getResourceForIpInterface
|
OnmsResource |
getResourceForIpInterface(OnmsIpInterface ipInterface,
OnmsLocationMonitor locationMonitor)
getResourceForIpInterface
|
OnmsResource |
getResourceForNode(OnmsNode node)
getResourceForNode
|
List<OnmsResource> |
getResourceListById(String id)
getResourceListById
|
Collection<OnmsResourceType> |
getResourceTypes()
getResourceTypes
|
File |
getRrdDirectory()
getRrdDirectory
|
File |
getRrdDirectory(boolean verify)
getRrdDirectory
|
public File getRrdDirectory()
ResourceDao
getRrdDirectory
getRrdDirectory
in interface ResourceDao
File
object.public File getRrdDirectory(boolean verify)
ResourceDao
getRrdDirectory
getRrdDirectory
in interface ResourceDao
verify
- a boolean.File
object.public Collection<OnmsResourceType> getResourceTypes()
ResourceDao
getResourceTypes
getResourceTypes
in interface ResourceDao
Collection
object.public OnmsResource getResourceById(String id)
ResourceDao
getResourceById
getResourceById
in interface ResourceDao
id
- a String
object.OnmsResource
object.public List<OnmsResource> getResourceListById(String id)
ResourceDao
getResourceListById
Fetch a specific list of resources by string ID.getResourceListById
in interface ResourceDao
id
- a String
object.public List<OnmsResource> findDomainResources()
ResourceDao
findDomainResources
findDomainResources
in interface ResourceDao
List
object.public List<OnmsResource> findTopLevelResources()
ResourceDao
findTopLevelResources
findTopLevelResources
in interface ResourceDao
List
object.public OnmsResource getResourceForNode(OnmsNode node)
ResourceDao
getResourceForNode
getResourceForNode
in interface ResourceDao
node
- a OnmsNode
object.OnmsResource
object.public OnmsResource getResourceForIpInterface(OnmsIpInterface ipInterface)
ResourceDao
getResourceForIpInterface
getResourceForIpInterface
in interface ResourceDao
ipInterface
- a OnmsIpInterface
object.OnmsResource
object.public OnmsResource getResourceForIpInterface(OnmsIpInterface ipInterface, OnmsLocationMonitor locationMonitor)
ResourceDao
getResourceForIpInterface
getResourceForIpInterface
in interface ResourceDao
ipInterface
- a OnmsIpInterface
object.locationMonitor
- a OnmsLocationMonitor
object.OnmsResource
object.Copyright © 2015. All rights reserved.