Class BTBasicPrediction
java.lang.Object
overit.geocall.bl.BusinessTask<Void>
overit.geocallapp.wfm.ai.bl.processing.task.BTBasicAIProcess
overit.geocallapp.wfm.ai.bl.processing.task.BTBasicPrediction
- All Implemented Interfaces:
Serializable,Tool
- Direct Known Subclasses:
BTPredictionDuration,BTPredictionPPartsManagement,BTPredictionTeamSuggestion
- Since:
- 9.2
- See Also:
- GCApi:
- task
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected AIPredictionAPIstatic final Stringstatic final Stringstatic final Stringstatic final longstatic final StringFields inherited from class overit.geocallapp.wfm.ai.bl.processing.task.BTBasicAIProcess
algorithmName, asyncQueueMode, configurationParamsHistory, elaborationHistory, factory, filesToDelete, headers, instanceType, modelName, resourcesFolder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract FilebuildFileToTransfer(DBView operations, PoolKit pk) Build the File object that must be loaded on AWSprotected voidelaborateTask(PoolKit pk) protected StringgetAwsUploadPath(String algorithm, String model) protected intbooleanprotected abstract voidElaborate prediction results.voidsetSingleCall(boolean singleCall) Methods inherited from class overit.geocallapp.wfm.ai.bl.processing.task.BTBasicAIProcess
body, buildHeaders, checkConfiguration, clearOldLogs, deleteFileS3, deleteTemporaryFiles, getAiConfiguration, getConfigurationParamsHistory, getElaborationHistory, getError, getJobName, getResourcesFolder, getTrainingType, isAsyncQueueMode, prepareDataForApi, setAiConfiguration, setAsyncQueueMode, setJobName, setResourcesFolder, setTrainingType, uploadFileS3, writeLogTableMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Field Details
-
FIELD_START_DATE
- See Also:
-
FIELD_END_DATE
- See Also:
-
FIELD_OPERATIONS
- See Also:
-
REPORT_FILENAME
- See Also:
-
MAX_ROWS_REST_REQUEST
public static final long MAX_ROWS_REST_REQUEST- See Also:
-
api
-
allLogs
-
-
Constructor Details
-
BTBasicPrediction
public BTBasicPrediction()
-
-
Method Details
-
isSingleCall
public boolean isSingleCall() -
setSingleCall
public void setSingleCall(boolean singleCall) -
elaborateTask
- Specified by:
elaborateTaskin classBTBasicAIProcess- Throws:
DAExceptionDAValidateException
-
getAwsUploadPath
- Overrides:
getAwsUploadPathin classBTBasicAIProcess- Parameters:
algorithm-model-- Returns:
-
buildOperationsMap
protected abstract HashMap<Date,DBView> buildOperationsMap(PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
buildFileToTransfer
protected abstract File buildFileToTransfer(DBView operations, PoolKit pk) throws DAException, DAValidateException Build the File object that must be loaded on AWS- Parameters:
operations-pk-- Returns:
- Throws:
DAExceptionDAValidateException
-
managePredictResults
protected abstract void managePredictResults(List<Map<String, Object>> predictionResult, PoolKit pk) throws DAException, DAValidateExceptionElaborate prediction results.- Parameters:
predictionResult- the prediction resultpk- the pk- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
getLogValidityDays
protected int getLogValidityDays()- Specified by:
getLogValidityDaysin classBTBasicAIProcess
-