Class DATLoadMRelChartData
java.lang.Object
overit.geocall.da.DATask
overit.geocallapp.wfm.notifications.dashboard.machinereliability.DATLoadMRelChartData
- All Implemented Interfaces:
Serializable,Runnable,Identified,Tool
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DADashboardprotected DBViewprotected DBViewprotected DBViewprotected DBViewprotected HashGetterprotected Longstatic final Longstatic final LongFields inherited from class overit.geocall.da.DATask
_usedConnections, _usedCouriers -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody()Abstract method, that must be implemented, that represent the start point of the task.voidexecute(PooledConnection conn) protected DBViewprotected voidgetLastFailureForFacility(DADashboard daDashboard, DBView dbvData, Long acliId, PooledConnection conn) protected DBViewgetMDT()protected DBViewgetMTBF()protected DBViewgetMTTR()protected voidLoad average time dbviewsprotected static final SimpleDateFormatsdfDays()protected static final SimpleDateFormatprotected static final SimpleDateFormatsdfWeeks()protected static final SimpleDateFormatsdfYear()protected voidsetFilter(HashGetter hgFilter) protected voidMethods inherited from class overit.geocall.da.DATask
commit, deliverCourier, getConnection, getDA, getIdentity, getServiceConnection, holdFactoryCourier, holdUserCourier, releaseConnection, rollback, run, setIdentity, start, startInBackground, synchronizeOn
-
Field Details
-
_type
-
TYPE_FAILURES_NUM
-
TYPE_AVERAGE_TIME
-
_daDashboard
-
_dbvFailuresNum
-
_dbvMTBF
-
_dbvMDT
-
_dbvMTTR
-
_hgFilter
-
-
Constructor Details
-
DATLoadMRelChartData
public DATLoadMRelChartData()
-
-
Method Details
-
sdfDays
-
sdfWeeks
-
sdfMonths
-
sdfYear
-
setType
-
getFailuresNumber
-
getMTBF
-
getMDT
-
getMTTR
-
setFilter
-
body
Description copied from class:DATaskAbstract method, that must be implemented, that represent the start point of the task. The method contains the application logic of the specific task.- Specified by:
bodyin classDATask- Throws:
DAException- If there is a (blocking) data-access error, a DAException is thrown to the callerDAValidateException- If there are error in the data validation phase, a DAValidateException is thrown
-
execute
- Throws:
DAExceptionDAValidateException
-
loadAverageTimeData
Load average time dbviews- Parameters:
conn-- Throws:
DAExceptionDAValidateException
-
getLastFailureForFacility
protected void getLastFailureForFacility(DADashboard daDashboard, DBView dbvData, Long acliId, PooledConnection conn)
-