Package org.opennms.netmgt.mock
Class MockCategoryFactory
- java.lang.Object
-
- org.opennms.netmgt.mock.MockCategoryFactory
-
- All Implemented Interfaces:
CatFactory
public class MockCategoryFactory extends java.lang.Object implements CatFactory
-
-
Constructor Summary
Constructors Constructor Description MockCategoryFactory()
MockCategoryFactory(java.lang.String config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Category
getCategory(java.lang.String name)
getCategoryCatinfo
getConfig()
Return the categories configuration.java.lang.String
getEffectiveRule(java.lang.String catlabel)
getEffectiveRuledouble
getNormal(java.lang.String catlabel)
getNormaljava.util.concurrent.locks.Lock
getReadLock()
double
getWarning(java.lang.String catlabel)
getWarningjava.util.concurrent.locks.Lock
getWriteLock()
-
-
-
Method Detail
-
getReadLock
public java.util.concurrent.locks.Lock getReadLock()
- Specified by:
getReadLock
in interfaceCatFactory
-
getWriteLock
public java.util.concurrent.locks.Lock getWriteLock()
- Specified by:
getWriteLock
in interfaceCatFactory
-
getConfig
public Catinfo getConfig()
Return the categories configuration.- Specified by:
getConfig
in interfaceCatFactory
- Returns:
- the categories configuration
-
getCategory
public Category getCategory(java.lang.String name)
Description copied from interface:CatFactory
getCategory
- Specified by:
getCategory
in interfaceCatFactory
- Parameters:
name
- aString
object.- Returns:
- a
Category
object.
-
getEffectiveRule
public java.lang.String getEffectiveRule(java.lang.String catlabel)
Description copied from interface:CatFactory
getEffectiveRule
- Specified by:
getEffectiveRule
in interfaceCatFactory
- Parameters:
catlabel
- aString
object.- Returns:
- a
String
object.
-
getNormal
public double getNormal(java.lang.String catlabel)
Description copied from interface:CatFactory
getNormal
- Specified by:
getNormal
in interfaceCatFactory
- Parameters:
catlabel
- aString
object.- Returns:
- a double.
-
getWarning
public double getWarning(java.lang.String catlabel)
Description copied from interface:CatFactory
getWarning
- Specified by:
getWarning
in interfaceCatFactory
- Parameters:
catlabel
- aString
object.- Returns:
- a double.
-
-