|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hyperic.hq.measurement.server.session.SessionEJB
org.hyperic.hq.measurement.server.session.AvailabilityManagerEJBImpl
public class AvailabilityManagerEJBImpl
The AvailabityManagerEJBImpl class is a stateless session bean that can be used to retrieve Availability Data RLE points
Field Summary |
---|
Fields inherited from class org.hyperic.hq.measurement.server.session.SessionEJB |
---|
_mpm, DATASOURCE_NAME |
Constructor Summary | |
---|---|
AvailabilityManagerEJBImpl()
|
Method Summary | |
---|---|
void |
addData(java.lang.Integer mid,
MetricValue mval)
Add a single Availablility Data point. |
void |
addData(java.util.List availPoints)
Process Availability data. |
void |
addData(java.util.List availPoints,
boolean sendData)
Process Availability data. |
void |
ejbActivate()
|
void |
ejbCreate()
|
void |
ejbPassivate()
|
void |
ejbPostCreate()
|
void |
ejbRemove()
|
java.util.Map |
getAggregateData(java.lang.Integer[] tids,
java.lang.Integer[] iids,
long begin,
long end)
|
java.util.Map |
getAggregateData(java.lang.Integer[] mids,
long begin,
long end)
|
java.util.Map |
getAggregateDataByTemplate(java.lang.Integer[] mids,
long begin,
long end)
|
java.util.List |
getAllAvailIds()
|
Measurement |
getAvailMeasurement(Resource resource)
|
java.util.Map |
getAvailMeasurementChildren(java.util.List resourceIds,
java.lang.String resourceRelationType)
|
java.util.List |
getAvailMeasurementChildren(Resource resource,
java.lang.String resourceRelationType)
|
java.util.Map |
getAvailMeasurementParent(java.util.List resourceIds,
java.lang.String resourceRelationType)
|
java.util.List |
getAvailMeasurementParent(Resource resource,
java.lang.String resourceRelationType)
|
long |
getDowntime(Resource resource,
long begin,
long end)
|
PageList |
getHistoricalAvailData(java.lang.Integer[] mids,
long begin,
long end,
long interval,
PageControl pc,
boolean prependUnknowns)
Fetches historical availability encapsulating the specified time range for each measurement id in mids; |
PageList |
getHistoricalAvailData(Measurement m,
long begin,
long end,
PageControl pc,
boolean prependUnknowns)
TODO: Can this method be combined with the one that takes an array? |
java.util.List |
getHistoricalAvailData(Resource res,
long begin,
long end)
Get the list of Raw RLE objects for a resource |
java.util.Map |
getLastAvail(java.util.Collection resources,
java.util.Map measCache)
|
java.util.Map |
getLastAvail(java.lang.Integer[] mids)
Only unique measurement ids should be passed in. |
MetricValue |
getLastAvail(Measurement m)
|
static org.hyperic.hq.measurement.shared.AvailabilityManagerLocal |
getOne()
|
java.util.List |
getPlatformResources()
|
java.util.List |
getUnavailEntities(java.util.List includes)
|
void |
sendDataToEventHandlers(java.util.Map data)
This method should only be called by the AvailabilityCheckService and is used to filter availability data points based on hierarchical alerting rules. |
void |
setSessionContext(javax.ejb.SessionContext ctx)
|
Methods inherited from class org.hyperic.hq.measurement.server.session.SessionEJB |
---|
checkDeletePermission, checkModifyPermission, checkTimeArguments, deleteMetricProblems, getAgent, getAgent, getAgentMan, getAuthzSubjectManager, getAvailabilityDataDAO, getBaselineDAO, getCategoryDAO, getDataMan, getInitialContext, getMeasurementDAO, getMeasurementTemplateDAO, getMetricProblemDAO, getMonitorableTypeDAO, getMPM, getProductMan, getResource, getScheduleRevNumDAO, getSRNManager, getTemplateMan |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AvailabilityManagerEJBImpl()
Method Detail |
---|
public Measurement getAvailMeasurement(Resource resource)
public java.util.List getPlatformResources()
public long getDowntime(Resource resource, long begin, long end) throws MeasurementNotFoundException
MeasurementNotFoundException
public java.util.List getAllAvailIds()
public java.util.List getAvailMeasurementChildren(Resource resource, java.lang.String resourceRelationType)
public java.util.Map getAvailMeasurementChildren(java.util.List resourceIds, java.lang.String resourceRelationType)
{@link
- List} of Integer
resource ids
Map
of Integer
to List
of
Measurement
public java.util.List getAvailMeasurementParent(Resource resource, java.lang.String resourceRelationType)
public java.util.Map getAvailMeasurementParent(java.util.List resourceIds, java.lang.String resourceRelationType)
public PageList getHistoricalAvailData(Measurement m, long begin, long end, PageControl pc, boolean prependUnknowns)
public PageList getHistoricalAvailData(java.lang.Integer[] mids, long begin, long end, long interval, PageControl pc, boolean prependUnknowns)
mids
- measurement idsbegin
- time range startend
- time range endinterval
- interval of each time range windowpc
- page controlprependUnknowns
- determines whether to prepend AVAIL_UNKNOWN if the
corresponding time window is not accounted for in the database. Since
availability is contiguous this will not occur unless the time range
precedes the first availability point.MeasurementConstants.AVAIL_UNKNOWN
public java.util.List getHistoricalAvailData(Resource res, long begin, long end)
public java.util.Map getAggregateData(java.lang.Integer[] mids, long begin, long end)
Map
of Measurement
to double[]
.
Array is comprised of 5 elements:
[IND_MIN]
[IND_AVG]
[IND_MAX]
[IND_CFG_COUNT]
[IND_LAST_TIME]public java.util.Map getAggregateDataByTemplate(java.lang.Integer[] mids, long begin, long end)
Map
of MeasurementTemplate.getId
to
double[]
.
Array is comprised of 5 elements:
[IND_MIN]
[IND_AVG]
[IND_MAX]
[IND_CFG_COUNT]
[IND_LAST_TIME]public java.util.Map getAggregateData(java.lang.Integer[] tids, java.lang.Integer[] iids, long begin, long end)
Map
of MeasurementTemplate.getId
to
double[]
.
Array is comprised of 5 elements:
[IND_MIN]
[IND_AVG]
[IND_MAX]
[IND_CFG_COUNT]
[IND_LAST_TIME]public java.util.Map getLastAvail(java.util.Collection resources, java.util.Map measCache)
resources
- Collection may be of type Resource
,
AppdefEntityId
, AppdefEntityValue
,
AppdefResourceValue
or Integer
measCache
- Mappublic MetricValue getLastAvail(Measurement m)
public java.util.Map getLastAvail(java.lang.Integer[] mids)
Map
of Integer
to MetricValue
Integer is the measurementIdpublic java.util.List getUnavailEntities(java.util.List includes)
includes
- Listpublic void addData(java.lang.Integer mid, MetricValue mval)
public void addData(java.util.List availPoints)
availPoints
- List of DataPointspublic void addData(java.util.List availPoints, boolean sendData)
availPoints
- List of DataPointssendData
- Indicates whether to send the data to event handlers.
The default behavior is true. If false, the calling method
should call sendDataToEventHandlers directly afterwards.public void sendDataToEventHandlers(java.util.Map data)
public static org.hyperic.hq.measurement.shared.AvailabilityManagerLocal getOne()
public void ejbCreate()
public void ejbPostCreate()
public void ejbActivate()
ejbActivate
in interface javax.ejb.SessionBean
public void ejbPassivate()
ejbPassivate
in interface javax.ejb.SessionBean
public void ejbRemove()
ejbRemove
in interface javax.ejb.SessionBean
public void setSessionContext(javax.ejb.SessionContext ctx)
setSessionContext
in interface javax.ejb.SessionBean
|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |