|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IKpiDAO
Method Summary | |
---|---|
boolean |
deleteKpi(java.lang.Integer kpiId)
|
void |
deleteResource(java.lang.Integer resourceId)
|
java.lang.String |
getChartType(java.lang.Integer kpiInstanceID)
Returns the ChartType of the specific KpiInstance (it could also be null) |
IDataSet |
getDsFromKpiId(java.lang.Integer kpiId)
Returns the DatasetConfig for the KPI with id kpiId |
java.lang.String |
getKpiTrendXmlResult(java.lang.Integer resId,
java.lang.Integer kpiInstId,
java.util.Date endDate)
Returns a List of all the the Threshols of the KpiInstance |
KpiValue |
getKpiValue(java.lang.Integer kpiInstanceId,
java.util.Date d,
Resource r)
KpiValue valid for the the KpiInstance selected, for the resource selected, in the date selected |
java.lang.Integer |
getPeriodicitySeconds(java.lang.Integer periodicityId)
Returns an Integer representing the seconds of the Periodicity with id periodicityId |
java.util.List |
getThresholds(KpiInstance k)
Returns a List of all the the Threshols of the KpiInstance |
java.lang.Integer |
insertKpi(Kpi toCreate)
|
void |
insertKpiValue(KpiValue value)
Inserts a new KPI Value with its date, value period and thresholds |
java.lang.Integer |
insertResource(Resource toCreate)
|
void |
isAlarmingValue(KpiValue value)
For the specific KpiValue verifies if it is ok with every threshold and if not writes an alarm event in the AlarmEvent table so that later on an alarm will be sent |
java.lang.Boolean |
isKpiInstUnderAlramControl(java.lang.Integer kpiInstID)
Returns True if the KPIInstance with id kpiInstID is under AlarmControl, false if it is not |
Kpi |
loadKpiById(java.lang.Integer id)
Returns the Kpi of the referred id |
Kpi |
loadKpiDefinitionById(java.lang.Integer id)
Returns the Kpi Definition of the referred id |
KpiInstance |
loadKpiInstanceById(java.lang.Integer id)
Returns the KpiInstance of the referred id |
KpiInstance |
loadKpiInstanceByIdFromHistory(java.lang.Integer id,
java.util.Date d)
Returns the KpiInstance with id 'id' that was valid in date d |
java.util.List |
loadKpiList()
Returns the list of Kpi. |
java.util.List |
loadKpiList(java.lang.String fieldOrder,
java.lang.String typeOrder)
|
ModelInstanceNode |
loadModelInstanceById(java.lang.Integer id,
java.util.Date requestedDate)
Returns the ModelInstance of the referred id |
Resource |
loadResourceById(java.lang.Integer id)
Returns the Resource of the referred id |
java.util.List |
loadResourcesList(java.lang.String fieldOrder,
java.lang.String typeOrder)
|
java.util.List |
loadThresholdsById(java.lang.Integer id)
Loads the list of Threshold interval for the threshold with id 'id' |
void |
modifyKpi(Kpi kpi)
|
void |
modifyResource(Resource resource)
|
void |
setKpiInstanceFromKPI(KpiInstance kpiInstance,
java.lang.Integer kpiId)
|
Method Detail |
---|
void insertKpiValue(KpiValue value) throws it.eng.spago.error.EMFUserError
KpiValue
- to insert
it.eng.spago.error.EMFUserError
- If an Exception occurredModelInstanceNode loadModelInstanceById(java.lang.Integer id, java.util.Date requestedDate) throws it.eng.spago.error.EMFUserError
id
- of the ModelInstance
it.eng.spago.error.EMFUserError
- If an Exception occurredKpiInstance loadKpiInstanceById(java.lang.Integer id) throws it.eng.spago.error.EMFUserError
id
- of the KpiInstance
it.eng.spago.error.EMFUserError
- If an Exception occurredKpiInstance loadKpiInstanceByIdFromHistory(java.lang.Integer id, java.util.Date d) throws it.eng.spago.error.EMFUserError
id
- of the KpiInstanceDate
- of when the KpiInstance has to be valid
it.eng.spago.error.EMFUserError
- If an Exception occurredjava.util.List loadThresholdsById(java.lang.Integer id) throws it.eng.spago.error.EMFUserError
Integer
- id of the threshold
it.eng.spago.error.EMFUserError
- If an Exception occurredjava.util.List getThresholds(KpiInstance k) throws it.eng.spago.error.EMFUserError
KpiInstance
- k
it.eng.spago.error.EMFUserError
- If an Exception occurredjava.lang.String getKpiTrendXmlResult(java.lang.Integer resId, java.lang.Integer kpiInstId, java.util.Date endDate) throws it.eng.spago.base.SourceBeanException
Integer
- resId, Integer kpiInstId, String endDate
it.eng.spago.error.EMFUserError
- If an Exception occurred
it.eng.spago.base.SourceBeanException
java.lang.Integer getPeriodicitySeconds(java.lang.Integer periodicityId) throws it.eng.spago.error.EMFUserError
Integer
- periodicityId
it.eng.spago.error.EMFUserError
- If an Exception occurredKpi loadKpiById(java.lang.Integer id) throws it.eng.spago.error.EMFUserError
id
- of the Kpi
it.eng.spago.error.EMFUserError
- If an Exception occurredKpi loadKpiDefinitionById(java.lang.Integer id) throws it.eng.spago.error.EMFUserError
id
- of the Kpi
it.eng.spago.error.EMFUserError
- If an Exception occurredResource loadResourceById(java.lang.Integer id) throws it.eng.spago.error.EMFUserError
id
- of the Resource
it.eng.spago.error.EMFUserError
- If an Exception occurredIDataSet getDsFromKpiId(java.lang.Integer kpiId) throws it.eng.spago.error.EMFUserError
kpiId
- of the KPI
it.eng.spago.error.EMFUserError
- if an Exception occursKpiValue getKpiValue(java.lang.Integer kpiInstanceId, java.util.Date d, Resource r) throws it.eng.spago.error.EMFUserError
KpiValue
-
it.eng.spago.error.EMFUserError
- if an Exception occursjava.lang.Boolean isKpiInstUnderAlramControl(java.lang.Integer kpiInstID) throws it.eng.spago.error.EMFUserError
kpiInstID
- of the KPIInstance that we want to monitor
it.eng.spago.error.EMFUserError
- if an Exception occursvoid isAlarmingValue(KpiValue value) throws it.eng.spago.error.EMFUserError
KpiValue
-
it.eng.spago.error.EMFUserError
- if an Exception occursjava.lang.String getChartType(java.lang.Integer kpiInstanceID) throws it.eng.spago.error.EMFUserError
kpiInstanceID
-
it.eng.spago.error.EMFUserError
- if an Exception occursjava.util.List loadKpiList() throws it.eng.spago.error.EMFUserError
it.eng.spago.error.EMFUserError
- if an Exception occursjava.util.List loadKpiList(java.lang.String fieldOrder, java.lang.String typeOrder) throws it.eng.spago.error.EMFUserError
it.eng.spago.error.EMFUserError
void modifyResource(Resource resource) throws it.eng.spago.error.EMFUserError
it.eng.spago.error.EMFUserError
java.lang.Integer insertResource(Resource toCreate) throws it.eng.spago.error.EMFUserError
it.eng.spago.error.EMFUserError
void setKpiInstanceFromKPI(KpiInstance kpiInstance, java.lang.Integer kpiId) throws it.eng.spago.error.EMFUserError
it.eng.spago.error.EMFUserError
void deleteResource(java.lang.Integer resourceId) throws it.eng.spago.error.EMFUserError
it.eng.spago.error.EMFUserError
void modifyKpi(Kpi kpi) throws it.eng.spago.error.EMFUserError
it.eng.spago.error.EMFUserError
java.lang.Integer insertKpi(Kpi toCreate) throws it.eng.spago.error.EMFUserError
it.eng.spago.error.EMFUserError
boolean deleteKpi(java.lang.Integer kpiId) throws it.eng.spago.error.EMFUserError
it.eng.spago.error.EMFUserError
java.util.List loadResourcesList(java.lang.String fieldOrder, java.lang.String typeOrder) throws it.eng.spago.error.EMFUserError
it.eng.spago.error.EMFUserError
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |