public String getActiveExecutionPlanConfigurationContent( String planName, AxisConfiguration axisConfiguration) throws ExecutionPlanConfigurationException { int tenantId = PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantId(); ExecutionPlanConfigurationFile configFile = getExecutionPlanConfigurationFileByPlanName(planName, tenantId); if (configFile == null) { throw new ExecutionPlanConfigurationException( "Configuration file for " + planName + "doesn't exist."); } return EventProcessorConfigurationFilesystemInvoker.readExecutionPlanConfigFile( configFile.getFileName(), axisConfiguration); }
public String getInactiveExecutionPlanConfigurationContent( String filename, AxisConfiguration axisConfiguration) throws ExecutionPlanConfigurationException { return EventProcessorConfigurationFilesystemInvoker.readExecutionPlanConfigFile( filename, axisConfiguration); }