|
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.bizapp.server.session.BizappSessionEJB
org.hyperic.hq.bizapp.server.session.MetricSessionEJB
org.hyperic.hq.bizapp.server.session.MeasurementBossEJBImpl
public class MeasurementBossEJBImpl
BizApp interface to the Measurement subsystem
Field Summary | |
---|---|
protected static org.apache.commons.logging.Log |
_log
|
Fields inherited from class org.hyperic.hq.bizapp.server.session.MetricSessionEJB |
---|
manager |
Fields inherited from class org.hyperic.hq.bizapp.server.session.BizappSessionEJB |
---|
ctx |
Constructor Summary | |
---|---|
MeasurementBossEJBImpl()
|
Method Summary | |
---|---|
void |
disableAGMeasurements(int sessionId,
AppdefEntityID parentId,
AppdefEntityTypeID childType,
java.lang.Integer[] tids)
Disable all measurements for a resource |
void |
disableMeasurements(int sessionId,
AppdefEntityID id)
Disable all measurements for an instance |
void |
disableMeasurements(int sessionId,
AppdefEntityID id,
java.lang.Integer[] tids)
Disable all measurements for a resource |
void |
ejbActivate()
|
void |
ejbCreate()
|
void |
ejbPassivate()
|
void |
ejbRemove()
|
PageList |
findAGMeasurementData(int sessionId,
AppdefEntityID[] aids,
MeasurementTemplate tmpl,
AppdefEntityTypeID ctype,
long begin,
long end,
long interval,
boolean returnNulls,
PageControl pc)
Dumps data for a specific measurement template for an auto-group based on an interval. |
PageList |
findAGMeasurementData(java.lang.String user,
AppdefEntityID[] aids,
MeasurementTemplate tmpl,
AppdefEntityTypeID ctype,
long begin,
long end,
long interval,
boolean returnNulls,
PageControl pc)
Dumps data for a specific measurement template for an auto-group based on an interval. |
java.util.Map |
findAGMetricsByType(int sessionId,
AppdefEntityID[] entIds,
AppdefEntityTypeID typeId,
long filters,
java.lang.String keyword,
long begin,
long end,
boolean showAll)
Return a Metric summary bean for each of the services of a specific type |
java.util.Map |
findAGPlatformMetricsByType(int sessionId,
AppdefEntityTypeID platTypeId,
long begin,
long end,
boolean showAll)
Return a MetricSummary bean for each of the servers of a specific type. |
java.util.List |
findAGPlatformsCurrentHealthByType(int sessionId,
java.lang.Integer platTypeId)
Method findAGPlatformsCurrentHealthByType For autogroup of platforms. |
java.util.List |
findAGServersCurrentHealthByType(int sessionId,
AppdefEntityID[] entIds,
java.lang.Integer serverTypeId)
Method findServersCurrentHealth For platform's autogroup of servers. |
java.util.List |
findAGServicesCurrentHealthByType(int sessionId,
AppdefEntityID[] entIds,
java.lang.Integer serviceTypeId)
Return a ResourceDisplaySummary bean for each of the resource's services. |
java.util.List |
findAllMetrics(int sessionId,
AppdefEntityID aeid,
AppdefEntityID[] hosts,
AppdefEntityTypeID[] children,
AppdefEntityID[] members,
long begin,
long end)
Returns a list of problem metrics for a resource, and the selected children and hosts of that resource. |
java.util.List |
findAllMetrics(int sessionId,
AppdefEntityID aeid,
AppdefEntityID[] hosts,
AppdefEntityTypeID[] children,
long begin,
long end)
Returns a list of problem metrics for a resource, and the selected children and hosts of that resource. |
java.util.List |
findAllMetrics(int sessionId,
AppdefEntityID aeid,
AppdefEntityTypeID ctype,
long begin,
long end)
Returns a list of problem metrics for an autogroup, return a summarized list of UI beans |
Measurement |
findAvailabilityMetric(int sessionId,
AppdefEntityID id)
Get the availability metric for a given resource |
java.util.List |
findEnabledAGMeasurements(int sessionId,
AppdefEntityID parentId,
AppdefEntityTypeID childType,
java.lang.String cat,
PageControl pc)
Get the enabled measurements for an auto group |
PageList |
findEnabledMeasurements(int sessionId,
AppdefEntityID id,
java.lang.String cat,
PageControl pc)
Retrieve list of measurements for a specific instance and category |
java.util.List |
findGroupCurrentHealth(int sessionId,
java.lang.Integer id)
Method findGroupCurrentHealth. |
java.util.List |
findHostsCurrentHealth(int sessionId,
AppdefEntityID entId,
PageControl pc)
Find the current health of the entity's host(s) |
Measurement |
findMeasurement(int sessionId,
java.lang.Integer tid,
AppdefEntityID id)
Retrieve a Measurement for a specific instance |
PageList |
findMeasurementData(int sessionId,
AppdefEntityID aid,
MeasurementTemplate tmpl,
long begin,
long end,
long interval,
boolean returnNulls,
PageControl pc)
Dumps data for a specific measurement template for an instance based on an interval |
PageList |
findMeasurementData(int sessionId,
java.lang.Integer tid,
AppdefEntityID aid,
AppdefEntityTypeID ctype,
long begin,
long end,
long interval,
boolean returnNulls,
PageControl pc)
Dumps data for a specific measurement template for an auto-group based on an interval. |
PageList |
findMeasurementData(int sessionId,
java.lang.Integer tid,
AppdefEntityID aid,
long begin,
long end,
long interval,
boolean returnNulls,
PageControl pc)
Dumps data for a specific measurement template for an instance based on an interval |
PageList |
findMeasurementData(int sessionId,
java.lang.Integer tid,
java.util.List entIds,
long begin,
long end,
long interval,
boolean returnNulls,
PageControl pc)
Dumps data for a specific measurement template for an auto-group based on an interval. |
PageList |
findMeasurementData(int sessionId,
Measurement m,
long begin,
long end,
PageControl pc)
Dumps data for a specific measurement |
PageList |
findMeasurementData(java.lang.String user,
AppdefEntityID aid,
MeasurementTemplate tmpl,
long begin,
long end,
long interval,
boolean returnNulls,
PageControl pc)
Dumps data for a specific measurement template for an instance based on an interval |
java.util.List |
findMeasurements(int sessionId,
AppdefEntityID id,
PageControl pc)
Retrieve List of measurements for a specific instance |
java.util.List |
findMeasurements(int sessionId,
java.lang.Integer tid,
AppdefEntityID[] entIds)
Retrieve list of measurements for a specific template and entities |
java.util.List |
findMeasurementTemplates(int sessionId,
AppdefEntityID aeid)
|
java.util.List |
findMeasurementTemplates(int sessionId,
AppdefEntityTypeID typeId,
java.lang.String category,
PageControl pc)
|
java.util.List |
findMeasurementTemplates(int sessionId,
java.lang.Integer[] ids,
PageControl pc)
Retrieve list of measurement templates given specific IDs |
java.util.List |
findMeasurementTemplates(int sessionId,
java.lang.String mtype,
PageControl pc)
Retrieve list of measurement templates applicable to a monitorable type |
java.util.List |
findMeasurementTemplates(java.lang.String user,
java.lang.Integer[] ids,
PageControl pc)
Retrieve list of measurement templates given specific IDs |
MetricDisplaySummary |
findMetric(int sessionId,
AppdefEntityID aeid,
AppdefEntityTypeID ctype,
java.lang.Integer tid,
long begin,
long end)
Method findMetrics. |
MetricDisplaySummary |
findMetric(int sessionId,
java.util.List resources,
java.lang.Integer tid,
long begin,
long end)
Method findMetrics. |
java.util.List |
findMetricMetadata(int sessionId,
AppdefEntityID aid,
AppdefEntityTypeID ctype,
java.lang.Integer tid)
Returns metadata for particular measurement |
java.util.Map |
findMetrics(int sessionId,
AppdefEntityID[] entIds,
long filters,
java.lang.String keyword,
long begin,
long end,
boolean showNoCollect)
Return a MetricSummary bean for each of the metrics (template) for the entities in the given time frame |
java.util.Map |
findMetrics(int sessionId,
AppdefEntityID entId,
java.util.List mtids,
long begin,
long end)
Method findMetrics. |
PageList |
findPlatformsCurrentHealth(int sessionId,
AppdefEntityID entId,
PageControl pc)
Method findPlatformsCurrentHealth. |
java.util.Map |
findResourceMetricSummary(int sessionId,
AppdefEntityID[] entIds,
long begin,
long end)
Method findResourceMetricSummary. |
java.util.List |
findResourcesCurrentHealth(int sessionId,
AppdefEntityID[] entIds)
Method findResourcesCurrentHealth. |
java.util.List |
findResourcesCurrentHealth(java.lang.String user,
AppdefEntityID[] entIds)
Method findResourcesCurrentHealth. |
PageList |
findServersCurrentHealth(int sessionId,
AppdefEntityID entId,
PageControl pc)
Method findServersCurrentHealth For the screens that rely on this API, the entId is either an application, a service or a group. |
java.util.List |
findSummarizedPlatformServiceCurrentHealth(int sessionId,
AppdefEntityID entId)
Method findSummarizedServiceCurrentHealth. |
java.util.List |
findSummarizedServerCurrentHealth(int sessionId,
AppdefEntityID entId)
Method findSummarizedServerCurrentHealth. |
java.util.List |
findSummarizedServiceCurrentHealth(int sessionId,
AppdefEntityID entId)
|
java.util.List |
findVirtualsCurrentHealth(int sessionId,
AppdefEntityID entId)
Return a ResourceDisplaySummary bean for each of the resource's virtual resources. |
double |
getAGAvailability(int sessionId,
AppdefEntityID[] aids,
AppdefEntityTypeID ctype)
Get the availability of autogroup resources |
java.util.List |
getAGDesignatedTemplates(int sessionId,
AppdefEntityID[] aids,
AppdefEntityTypeID ctype,
java.util.Set cats)
Get the the designated measurement template for the autogroup given a type and corresponding category. |
AppdefEntityID[] |
getAutoGroupMemberIDs(AuthzSubject subject,
AppdefEntityID[] aids,
AppdefEntityTypeID ctype)
Get Autogroup member ids |
double |
getAvailability(AuthzSubject subj,
AppdefEntityID id)
Get Availability measurement for a given entitiy |
double |
getAvailability(int sessionId,
AppdefEntityID id)
Get the availability of the resource |
MeasurementTemplate |
getAvailabilityMetricTemplate(int sessionId,
AppdefEntityID aeid)
Get the the availability metric template for the given resource |
MeasurementTemplate |
getAvailabilityMetricTemplate(int sessionId,
AppdefEntityID aid,
AppdefEntityTypeID ctype)
Get the the availability metric template for the given autogroup |
java.util.List |
getDesignatedTemplates(int sessionId,
AppdefEntityID id,
java.util.Set cats)
Get the the designated measurement template for the given resource and corresponding category. |
java.util.Map |
getLastIndicatorValues(java.lang.Integer sessionId,
AppdefEntityID aeid)
Get the last indicator metric values |
MetricValue[] |
getLastMetricValue(int sessionId,
AppdefEntityID aeid,
java.lang.Integer[] tids)
Get the last metric values for the given template IDs. |
MetricValue[] |
getLastMetricValue(int sessionId,
java.util.List measurements,
long interval)
Get the last metric data for the array of measurement ids. |
Measurement |
getMeasurement(int sessionID,
java.lang.Integer id)
Find a measurement using measurement id |
MeasurementTemplate |
getMeasurementTemplate(int sessionId,
java.lang.Integer id)
Retrieve a measurement template given specific ID |
static org.hyperic.hq.bizapp.shared.MeasurementBossLocal |
getOne()
|
javax.ejb.SessionContext |
getSessionContext()
|
MeasurementSummary |
getSummarizedResourceAvailability(int sessionId,
AppdefEntityID entId,
int appdefType,
java.lang.Integer typeId)
Return a MeasurementSummary bean for the resource's associated resources specified by type |
AppdefResourceValue[] |
pruneResourcesNotCollecting(int sessionId,
AppdefResourceValue[] resources,
java.lang.Integer tid)
Prunes from the list of passed-in AppdefEntityValue array those resources that are not collecting the metric corresponding to the given template id. |
void |
setSessionContext(javax.ejb.SessionContext ctx)
|
void |
updateAGMeasurements(int sessionId,
AppdefEntityID parentid,
AppdefEntityTypeID ctype,
java.lang.Integer[] tids,
long interval)
Update measurements for the members of an autogroup |
void |
updateIndicatorMetrics(int sessionId,
AppdefEntityTypeID aetid,
java.lang.Integer[] tids)
Update the templates to be indicators or not |
void |
updateMeasurements(int sessionId,
AppdefEntityID id,
java.lang.Integer[] tids,
long interval)
Update the measurements - set the interval |
void |
updateMetricDefaultInterval(int sessionId,
java.lang.Integer[] tids,
long interval)
Update the default interval for a list of template ids |
Methods inherited from class org.hyperic.hq.bizapp.server.session.MetricSessionEJB |
---|
findAllMetrics, findAllMetrics, findAvailabilityMetric, findMetrics, getAeids, getAggregateAvailability, getAGMemberIds, getAGMemberIds, getAvailability, getAvailability, getGroupAvailability, getGroupMemberIDs, getMetricDisplaySummary, getMidMap, getPlatformAG, getResourceIds, getResourceMetrics, getResourceMetrics, toAppdefEntityIDArray |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static org.apache.commons.logging.Log _log
Constructor Detail |
---|
public MeasurementBossEJBImpl()
Method Detail |
---|
public AppdefEntityID[] getAutoGroupMemberIDs(AuthzSubject subject, AppdefEntityID[] aids, AppdefEntityTypeID ctype) throws AppdefEntityNotFoundException, PermissionException
AppdefEntityNotFoundException
PermissionException
public void updateMetricDefaultInterval(int sessionId, java.lang.Integer[] tids, long interval) throws SessionException
SessionException
public void updateIndicatorMetrics(int sessionId, AppdefEntityTypeID aetid, java.lang.Integer[] tids) throws TemplateNotFoundException, SessionTimeoutException, SessionNotFoundException
TemplateNotFoundException
SessionTimeoutException
SessionNotFoundException
public java.util.List findMeasurementTemplates(int sessionId, AppdefEntityTypeID typeId, java.lang.String category, PageControl pc) throws SessionTimeoutException, SessionNotFoundException
SessionTimeoutException
SessionNotFoundException
public java.util.List findMeasurementTemplates(int sessionId, AppdefEntityID aeid) throws SessionTimeoutException, SessionNotFoundException, AppdefEntityNotFoundException, PermissionException
SessionTimeoutException
SessionNotFoundException
AppdefEntityNotFoundException
PermissionException
public java.util.List findMeasurementTemplates(int sessionId, java.lang.String mtype, PageControl pc) throws SessionTimeoutException, SessionNotFoundException
mtype
- the monitorableType
SessionTimeoutException
SessionNotFoundException
public java.util.List findMeasurementTemplates(java.lang.String user, java.lang.Integer[] ids, PageControl pc) throws javax.security.auth.login.LoginException, ApplicationException, ConfigPropertyException
javax.security.auth.login.LoginException
ApplicationException
ConfigPropertyException
public java.util.List findMeasurementTemplates(int sessionId, java.lang.Integer[] ids, PageControl pc) throws SessionTimeoutException, SessionNotFoundException, TemplateNotFoundException
SessionTimeoutException
SessionNotFoundException
TemplateNotFoundException
public MeasurementTemplate getMeasurementTemplate(int sessionId, java.lang.Integer id) throws SessionNotFoundException, SessionTimeoutException, TemplateNotFoundException
SessionNotFoundException
SessionTimeoutException
TemplateNotFoundException
public MeasurementTemplate getAvailabilityMetricTemplate(int sessionId, AppdefEntityID aid, AppdefEntityTypeID ctype) throws SessionNotFoundException, SessionTimeoutException, MeasurementNotFoundException, AppdefEntityNotFoundException, PermissionException
SessionNotFoundException
SessionTimeoutException
MeasurementNotFoundException
AppdefEntityNotFoundException
PermissionException
public MeasurementTemplate getAvailabilityMetricTemplate(int sessionId, AppdefEntityID aeid) throws MeasurementNotFoundException, SessionNotFoundException, SessionTimeoutException, AppdefEntityNotFoundException, PermissionException
MeasurementNotFoundException
SessionNotFoundException
SessionTimeoutException
AppdefEntityNotFoundException
PermissionException
public java.util.List getDesignatedTemplates(int sessionId, AppdefEntityID id, java.util.Set cats) throws SessionNotFoundException, SessionTimeoutException, AppdefEntityNotFoundException, PermissionException
SessionNotFoundException
SessionTimeoutException
AppdefEntityNotFoundException
PermissionException
public java.util.List getAGDesignatedTemplates(int sessionId, AppdefEntityID[] aids, AppdefEntityTypeID ctype, java.util.Set cats) throws SessionNotFoundException, SessionTimeoutException, MeasurementNotFoundException, AppdefEntityNotFoundException, PermissionException
ctype
- the AppdefEntityTypeID of the AG members
SessionNotFoundException
SessionTimeoutException
MeasurementNotFoundException
AppdefEntityNotFoundException
PermissionException
public void updateMeasurements(int sessionId, AppdefEntityID id, java.lang.Integer[] tids, long interval) throws MeasurementNotFoundException, SessionTimeoutException, SessionNotFoundException, TemplateNotFoundException, AppdefEntityNotFoundException, GroupNotCompatibleException, MeasurementCreateException, ConfigFetchException, PermissionException, EncodingException
id
- the resource IDtids
- the array of template ID'sinterval
- the new interval value
MeasurementNotFoundException
SessionTimeoutException
SessionNotFoundException
TemplateNotFoundException
AppdefEntityNotFoundException
GroupNotCompatibleException
MeasurementCreateException
ConfigFetchException
PermissionException
EncodingException
public void updateAGMeasurements(int sessionId, AppdefEntityID parentid, AppdefEntityTypeID ctype, java.lang.Integer[] tids, long interval) throws MeasurementNotFoundException, SessionTimeoutException, SessionNotFoundException, TemplateNotFoundException, AppdefEntityNotFoundException, GroupNotCompatibleException, MeasurementCreateException, ConfigFetchException, PermissionException, EncodingException
parentid
- - the parent resource of the autogroupctype
- - the type of child resourcetids
- - template ids to updateinterval
- - the interval to set
MeasurementNotFoundException
SessionTimeoutException
SessionNotFoundException
TemplateNotFoundException
AppdefEntityNotFoundException
GroupNotCompatibleException
MeasurementCreateException
ConfigFetchException
PermissionException
EncodingException
public void disableMeasurements(int sessionId, AppdefEntityID id) throws SessionTimeoutException, SessionNotFoundException, PermissionException
id
- the resource's ID
SessionTimeoutException
SessionNotFoundException
PermissionException
public void disableMeasurements(int sessionId, AppdefEntityID id, java.lang.Integer[] tids) throws SessionException, javax.ejb.RemoveException, AppdefEntityNotFoundException, GroupNotCompatibleException, PermissionException
id
- the resource's IDtids
- the array of measurement ID's
SessionException
javax.ejb.RemoveException
AppdefEntityNotFoundException
GroupNotCompatibleException
PermissionException
public void disableAGMeasurements(int sessionId, AppdefEntityID parentId, AppdefEntityTypeID childType, java.lang.Integer[] tids) throws SessionTimeoutException, SessionNotFoundException, javax.ejb.RemoveException, AppdefEntityNotFoundException, GroupNotCompatibleException, PermissionException
tids
- the array of measurement ID's
SessionTimeoutException
SessionNotFoundException
javax.ejb.RemoveException
AppdefEntityNotFoundException
GroupNotCompatibleException
PermissionException
public Measurement getMeasurement(int sessionID, java.lang.Integer id) throws SessionTimeoutException, SessionNotFoundException, MeasurementNotFoundException
id
- measurement id
SessionTimeoutException
SessionNotFoundException
MeasurementNotFoundException
public MetricValue[] getLastMetricValue(int sessionId, AppdefEntityID aeid, java.lang.Integer[] tids) throws SessionTimeoutException, SessionNotFoundException, PermissionException
tids
- The template IDs to get
SessionTimeoutException
SessionNotFoundException
PermissionException
public MetricValue[] getLastMetricValue(int sessionId, java.util.List measurements, long interval)
measurements
- The List of Measurements to get metrics forinterval
- The allowable time in ms to go back looking for data.public java.util.Map getLastIndicatorValues(java.lang.Integer sessionId, AppdefEntityID aeid)
public Measurement findMeasurement(int sessionId, java.lang.Integer tid, AppdefEntityID id) throws SessionNotFoundException, SessionTimeoutException, PermissionException, MeasurementNotFoundException, AppdefEntityNotFoundException
SessionNotFoundException
SessionTimeoutException
PermissionException
MeasurementNotFoundException
AppdefEntityNotFoundException
public java.util.List findMeasurements(int sessionId, AppdefEntityID id, PageControl pc) throws SessionNotFoundException, SessionTimeoutException, AppdefEntityNotFoundException, GroupNotCompatibleException, PermissionException
SessionNotFoundException
SessionTimeoutException
AppdefEntityNotFoundException
GroupNotCompatibleException
PermissionException
public java.util.List findMeasurements(int sessionId, java.lang.Integer tid, AppdefEntityID[] entIds) throws SessionTimeoutException, SessionNotFoundException, MeasurementNotFoundException, AppdefEntityNotFoundException, PermissionException
tid
- the template IDentIds
- the array of entity IDs
SessionTimeoutException
SessionNotFoundException
MeasurementNotFoundException
AppdefEntityNotFoundException
PermissionException
public java.util.List findEnabledAGMeasurements(int sessionId, AppdefEntityID parentId, AppdefEntityTypeID childType, java.lang.String cat, PageControl pc) throws SessionNotFoundException, SessionTimeoutException, AppdefEntityNotFoundException, GroupNotCompatibleException, PermissionException
parentId
- - the parent resource appdefEntityIDchildType
- - the type of child in the autogroup
SessionNotFoundException
SessionTimeoutException
AppdefEntityNotFoundException
GroupNotCompatibleException
PermissionException
public PageList findEnabledMeasurements(int sessionId, AppdefEntityID id, java.lang.String cat, PageControl pc) throws SessionNotFoundException, SessionTimeoutException, AppdefEntityNotFoundException, GroupNotCompatibleException, PermissionException
SessionNotFoundException
SessionTimeoutException
AppdefEntityNotFoundException
GroupNotCompatibleException
PermissionException
public PageList findMeasurementData(int sessionId, Measurement m, long begin, long end, PageControl pc)
public PageList findMeasurementData(int sessionId, java.lang.Integer tid, AppdefEntityID aid, long begin, long end, long interval, boolean returnNulls, PageControl pc) throws SessionNotFoundException, SessionTimeoutException, AppdefEntityNotFoundException, PermissionException, MeasurementNotFoundException
tid
- the template IDaid
- the AppdefEntityIDbegin
- the beginning of the time rangeend
- the end of the time rangeinterval
- the time interval at which the data should be calculatedreturnNulls
- whether or not nulls should be inserted for no data
SessionNotFoundException
SessionTimeoutException
AppdefEntityNotFoundException
PermissionException
MeasurementNotFoundException
public PageList findMeasurementData(int sessionId, java.lang.Integer tid, AppdefEntityID aid, AppdefEntityTypeID ctype, long begin, long end, long interval, boolean returnNulls, PageControl pc) throws SessionNotFoundException, SessionTimeoutException, AppdefEntityNotFoundException, PermissionException, MeasurementNotFoundException
tid
- the measurement template idaid
- the entity idctype
- the auto-group child typebegin
- start of intervalend
- end of intervalinterval
- the intervalreturnNulls
- whether or not to return nulls
SessionNotFoundException
SessionTimeoutException
AppdefEntityNotFoundException
PermissionException
MeasurementNotFoundException
public PageList findMeasurementData(int sessionId, java.lang.Integer tid, java.util.List entIds, long begin, long end, long interval, boolean returnNulls, PageControl pc) throws SessionNotFoundException, SessionTimeoutException, AppdefEntityNotFoundException, PermissionException
tid
- the measurement template idbegin
- start of intervalend
- end of intervalinterval
- the intervalreturnNulls
- whether or not to return nulls
associated with the platform
SessionNotFoundException
SessionTimeoutException
AppdefEntityNotFoundException
PermissionException
public PageList findMeasurementData(java.lang.String user, AppdefEntityID aid, MeasurementTemplate tmpl, long begin, long end, long interval, boolean returnNulls, PageControl pc) throws javax.security.auth.login.LoginException, ApplicationException, ConfigPropertyException
aid
- the AppdefEntityIDbegin
- the beginning of the time rangeend
- the end of the time rangeinterval
- the time interval at which the data should be calculatedreturnNulls
- whether or not nulls should be inserted for no data
javax.security.auth.login.LoginException
ApplicationException
ConfigPropertyException
public PageList findMeasurementData(int sessionId, AppdefEntityID aid, MeasurementTemplate tmpl, long begin, long end, long interval, boolean returnNulls, PageControl pc) throws SessionNotFoundException, SessionTimeoutException, AppdefEntityNotFoundException, PermissionException, MeasurementNotFoundException
aid
- the AppdefEntityIDtmpl
- the complete MeasurementTemplate value objectbegin
- the beginning of the time rangeend
- the end of the time rangeinterval
- the time interval at which the data should be calculatedreturnNulls
- whether or not nulls should be inserted for no data
SessionNotFoundException
SessionTimeoutException
AppdefEntityNotFoundException
PermissionException
MeasurementNotFoundException
public PageList findAGMeasurementData(java.lang.String user, AppdefEntityID[] aids, MeasurementTemplate tmpl, AppdefEntityTypeID ctype, long begin, long end, long interval, boolean returnNulls, PageControl pc) throws javax.security.auth.login.LoginException, ApplicationException, ConfigPropertyException
ctype
- the auto-group child typebegin
- start of intervalend
- end of intervalinterval
- the intervalreturnNulls
- whether or not to return nulls
ConfigPropertyException
ApplicationException
javax.security.auth.login.LoginException
public PageList findAGMeasurementData(int sessionId, AppdefEntityID[] aids, MeasurementTemplate tmpl, AppdefEntityTypeID ctype, long begin, long end, long interval, boolean returnNulls, PageControl pc) throws SessionNotFoundException, SessionTimeoutException, AppdefEntityNotFoundException, PermissionException, MeasurementNotFoundException
ctype
- the auto-group child typebegin
- start of intervalend
- end of intervalinterval
- the intervalreturnNulls
- whether or not to return nulls
SessionNotFoundException
SessionTimeoutException
AppdefEntityNotFoundException
PermissionException
MeasurementNotFoundException
public java.util.List findMetricMetadata(int sessionId, AppdefEntityID aid, AppdefEntityTypeID ctype, java.lang.Integer tid) throws SessionNotFoundException, SessionTimeoutException, GroupNotCompatibleException, AppdefEntityNotFoundException, ApplicationNotFoundException, TemplateNotFoundException, PermissionException
SessionNotFoundException
SessionTimeoutException
GroupNotCompatibleException
AppdefEntityNotFoundException
ApplicationNotFoundException
TemplateNotFoundException
PermissionException
public MetricDisplaySummary findMetric(int sessionId, AppdefEntityID aeid, AppdefEntityTypeID ctype, java.lang.Integer tid, long begin, long end) throws SessionTimeoutException, SessionNotFoundException, PermissionException, AppdefEntityNotFoundException, AppdefCompatException, MeasurementNotFoundException
When the entId is a platform, return all of the metrics that are instances of the measurement templates for the platform's type. In this case, the MetricDisplaySummary's attributes to show the number collecting doesn't make sense; showNumberCollecting should false for each bean.
When the entId is compatible group of servers or platforms, return all of the metrics for the type. Each MetricDisplaySummary actually represents the metrics summarized for all of the group members (cumulative/averaged as appropriate), showNumberCollecting should be true and the numberCollecting as well as the total number of members assigned in each bean.
SessionTimeoutException
SessionNotFoundException
PermissionException
AppdefEntityNotFoundException
AppdefCompatException
MeasurementNotFoundException
MetricDisplaySummary
public MetricDisplaySummary findMetric(int sessionId, java.util.List resources, java.lang.Integer tid, long begin, long end) throws SessionTimeoutException, SessionNotFoundException, PermissionException, AppdefEntityNotFoundException, AppdefCompatException, MeasurementNotFoundException
When the entId is a platform, return all of the metrics that are instances of the measurement templates for the platform's type. In this case, the MetricDisplaySummary's attributes to show the number collecting doesn't make sense; showNumberCollecting should false for each bean.
When the entId is compatible group of servers or platforms, return all of the metrics for the type. Each MetricDisplaySummary actually represents the metrics summarized for all of the group members (cumulative/averaged as appropriate), showNumberCollecting should be true and the numberCollecting as well as the total number of members assigned in each bean.
SessionTimeoutException
SessionNotFoundException
PermissionException
AppdefEntityNotFoundException
AppdefCompatException
MeasurementNotFoundException
MetricDisplaySummary
public AppdefResourceValue[] pruneResourcesNotCollecting(int sessionId, AppdefResourceValue[] resources, java.lang.Integer tid) throws SessionNotFoundException, SessionTimeoutException, AppdefEntityNotFoundException, MeasurementNotFoundException, PermissionException
resources
- the resourcestid
- the metric template id
SessionNotFoundException
SessionTimeoutException
AppdefEntityNotFoundException
MeasurementNotFoundException
PermissionException
public java.util.Map findResourceMetricSummary(int sessionId, AppdefEntityID[] entIds, long begin, long end) throws SessionTimeoutException, SessionNotFoundException, AppdefEntityNotFoundException, MeasurementNotFoundException, PermissionException
begin
- the commencement of the timeframe of interestend
- the end of the timeframe of interest
SessionTimeoutException
SessionNotFoundException
AppdefEntityNotFoundException
MeasurementNotFoundException
PermissionException
public java.util.Map findMetrics(int sessionId, AppdefEntityID[] entIds, long filters, java.lang.String keyword, long begin, long end, boolean showNoCollect) throws SessionTimeoutException, SessionNotFoundException, InvalidAppdefTypeException, PermissionException, AppdefEntityNotFoundException, AppdefCompatException
findMetrics
in class MetricSessionEJB
begin
- the beginning time frameend
- the ending time frame
AppdefCompatException
SessionTimeoutException
SessionNotFoundException
InvalidAppdefTypeException
PermissionException
AppdefEntityNotFoundException
public java.util.Map findMetrics(int sessionId, AppdefEntityID entId, java.util.List mtids, long begin, long end) throws SessionTimeoutException, SessionNotFoundException, PermissionException, AppdefEntityNotFoundException, AppdefCompatException
When the entId is a platform, return all of the metrics that are instances of the measurement templates for the platform's type. In this case, the MetricDisplaySummary's attributes to show the number collecting doesn't make sense; showNumberCollecting should false for each bean.
When the entId is compatible group of servers or platforms, return all of the metrics for the type. Each MetricDisplaySummary actually represents the metrics summarized for all of the group members (cumulative/averaged as appropriate), showNumberCollecting should be true and the numberCollecting as well as the total number of members assigned in each bean.
findMetrics
in class MetricSessionEJB
AppdefCompatException
SessionTimeoutException
SessionNotFoundException
PermissionException
AppdefEntityNotFoundException
MetricDisplaySummary
public java.util.Map findAGPlatformMetricsByType(int sessionId, AppdefEntityTypeID platTypeId, long begin, long end, boolean showAll) throws SessionTimeoutException, SessionNotFoundException, InvalidAppdefTypeException, AppdefEntityNotFoundException, PermissionException, AppdefCompatException
findAGPlatformMetricsByType
in class MetricSessionEJB
begin
- the beginning time frameend
- the ending time frame
AppdefCompatException
SessionTimeoutException
SessionNotFoundException
InvalidAppdefTypeException
AppdefEntityNotFoundException
PermissionException
public java.util.Map findAGMetricsByType(int sessionId, AppdefEntityID[] entIds, AppdefEntityTypeID typeId, long filters, java.lang.String keyword, long begin, long end, boolean showAll) throws SessionTimeoutException, SessionNotFoundException, InvalidAppdefTypeException, PermissionException, AppdefEntityNotFoundException, AppdefCompatException
The map returned has keys for the measurement categories (see MeasurementConstants) and values that are Lists of MetricDisplaySummary beans.
This is used to access metrics for entity's internal and deployed services. The metrics returned are only applicable from within the given timeframe of interest.
Appropriate entities include
findAGMetricsByType
in class MetricSessionEJB
begin
- the beginning time frameend
- the ending time frame
AppdefCompatException
SessionTimeoutException
SessionNotFoundException
InvalidAppdefTypeException
PermissionException
AppdefEntityNotFoundException
public MeasurementSummary getSummarizedResourceAvailability(int sessionId, AppdefEntityID entId, int appdefType, java.lang.Integer typeId) throws AppdefEntityNotFoundException, PermissionException, SessionNotFoundException, SessionTimeoutException, InvalidOptionException
entId
- the entity IDappdefType
- the type (server, service, etc) of the specified resource typetypeId
- the specified resource type ID
AppdefEntityNotFoundException
PermissionException
SessionNotFoundException
SessionTimeoutException
InvalidOptionException
public java.util.List findSummarizedServerCurrentHealth(int sessionId, AppdefEntityID entId) throws SessionTimeoutException, SessionNotFoundException, AppdefEntityNotFoundException, PermissionException
Return a ResourceTypeDisplaySummary bean for each of the platform's deployed servers. Each bean represents a type of server and the measurement data summarized for that type.
see screen 2.2.2
SessionTimeoutException
SessionNotFoundException
AppdefEntityNotFoundException
PermissionException
public java.util.List findSummarizedPlatformServiceCurrentHealth(int sessionId, AppdefEntityID entId) throws SessionTimeoutException, SessionNotFoundException, PermissionException, AppdefEntityNotFoundException
This is used for the lists of service types for the Current Health view for
If internal
is true, only the internal
services will be returned, the deployed ones if it's
false. If internal
is null, then
both deployed and internal services will be returned.
entId
- the appdef entity with child services
SessionTimeoutException
SessionNotFoundException
PermissionException
AppdefEntityNotFoundException
public java.util.List findSummarizedServiceCurrentHealth(int sessionId, AppdefEntityID entId) throws SessionTimeoutException, SessionNotFoundException, PermissionException, AppdefEntityNotFoundException
SessionTimeoutException
SessionNotFoundException
PermissionException
AppdefEntityNotFoundException
public java.util.List findGroupCurrentHealth(int sessionId, java.lang.Integer id) throws SessionTimeoutException, SessionNotFoundException, AppdefEntityNotFoundException, PermissionException
Return a ResourceDisplaySummary bean for each of the group's member resources. Each bean represents a resource and the measurement data summarized for that type.
see screen 2.2.2
SessionTimeoutException
SessionNotFoundException
AppdefEntityNotFoundException
PermissionException
public java.util.List findVirtualsCurrentHealth(int sessionId, AppdefEntityID entId) throws SessionTimeoutException, SessionNotFoundException, AppdefEntityNotFoundException, GroupNotCompatibleException, PermissionException
see screen 2.2.2
SessionTimeoutException
SessionNotFoundException
AppdefEntityNotFoundException
GroupNotCompatibleException
PermissionException
public java.util.List findResourcesCurrentHealth(java.lang.String user, AppdefEntityID[] entIds) throws javax.security.auth.login.LoginException, ApplicationException, PermissionException, AppdefEntityNotFoundException, SessionNotFoundException, SessionTimeoutException
ApplicationException
- if user is not found
javax.security.auth.login.LoginException
- if user account has been disabled
PermissionException
AppdefEntityNotFoundException
SessionNotFoundException
SessionTimeoutException
public java.util.List findResourcesCurrentHealth(int sessionId, AppdefEntityID[] entIds) throws AppdefEntityNotFoundException, PermissionException, SessionNotFoundException, SessionTimeoutException
AppdefEntityNotFoundException
PermissionException
SessionNotFoundException
SessionTimeoutException
public java.util.List findHostsCurrentHealth(int sessionId, AppdefEntityID entId, PageControl pc) throws SessionNotFoundException, SessionTimeoutException, PermissionException, AppdefEntityNotFoundException
SessionNotFoundException
SessionTimeoutException
PermissionException
AppdefEntityNotFoundException
public PageList findPlatformsCurrentHealth(int sessionId, AppdefEntityID entId, PageControl pc) throws SessionTimeoutException, SessionNotFoundException, AppdefEntityNotFoundException, PermissionException
SessionTimeoutException
SessionNotFoundException
AppdefEntityNotFoundException
PermissionException
public java.util.List findAGPlatformsCurrentHealthByType(int sessionId, java.lang.Integer platTypeId) throws SessionTimeoutException, SessionNotFoundException, InvalidAppdefTypeException, PermissionException, AppdefEntityNotFoundException
SessionTimeoutException
SessionNotFoundException
InvalidAppdefTypeException
PermissionException
AppdefEntityNotFoundException
public PageList findServersCurrentHealth(int sessionId, AppdefEntityID entId, PageControl pc) throws SessionTimeoutException, SessionNotFoundException, InvalidAppdefTypeException, AppdefEntityNotFoundException, PermissionException
entId
- the platform's or application's ID
SessionTimeoutException
SessionNotFoundException
InvalidAppdefTypeException
AppdefEntityNotFoundException
PermissionException
public java.util.List findAGServersCurrentHealthByType(int sessionId, AppdefEntityID[] entIds, java.lang.Integer serverTypeId) throws SessionTimeoutException, SessionNotFoundException, InvalidAppdefTypeException, AppdefEntityNotFoundException, PermissionException
SessionTimeoutException
SessionNotFoundException
InvalidAppdefTypeException
AppdefEntityNotFoundException
PermissionException
public java.util.List findAGServicesCurrentHealthByType(int sessionId, AppdefEntityID[] entIds, java.lang.Integer serviceTypeId) throws SessionTimeoutException, SessionNotFoundException, InvalidAppdefTypeException, AppdefEntityNotFoundException, PermissionException
SessionTimeoutException
SessionNotFoundException
InvalidAppdefTypeException
AppdefEntityNotFoundException
PermissionException
public double getAvailability(AuthzSubject subj, AppdefEntityID id) throws AppdefEntityNotFoundException, PermissionException
AppdefEntityNotFoundException
PermissionException
public double getAvailability(int sessionId, AppdefEntityID id) throws SessionTimeoutException, SessionNotFoundException, AppdefEntityNotFoundException, PermissionException
id
- the Appdef entity ID
SessionTimeoutException
SessionNotFoundException
AppdefEntityNotFoundException
PermissionException
public double getAGAvailability(int sessionId, AppdefEntityID[] aids, AppdefEntityTypeID ctype) throws SessionTimeoutException, SessionNotFoundException, AppdefEntityNotFoundException, PermissionException
SessionTimeoutException
SessionNotFoundException
AppdefEntityNotFoundException
PermissionException
public java.util.List findAllMetrics(int sessionId, AppdefEntityID aeid, AppdefEntityTypeID ctype, long begin, long end) throws SessionTimeoutException, SessionNotFoundException, AppdefEntityNotFoundException, PermissionException, AppdefCompatException, InvalidAppdefTypeException
findAllMetrics
in class MetricSessionEJB
SessionTimeoutException
SessionNotFoundException
AppdefEntityNotFoundException
PermissionException
InvalidAppdefTypeException
AppdefCompatException
public java.util.List findAllMetrics(int sessionId, AppdefEntityID aeid, AppdefEntityID[] hosts, AppdefEntityTypeID[] children, AppdefEntityID[] members, long begin, long end) throws SessionTimeoutException, SessionNotFoundException, AppdefEntityNotFoundException, PermissionException, AppdefCompatException, InvalidAppdefTypeException
SessionTimeoutException
SessionNotFoundException
AppdefEntityNotFoundException
PermissionException
AppdefCompatException
InvalidAppdefTypeException
public java.util.List findAllMetrics(int sessionId, AppdefEntityID aeid, AppdefEntityID[] hosts, AppdefEntityTypeID[] children, long begin, long end) throws SessionTimeoutException, SessionNotFoundException, AppdefEntityNotFoundException, PermissionException, AppdefCompatException, InvalidAppdefTypeException
SessionTimeoutException
SessionNotFoundException
AppdefEntityNotFoundException
PermissionException
AppdefCompatException
InvalidAppdefTypeException
public Measurement findAvailabilityMetric(int sessionId, AppdefEntityID id) throws SessionTimeoutException, SessionNotFoundException
SessionTimeoutException
SessionNotFoundException
public static org.hyperic.hq.bizapp.shared.MeasurementBossLocal getOne()
public void ejbCreate() throws javax.ejb.CreateException
javax.ejb.CreateException
public void ejbActivate() throws javax.ejb.EJBException, java.rmi.RemoteException
ejbActivate
in interface javax.ejb.SessionBean
javax.ejb.EJBException
java.rmi.RemoteException
public void ejbPassivate() throws javax.ejb.EJBException, java.rmi.RemoteException
ejbPassivate
in interface javax.ejb.SessionBean
javax.ejb.EJBException
java.rmi.RemoteException
public void ejbRemove() throws javax.ejb.EJBException, java.rmi.RemoteException
ejbRemove
in interface javax.ejb.SessionBean
javax.ejb.EJBException
java.rmi.RemoteException
public void setSessionContext(javax.ejb.SessionContext ctx) throws javax.ejb.EJBException, java.rmi.RemoteException
setSessionContext
in interface javax.ejb.SessionBean
setSessionContext
in class BizappSessionEJB
javax.ejb.EJBException
java.rmi.RemoteException
public javax.ejb.SessionContext getSessionContext()
getSessionContext
in class BizappSessionEJB
|
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 |