public class Category extends Object
The category definition is read from the categories.xml file by the
CategoryFactory
. The RTC
category updates are periodically sent from the RTC to the WebUI.
Modifier and Type | Field and Description |
---|---|
protected Category |
m_categoryDef
Deprecated.
The category definition (from the categories.xml file).
|
protected Date |
m_lastUpdated
Deprecated.
The last time this category was updated.
|
protected Category |
m_rtcCategory
Deprecated.
An update from the RTC about the service level availability for this
category.
|
protected Long |
m_serviceCount
Deprecated.
A cached value of the total number of services on nodes belonging to this
category.
|
protected Long |
m_serviceDownCount
Deprecated.
A cached value of the total number of services on nodes belonging to this
category that are currently down.
|
protected Double |
m_servicePercentage
Deprecated.
A cached value of the ratio of services that are up on notes belonging to
this category to all nodes belonging in this category.
|
Modifier | Constructor and Description |
---|---|
protected |
Category()
Deprecated.
|
protected |
Category(Category categoryDef,
Category rtcCategory,
Date lastUpdated)
Deprecated.
Create a new instance to wrapper information from the categories.xml file
(that defines a category) and information from the RTC (that gives
current service level availability).
|
protected |
Category(String categoryName)
Deprecated.
Create an empty category with nothing other than a name.
|
Modifier and Type | Method and Description |
---|---|
Enumeration<Node> |
enumerateNode()
Deprecated.
Returns an enumeration of the Castor-generated Node objects tied to this
category.
|
String |
getAvailClass()
Deprecated.
Returns the availability CSS class for this category.
|
String |
getAvailColor()
Deprecated.
Returns the availability background color for this category.
|
String |
getAvailText()
Deprecated.
Returns the availability text for this category ("XXX.XX%").
|
String |
getComment()
Deprecated.
Return a description explaining this category.
|
Date |
getLastUpdated()
Deprecated.
Return the date and time this category was last updated by the RTC.
|
String |
getName()
Deprecated.
Return the unique name for this category.
|
AvailabilityNode |
getNode(Long nodeId)
Deprecated.
|
List<Long> |
getNodeIds()
Deprecated.
|
NodeList |
getNodes()
Deprecated.
|
double |
getNormalThreshold()
Deprecated.
Return the value considered to be the minimum "normal" value.
|
String |
getOutageClass()
Deprecated.
Returns the outage CSS class for this category.
|
String |
getOutageColor()
Deprecated.
Returns the outage background color for this category.
|
String |
getOutageText()
Deprecated.
Returns the outage text for this category ("X of Y" nodes down).
|
protected static long[] |
getServiceCounts(Category category)
Deprecated.
Convenience method to count the number of services under a category and
the number of those services that are currently down.
|
long |
getServiceDownCount()
Deprecated.
Return the number of services that are currently down with this category.
|
double |
getServicePercentage()
Deprecated.
Return a percentage of the ratio of services that are up to all services
in this category.
|
String |
getTitle()
Deprecated.
Returns the category comment if there is one, otherwise, its name.
|
double |
getValue()
Deprecated.
Return the current service level availability for this category.
|
double |
getWarningThreshold()
Deprecated.
Return the value considered to be the minimum value below the "normal"
value where only a warning is necessary.
|
protected final Category m_categoryDef
protected final Category m_rtcCategory
protected final Date m_lastUpdated
protected Long m_serviceCount
protected Long m_serviceDownCount
protected Double m_servicePercentage
protected Category()
protected Category(String categoryName)
categoryName
- a String
object.public String getName()
String
object.public double getNormalThreshold()
public double getWarningThreshold()
public String getComment()
String
object.public Date getLastUpdated()
Date
object.public double getValue()
public long getServiceDownCount()
public double getServicePercentage()
public String getOutageColor() throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
String
object.IOException
- if any.org.exolab.castor.xml.MarshalException
- if any.org.exolab.castor.xml.ValidationException
- if any.public String getAvailColor() throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
String
object.IOException
- if any.org.exolab.castor.xml.MarshalException
- if any.org.exolab.castor.xml.ValidationException
- if any.public String getOutageClass() throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
String
object.IOException
- if any.org.exolab.castor.xml.MarshalException
- if any.org.exolab.castor.xml.ValidationException
- if any.public String getAvailClass() throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
String
object.IOException
- if any.org.exolab.castor.xml.MarshalException
- if any.org.exolab.castor.xml.ValidationException
- if any.public String getOutageText()
String
object.public String getAvailText()
String
object.public String getTitle()
String
object.public Enumeration<Node> enumerateNode()
Note, LJK Dec 5,2001: I'm not really happy about exposing the Castor objects this way. We do it all over the place, but I've already started hiding them in this particular case (the rtceui.xsd objects). I'm not very pleased with this half approach. I'd rather hide them completely or not at all, but I don't want to introduce a new pass-through object.
Enumeration
object.public NodeList getNodes()
public AvailabilityNode getNode(Long nodeId)
Copyright © 2016. All rights reserved.