Package com.volantis.synergetics.reporting

Examples of com.volantis.synergetics.reporting.ReportHandler


                                     target.getParentTransactionID());
                    // we also add, to the map, the class that caused this
                    // event to be fired. This is so OSGi knows what event
                    // subtype to use
                    localMetrics.put(Class.class, target.getProxiedClass());
                    ReportHandler localHandler = target.getReportHandler();
                    if (null != localHandler) {
                        localHandler.report(localMetrics);
                    } else { // we dispatch to the OSGi Event Listeners

                    }
                    localMetrics.clear();
                    return null;
View Full Code Here


                    // we also add, to the map, the class that caused this
                    // event to be fired. This is so OSGi knows what event
                    // subtype to use
                    localMetrics.put(Class.class, target.getProxiedClass());

                    ReportHandler localHandler = target.getReportHandler();
                    if (null != localHandler) {
                        localHandler.report(localMetrics);
                    } else { // we dispatch to the OSGi Event Listeners

                    }
                    localMetrics.clear();
                    return null;
View Full Code Here

                    // subtype to use
                    localMetrics.put(Class.class, target.getProxiedClass());
                    localMetrics.put(DynamicReport.class,
                                     target.getOptionalConfigurationName());

                    ReportHandler localHandler = target.getReportHandler();
                    if (null != localHandler) {
                        localHandler.report(localMetrics);
                    } else { // we dispatch to the OSGi Event Listeners

                    }
                    localMetrics.clear();
View Full Code Here

                            } catch (NoSuchMethodException e) {
                                LOGGER.error("failed-to-create-class",
                                        handlerClass,
                                        e);
                            }
                            ReportHandler reportHandler = null;
                            try {
                                Object[] args = new Object[2];
                                args[0] = buildGenericMap(genericHandler);
                                args[1] = report.getBinding();
                                reportHandler = (ReportHandler) con.newInstance(args);
                            } catch (InstantiationException e) {
                                LOGGER.error("failed-to-load-class",
                                        handlerClass,
                                        e);
                            } catch (IllegalAccessException e) {
                                LOGGER.error("failed-to-load-class",
                                        handlerClass,
                                        e);
                            } catch (InvocationTargetException e) {
                                LOGGER.error("failed-to-load-class",
                                        handlerClass,
                                        e);
                            }
                            handlers.put(report.getBinding(), reportHandler);

                        } catch (Exception e) {
                            LOGGER.error("failed-to-load-class", className);
                        }

                    } else if (report.getSqlHandler() != null) {
                        if (existsDatasourceDefinition(
                                datasourceConfigs, report.getSqlHandler())) {
                            ConnectionStrategy connStrategy =
                                DatasourceManager.getInstance().createConnectionStrategy(
                                        (DatasourceConfiguration) datasourceConfigs.get(
                                                report.getSqlHandler().getDatasourceName()));
                            ReportHandler handler =
                                new JDBCReportHandler(connStrategy, report);
                            handlers.put(report.getBinding(), handler);
                        } else {
                            LOGGER.error("sql-handler-datasource-not-found",
                                    new Object[] {report.getSqlHandler().getDatasourceName(),
View Full Code Here

     *            instance as the parent (or enclosing) reporting transaction
     * @return an implementation of the specified interface.
     */
    public Report createReport(Class clazz, String parentTransactionID) {
        // look up the handler bound to this interface
        ReportHandler handler = (ReportHandler) handlers.get(clazz.getName());
        // we can pass a null handler to the MetricGroupProxy so no
        // check needed
        String transID = idGenerator.getTransactionID();
        MetricGroupProxy proxy = new MetricGroupProxy(boundInterfaceCache,
                                                      boundDynamicReportCache,
View Full Code Here

     * @return an implementation of the DynamicReport interface.
     */
    public DynamicReport createDynamicReport(String binding,
            String parentTransactionID) {
        // look up the handler bound to handlerKey
        ReportHandler handler = (ReportHandler) handlers.get(binding);
        // we can pass a null handler to the MetricGroupProxy so no
        // check needed
        String transID = idGenerator.getTransactionID();
        Class drc = com.volantis.synergetics.reporting.DynamicReport.class;
        MetricGroupProxy proxy = new MetricGroupProxy(boundInterfaceCache,
View Full Code Here

TOP

Related Classes of com.volantis.synergetics.reporting.ReportHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.