public abstract class ResourceTypeUtils extends Object
ResourceTypeUtils class.
Modifier and Type | Field and Description |
---|---|
static String |
FOREIGN_SOURCE_DIRECTORY
Directory name of where stored-by-foreign-source data is stored.
|
static String |
RESPONSE_DIRECTORY
Directory name of where latency data is stored.
|
static String |
SNMP_DIRECTORY
Directory name of where all other collected data is stored.
|
Constructor and Description |
---|
ResourceTypeUtils() |
Modifier and Type | Method and Description |
---|---|
static String[] |
getFsAndFidFromNodeSource(String nodeSource) |
static OnmsNode |
getNodeFromResource(OnmsResource resource)
Convenience method for retrieving the OnmsNode entity from
an abstract resource.
|
static File |
getRelativeNodeSourceDirectory(String nodeSource) |
static ResourcePath |
getResourcePathWithRepository(RrdRepository repository,
ResourcePath resource)
Retrieves the ResourcePath relative to rrd.base.dir.
|
static boolean |
isResponseTime(String relativePath)
isResponseTime
|
static boolean |
isStoreByForeignSource()
isStoreByForeignSource
|
static boolean |
isStoreByGroup()
isStoreByGroup
|
public static final String RESPONSE_DIRECTORY
public static final String SNMP_DIRECTORY
public static final String FOREIGN_SOURCE_DIRECTORY
public static boolean isStoreByGroup()
isStoreByGroup
public static boolean isStoreByForeignSource()
isStoreByForeignSource
public static boolean isResponseTime(String relativePath)
isResponseTime
relativePath
- a String
object.public static OnmsNode getNodeFromResource(OnmsResource resource)
org.springframework.orm.ObjectRetrievalFailureException
- on failurepublic static ResourcePath getResourcePathWithRepository(RrdRepository repository, ResourcePath resource)
Copyright © 2017. All rights reserved.