Package com.netflix.exhibitor.core.analyze

Examples of com.netflix.exhibitor.core.analyze.Analysis


                    return new PathAndMax(request.getPath(), request.getMax());
                }
            }
        );
        PathAnalyzer        analyzer = new PathAnalyzer(context.getExhibitor(), pathAndMaxes);
        Analysis            analysis = analyzer.analyze();

        Iterable<PathAnalysisNode>  transformed = Iterables.transform
        (
            analysis.getCompleteData(),
            new Function<PathComplete, PathAnalysisNode>()
            {
                @Override
                public PathAnalysisNode apply(PathComplete pathComplete)
                {
                    return new PathAnalysisNode(pathComplete.getPath(), pathComplete.getMax(), pathComplete.getChildIds());
                }
            }
        );
        Iterable<IdList>   transformedPossibleCycles = Iterables.transform
        (
            analysis.getPossibleCycles(),
            new Function<Set<String>, IdList>()
            {
                @Override
                public IdList apply(Set<String> s)
                {
                    return new IdList(Lists.newArrayList(s));
                }
            }
        );
        String              error = analysis.getError();
        PathAnalysis        response;
        try
        {
            response = new PathAnalysis((error != null) ? error : "", Lists.newArrayList(transformed), Lists.newArrayList(transformedPossibleCycles));
        }
View Full Code Here

TOP

Related Classes of com.netflix.exhibitor.core.analyze.Analysis

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.