Package com.twitter.zipkin.gen

Examples of com.twitter.zipkin.gen.Endpoint


    private EndPointSubmitterImpl endPointSubmitter;

    @Before
    public void setUp() {
        mockState = mock(ServerAndClientSpanState.class);
        mockEndPoint = new Endpoint();
        endPointSubmitter = new EndPointSubmitterImpl(mockState);
    }
View Full Code Here


    }

    @Test
    public void testSubmit() {
        endPointSubmitter.submit(IP, PORT, SERVICE_NAME);
        final Endpoint expectedEndPoint = new Endpoint(ipAddressToInt(IP), (short)PORT, SERVICE_NAME);
        verify(mockState).setServerEndPoint(expectedEndPoint);
        verifyNoMoreInteractions(mockState);
    }
View Full Code Here

    private Endpoint endPoint;
    private Span mockSpan;

    @Before
    public void setup() {
        endPoint = new Endpoint();
        mockSpan = mock(Span.class);
        abstractAnnotationSubmitter = new AbstractAnnotationSubmitter() {

            @Override
            Span getSpan() {
View Full Code Here

    private TraceFilter mockTraceFilter2;

    @Before
    public void setup() {
        mockState = mock(ServerAndClientSpanState.class);
        endPoint = new Endpoint();
        mockTraceFilter = mock(TraceFilter.class);
        mockTraceFilter2 = mock(TraceFilter.class);
        when(mockState.getServerEndPoint()).thenReturn(endPoint);
        when(mockTraceFilter.trace(REQUEST_NAME)).thenReturn(true);
        when(mockTraceFilter2.trace(REQUEST_NAME)).thenReturn(true);
View Full Code Here

    @Override
    public Endpoint getClientEndPoint() {
        if(currentClientServiceName == null){
            return endPoint;
        } else {
            Endpoint newEndPoint = new Endpoint(endPoint);
            newEndPoint.setService_name(currentClientServiceName);
            return newEndPoint;
        }
    }
View Full Code Here

     */
    @Override
    public void submit(final String ip, final int port, final String serviceName) {

        final int ipv4 = ipAddressToInt(ip);
        final Endpoint endpoint = new Endpoint(ipv4, (short)port, serviceName);

        spanstate.setServerEndPoint(endpoint);
    }
View Full Code Here

        mockServerSpanState = mock(ServerSpanState.class);
        mockSpanCollector = mock(SpanCollector.class);
        mockSpan = mock(Span.class);
        mockServerSpan = mock(ServerSpan.class);

        mockEndPoint = new Endpoint();
        mockRandom = mock(Random.class);
        mockTraceFilter1 = mock(TraceFilter.class);
        mockTraceFilter2 = mock(TraceFilter.class);

        traceFilters = Arrays.asList(mockTraceFilter1, mockTraceFilter2);
View Full Code Here

    public Endpoint getClientEndPoint() {
        final String serviceName = currentClientServiceName.get();
        if (serviceName == null) {
            return endPoint;
        } else {
            final Endpoint ep = new Endpoint(endPoint);
            ep.setService_name(serviceName);
            return ep;
        }
    }
View Full Code Here

TOP

Related Classes of com.twitter.zipkin.gen.Endpoint

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.