Class ReportsHandler
- java.lang.Object
-
- org.openmetadata.service.events.scheduled.ReportsHandler
-
public class ReportsHandler extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringCRON_TRIGGERstatic StringDATA_INSIGHT_EMAIL_JOBstatic StringEMAIL_REPORTstatic StringJOB_CONTEXT_CHART_REPOstatic StringSEARCH_CLIENT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDataReportConfig(EventSubscription dataReport)voiddeleteDataReportConfig(EventSubscription dataReport)static ReportsHandlergetInstance()ConcurrentMap<UUID,org.quartz.JobDetail>getReportMap()static voidinitialize(CollectionDAO dao, SearchClient searchClient)static voidshutDown()javax.ws.rs.core.ResponsetriggerExistingDataInsightJob(EventSubscription dataReport)voidupdateDataReportConfig(EventSubscription dataReport)
-
-
-
Field Detail
-
DATA_INSIGHT_EMAIL_JOB
public static final String DATA_INSIGHT_EMAIL_JOB
- See Also:
- Constant Field Values
-
EMAIL_REPORT
public static final String EMAIL_REPORT
- See Also:
- Constant Field Values
-
CRON_TRIGGER
public static final String CRON_TRIGGER
- See Also:
- Constant Field Values
-
JOB_CONTEXT_CHART_REPO
public static final String JOB_CONTEXT_CHART_REPO
- See Also:
- Constant Field Values
-
SEARCH_CLIENT
public static final String SEARCH_CLIENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static ReportsHandler getInstance()
-
getReportMap
public ConcurrentMap<UUID,org.quartz.JobDetail> getReportMap()
-
initialize
public static void initialize(CollectionDAO dao, SearchClient searchClient) throws org.quartz.SchedulerException
- Throws:
org.quartz.SchedulerException
-
addDataReportConfig
public void addDataReportConfig(EventSubscription dataReport)
-
updateDataReportConfig
public void updateDataReportConfig(EventSubscription dataReport) throws org.quartz.SchedulerException
- Throws:
org.quartz.SchedulerException
-
deleteDataReportConfig
public void deleteDataReportConfig(EventSubscription dataReport) throws org.quartz.SchedulerException
- Throws:
org.quartz.SchedulerException
-
shutDown
public static void shutDown() throws org.quartz.SchedulerException- Throws:
org.quartz.SchedulerException
-
triggerExistingDataInsightJob
public javax.ws.rs.core.Response triggerExistingDataInsightJob(EventSubscription dataReport) throws org.quartz.SchedulerException
- Throws:
org.quartz.SchedulerException
-
-