Package org.apache.sirona.tracking

Examples of org.apache.sirona.tracking.PathTrackingEntry


        for ( Row<String, String, String> row : rows.getList() )
        {
            ColumnSlice<String, String> columnSlice = row.getColumnSlice();

            PathTrackingEntry pathTrackingEntry = map( columnSlice );

            entries.add( pathTrackingEntry );
        }

        return entries;
View Full Code Here


        for ( Row<String, String, Long> row : rows.getList() )
        {
            ColumnSlice<String, Long> columnSlice = row.getColumnSlice();

            PathTrackingEntry pathTrackingEntry = map( columnSlice );

            ids.add( new PathCallInformation( pathTrackingEntry.getTrackingId(),
                                              new Date( pathTrackingEntry.getStartTime() / 1000000 ) ) );
        }

        return ids;
    }
View Full Code Here

        for ( Row<String, String, String> row : cResult.get().getList() )
        {
            ColumnSlice<String, String> columnSlice = row.getColumnSlice();

            PathTrackingEntry pathTrackingEntry = map( columnSlice );

            String trackingId = pathTrackingEntry.getTrackingId();

            Set<PathTrackingEntry> pathTrackingEntries = entries.get( trackingId );
            if ( pathTrackingEntries == null )
            {
                pathTrackingEntries = new TreeSet<PathTrackingEntry>( PathTrackingEntryComparator.INSTANCE );
View Full Code Here

        int level = getOrDefault( serializer, //
                                  columnSlice.getColumnByName( "level" ), //
                                  LongSerializer.get() ).intValue();

        return new PathTrackingEntry( trackingId, //
                                      nodeId, //
                                      className, //
                                      methodName, //
                                      startTime, //
                                      executionTime, //
View Full Code Here

    {
        InMemoryPathTrackingDataStore store = new InMemoryPathTrackingDataStore();

        long now = System.nanoTime();

        PathTrackingEntry entry =
            new PathTrackingEntry( UUID.randomUUID().toString(), "nodeId", "className", "methodName", now, now + 1, 1 );

        store.store( entry );

        Map<String, Set<PathTrackingEntry>> all = store.getPathTrackingEntries();

        Assert.assertNotNull( all );
        Assert.assertEquals( 1, all.size() );
        Assert.assertEquals( 1, all.entrySet().iterator().next().getValue().size() );

        entry = all.entrySet().iterator().next().getValue().iterator().next();

        Assert.assertEquals( "nodeId", entry.getNodeId() );

        /*
        we do not clear anymore entries pointer are freeing once sended
        store.clearEntries();

View Full Code Here

        disruptor = new Disruptor<PathTrackingEntry>( new EventFactory<PathTrackingEntry>()
        {
            @Override
            public PathTrackingEntry newInstance()
            {
                return new PathTrackingEntry();
            }
        }, ringBufferSize, exec, ProducerType.SINGLE, new BusySpinWaitStrategy()
        );

        for ( int i = 0; i < numberOfConsumers; i++ )
View Full Code Here

TOP

Related Classes of org.apache.sirona.tracking.PathTrackingEntry

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.