public interface InteractiveReportTaskService
User can call jet.server.api.RptServer.getInteractiveReportTaskService() to get instance of this interface.
| Modifier and Type | Method and Description |
|---|---|
void |
fireEvent(boolean spreadOnCluster,
ActionEvent... event)
Fires one or more ActionEvent.
For example: |
void fireEvent(boolean spreadOnCluster,
ActionEvent... event)
throws ActionEventException
RptServer server = HttpUtil.getHttpRptServer(); InteractiveReportTaskService service = server.getInteractiveReportTaskService(); Mapprops = new HashMap(); props.put(KEEP_LAST_RECORDS, 10); props.put(REFRESH_INTERVAL, 10000L); service.fireEvent(true, new RealtimeChartEvent("admin", null, null, null, props));
spreadOnCluster - true will spread event on all of cluster nodes (if cluster is enabled), otherwise only fire event on the connected server.event - ActionEvent to be fired.ActionEventException - performed event on the target occurs exception.