public final class Repository
extends java.lang.Object
implements java.lang.AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
static short |
BUCKETS |
static java.lang.String |
KEYSPACE |
| Constructor and Description |
|---|
Repository(java.lang.String keyspace,
com.datastax.driver.core.Cluster cluster) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
java.util.List<java.nio.ByteBuffer> |
getDependencies(long startDate,
long endDate) |
java.util.Set<java.lang.String> |
getServiceNames() |
java.util.Set<java.lang.String> |
getSpanNames(java.lang.String serviceName) |
java.util.Map<java.lang.Long,java.util.List<java.nio.ByteBuffer>> |
getSpansByTraceIds(java.lang.Long[] traceIds,
int limit)
Get the available trace information from the storage system.
|
long |
getSpanTtlSeconds(long traceId) |
java.util.List<java.lang.String> |
getTopAnnotations(java.lang.String key) |
java.util.Map<java.lang.Long,java.lang.Long> |
getTraceDuration(boolean head,
long[] traceIds) |
java.util.Map<java.lang.Long,java.lang.Long> |
getTraceIdsByAnnotation(java.nio.ByteBuffer annotationKey,
long from,
int limit) |
java.util.Map<java.lang.Long,java.lang.Long> |
getTraceIdsByServiceName(java.lang.String serviceName,
long to,
int limit) |
java.util.Map<java.lang.Long,java.lang.Long> |
getTraceIdsBySpanName(java.lang.String serviceName,
java.lang.String spanName,
long to,
int limit) |
void |
storeDependencies(long startFlooredToDay,
java.nio.ByteBuffer dependencies) |
void |
storeServiceName(java.lang.String serviceName,
int ttl) |
void |
storeSpan(long traceId,
long timestamp,
java.lang.String spanName,
java.nio.ByteBuffer span,
int ttl)
Store the span in the underlying storage for later retrieval.
|
void |
storeSpanName(java.lang.String serviceName,
java.lang.String spanName,
int ttl) |
void |
storeTopAnnotations(java.lang.String key,
java.util.List<java.lang.String> annotations) |
void |
storeTraceDuration(long traceId,
long timestamp,
int ttl) |
void |
storeTraceIdByAnnotation(java.nio.ByteBuffer annotationKey,
long timestamp,
long traceId,
int ttl) |
void |
storeTraceIdByServiceName(java.lang.String serviceName,
long timestamp,
long traceId,
int ttl) |
void |
storeTraceIdBySpanName(java.lang.String serviceName,
java.lang.String spanName,
long timestamp,
long traceId,
int ttl) |
java.util.Set<java.lang.Long> |
tracesExist(java.lang.Long[] traceIds) |
public static final java.lang.String KEYSPACE
public static final short BUCKETS
public Repository(java.lang.String keyspace,
com.datastax.driver.core.Cluster cluster)
public void storeSpan(long traceId,
long timestamp,
java.lang.String spanName,
java.nio.ByteBuffer span,
int ttl)
public java.util.Set<java.lang.Long> tracesExist(java.lang.Long[] traceIds)
public java.util.Map<java.lang.Long,java.util.List<java.nio.ByteBuffer>> getSpansByTraceIds(java.lang.Long[] traceIds,
int limit)
public long getSpanTtlSeconds(long traceId)
public java.util.List<java.lang.String> getTopAnnotations(java.lang.String key)
public void storeTopAnnotations(java.lang.String key,
java.util.List<java.lang.String> annotations)
public void storeDependencies(long startFlooredToDay,
java.nio.ByteBuffer dependencies)
public java.util.List<java.nio.ByteBuffer> getDependencies(long startDate,
long endDate)
public java.util.Set<java.lang.String> getServiceNames()
public void storeServiceName(java.lang.String serviceName,
int ttl)
public java.util.Set<java.lang.String> getSpanNames(java.lang.String serviceName)
public void storeSpanName(java.lang.String serviceName,
java.lang.String spanName,
int ttl)
public java.util.Map<java.lang.Long,java.lang.Long> getTraceIdsByServiceName(java.lang.String serviceName,
long to,
int limit)
public void storeTraceIdByServiceName(java.lang.String serviceName,
long timestamp,
long traceId,
int ttl)
public java.util.Map<java.lang.Long,java.lang.Long> getTraceIdsBySpanName(java.lang.String serviceName,
java.lang.String spanName,
long to,
int limit)
public void storeTraceIdBySpanName(java.lang.String serviceName,
java.lang.String spanName,
long timestamp,
long traceId,
int ttl)
public java.util.Map<java.lang.Long,java.lang.Long> getTraceIdsByAnnotation(java.nio.ByteBuffer annotationKey,
long from,
int limit)
public void storeTraceIdByAnnotation(java.nio.ByteBuffer annotationKey,
long timestamp,
long traceId,
int ttl)
public java.util.Map<java.lang.Long,java.lang.Long> getTraceDuration(boolean head,
long[] traceIds)
public void storeTraceDuration(long traceId,
long timestamp,
int ttl)
public void close()
close in interface java.lang.AutoCloseable