Package com.cisco.oss.foundation.monitoring.services

Examples of com.cisco.oss.foundation.monitoring.services.ServiceDetails


    public MonitoringFilter(String serviceName, HttpThreadPool threadPool) {
        super(serviceName);
        description = ConfigurationFactory.getConfiguration().getString(serviceName + ".http.serviceDescription", "DEFAULT_DESCRIPTION");
        port = ConfigurationFactory.getConfiguration().getInt(serviceName + ".http.port", 8080);
        serviceDetails = new ServiceDetails(description, serviceName, "HTTP", port);
        this.threadPool = threadPool;
        uniqueUriMonitoringEnabled = ConfigurationFactory.getConfiguration().getBoolean(serviceName + ".http.monitoringFilter.uniqueUriMonitoringEnabled", false);
        if (!uniqueUriMonitoringEnabled) {
            populateBoyersList();
        }
View Full Code Here


    @Override
    public void doFilterImpl(final ServletRequest request, final ServletResponse response, final FilterChain chain) throws IOException, ServletException {

        long startTime = System.currentTimeMillis();
        ServiceDetails reqServiceDetails = null;
        HttpServletRequest httpServletRequest = (HttpServletRequest) request;
        HttpServletResponse httpServletResponse = (HttpServletResponse) response;
        String methodName = httpServletRequest.getMethod();
        if (uniqueUriMonitoringEnabled) {
            methodName += ":" + httpServletRequest.getRequestURI();
        }

        boolean reportToMonitoring = true;

        try {
            LOGGER.trace("Monitoring filter: Request processing started at: {}", startTime);

//      methodName = httpServletRequest.getMethod() + ":" + httpServletRequest.getRequestURI().toString();
            methodName = updateMethodName(httpServletRequest, methodName);
            LOGGER.trace("transaction method name is: {}", methodName);

            RMIMonitoringAgent.getInstance().register();


            reqServiceDetails = serviceDetails;


            reqServiceDetails = new ServiceDetails(description, serviceName, "HTTP", port);


            CommunicationInfo.getCommunicationInfo().transactionStarted(reqServiceDetails, methodName, threadPool.getThreads());

        } catch (Exception e) {
View Full Code Here

TOP

Related Classes of com.cisco.oss.foundation.monitoring.services.ServiceDetails

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.