|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.web.category.CategoryModel
public class CategoryModel
CategoryModel class.
| Field Summary | |
|---|---|
static String |
OVERALL_AVAILABILITY_CATEGORY
The name of the category that includes all services and nodes. |
| Method Summary | |
|---|---|
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. |
double |
getInterfaceAvailability(int nodeId,
String ipAddr)
Return the availability percentage for all managed services on the given interface for the last 24 hours. |
double |
getInterfaceAvailability(int nodeId,
String ipAddr,
Date start,
Date end)
Return the availability percentage for all managed services on the given interface from the given start time until the given end time. |
double |
getNodeAvailability(int nodeId)
Return the availability percentage for all managed services on the given node for the last 24 hours. |
double |
getNodeAvailability(int nodeId,
Date start,
Date end)
Return the availability percentage for all managed services on the given node from the given start time until the given end time. |
Map<Integer,Double> |
getNodeAvailability(Set<Integer> nodeIds)
Return the availability percentage for all managed services on the given nodes for the last 24 hours. |
Map<Integer,Double> |
getNodeAvailability(Set<Integer> nodeIds,
Date start,
Date end)
Return the availability percentage for all managed services on the given nodes from the given start time until the given end time. |
double |
getServiceAvailability(int nodeId,
String ipAddr,
int serviceId)
Return the availability percentage for a managed service for the last 24 hours. |
double |
getServiceAvailability(int nodeId,
String ipAddr,
int serviceId,
Date start,
Date end)
Return the availability percentage for a managed service from the given start time until the given end time. |
void |
updateCategory(Category rtcCategory)
Update a category with new values. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String OVERALL_AVAILABILITY_CATEGORY
| Method Detail |
|---|
public static CategoryModel getInstance()
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
CategoryModel.
CategoryModel object.
IOException - if any.
org.exolab.castor.xml.MarshalException - if any.
org.exolab.castor.xml.ValidationException - 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.
categoryName - a String object.
Category object.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)
categoryName - a String object.
String object.public void updateCategory(Category rtcCategory)
rtcCategory - a Category object.
public double getNodeAvailability(int nodeId)
throws SQLException
nodeId - a int.
SQLException - if any.
public double getNodeAvailability(int nodeId,
Date start,
Date end)
throws SQLException
nodeId - a int.start - a Date object.end - a Date object.
SQLException - if any.
public Map<Integer,Double> getNodeAvailability(Set<Integer> nodeIds)
throws SQLException
nodeIds - a Set object.
Map object.
SQLException - if any.
public Map<Integer,Double> getNodeAvailability(Set<Integer> nodeIds,
Date start,
Date end)
throws SQLException
nodeIds - a Set object.start - a Date object.end - a Date object.
Map object.
SQLException - if any.
public double getInterfaceAvailability(int nodeId,
String ipAddr)
throws SQLException
nodeId - a int.ipAddr - a String object.
SQLException - if any.
public double getInterfaceAvailability(int nodeId,
String ipAddr,
Date start,
Date end)
throws SQLException
nodeId - a int.ipAddr - a String object.start - a Date object.end - a Date object.
SQLException - if any.
public double getServiceAvailability(int nodeId,
String ipAddr,
int serviceId)
throws SQLException
nodeId - a int.ipAddr - a String object.serviceId - a int.
SQLException - if any.
public double getServiceAvailability(int nodeId,
String ipAddr,
int serviceId,
Date start,
Date end)
throws SQLException
nodeId - a int.ipAddr - a String object.serviceId - a int.start - a Date object.end - a Date object.
SQLException - if any.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||