public class CategoryModel extends Object
CategoryModel class.
Modifier and Type | Field and Description |
---|---|
static String |
OVERALL_AVAILABILITY_CATEGORY
The name of the category that includes all services and nodes.
|
Modifier and Type | Method and Description |
---|---|
Category |
getCategory(String categoryName)
Return the
Category instance for the given category name. |
String |
getCategoryComment(String categoryName)
Look up the category definition and return the category's description.
|
Map<String,Category> |
getCategoryMap()
Return a mapping of category names to instances.
|
double |
getCategoryNormalThreshold(String categoryName)
Look up the category definition and return the category's normal
threshold.
|
double |
getCategoryWarningThreshold(String categoryName)
Look up the category definition and return the category's warning
threshold.
|
static CategoryModel |
getInstance()
Return the
CategoryModel . |
static double |
getInterfaceAvailability(int nodeId,
String ipAddr)
Return the availability percentage for all managed services on the given
interface for the last 24 hours.
|
static double |
getNodeAvailability(int nodeId)
Return the availability percentage for all managed services on the given
node for the last 24 hours.
|
static double |
getServiceAvailability(int nodeId,
String ipAddr,
int serviceId)
Return the availability percentage for a managed service for the last 24
hours.
|
void |
updateCategory(Category rtcCategory)
Update a category with new values.
|
public static final String OVERALL_AVAILABILITY_CATEGORY
public static CategoryModel getInstance() throws IOException
CategoryModel
.CategoryModel
object.IOException
- if any.public Category getCategory(String categoryName)
Category
instance for the given category name.
Return null if there is no match for the given name.public Map<String,Category> getCategoryMap()
Map
object.public double getCategoryNormalThreshold(String categoryName)
categoryName
- a String
object.public double getCategoryWarningThreshold(String categoryName)
categoryName
- a String
object.public String getCategoryComment(String categoryName)
public void updateCategory(Category rtcCategory)
rtcCategory
- a Category
object.public static double getNodeAvailability(int nodeId) throws SQLException
nodeId
- a int.SQLException
- if any.public static double getInterfaceAvailability(int nodeId, String ipAddr) throws SQLException
nodeId
- a int.ipAddr
- a String
object.SQLException
- if any.public static double getServiceAvailability(int nodeId, String ipAddr, int serviceId) throws SQLException
nodeId
- a int.ipAddr
- a String
object.serviceId
- a int.SQLException
- if any.Copyright © 2018. All rights reserved.