Package com.dottydingo.service.tracelog

Examples of com.dottydingo.service.tracelog.Trace


    @Override
    public void completeRequest(C endpointContext)
    {
        MDC.put("CID", endpointContext.getCorrelationId());

        Trace trace = endpointContext.getTrace();
        if(trace!= null)
            traceManager.associateTrace(trace);

        ContextStatus contextStatus = contextStatusRegistry.getContextStatus(endpointContext.getRequestId());
        if(contextStatus != null)
            contextStatusRegistry.associateContextStatus(contextStatus);

        try
        {
            for (CompletionCallback<C> callback : completionCallbacks)
            {
                callback.onComplete(endpointContext);
            }
        }
        catch (Throwable throwable)
        {
            logger.error("Error completing request.", throwable);
        }

        if (trace != null)
        {
            traceManager.disassociateTrace();

            try
            {
                trace.close();
            }
            catch (Throwable t)
            {
                logger.error("Error closing trace.", t);
            }
View Full Code Here


    @Override
    public void completeRequest(C endpointContext)
    {
        MDC.put("CID", endpointContext.getCorrelationId());

        Trace trace = endpointContext.getTrace();
        if(trace!= null)
            traceManager.associateTrace(trace);

        ContextStatus contextStatus = contextStatusRegistry.getContextStatus(endpointContext.getRequestId());
        if(contextStatus != null)
            contextStatusRegistry.associateContextStatus(contextStatus);

        try
        {
            for (CompletionCallback<C> callback : completionCallbacks)
            {
                callback.onComplete(endpointContext);
            }
        }
        catch (Throwable throwable)
        {
            logger.error("Error completing request.", throwable);
        }

        if (trace != null)
        {
            traceManager.disassociateTrace();

            try
            {
                trace.close();
            }
            catch (Throwable t)
            {
                logger.error("Error closing trace.", t);
            }
View Full Code Here

        if(phaseContext.isTimedOut())
            throw new EndpointTimeoutException(String.format("Endpoint request timed out."));

        MDC.put("CID",phaseContext.getCorrelationId());

        Trace trace = phaseContext.getTrace();
        if(trace!= null)
            traceManager.associateTrace(trace);

        ContextStatus contextStatus = contextStatusRegistry.getContextStatus(phaseContext.getRequestId());
        if(contextStatus != null)
View Full Code Here

TOP

Related Classes of com.dottydingo.service.tracelog.Trace

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.