Top Inners Constructors Methods
org.terracotta.statistics

public final Class StatisticBuilder

extends Object
Class Inheritance
Imports
org.terracotta.statistics.observer.OperationObserver, java.util.Collections, .HashMap, .HashSet, .Map, .Set

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
StatisticBuilder.AbstractStatisticBuilder<
the generic type
T extends StatisticBuilder.AbstractStatisticBuilder<T>
>

The Class AbstractStatisticBuilder.

public static class
StatisticBuilder.OperationStatisticBuilder<
the generic type
T extends Enum<T>
>

The Class OperationStatisticBuilder.

Constructor Summary

AccessConstructor and Description
private
StatisticBuilder()

Instantiates a new statistic builder.

Method Summary

Modifier and TypeMethod and Description
public static <
the generic type
T extends Enum<T>
>
StatisticBuilder.OperationStatisticBuilder<T>

Returns:

the operation statistic builder
operation
(Class<T>
the type
type
)

Operation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

StatisticBuilderback to summary
private StatisticBuilder()

Instantiates a new statistic builder.

Method Detail

operationback to summary
public static <T extends Enum<T>> StatisticBuilder.OperationStatisticBuilder<T> operation(Class<T> type)

Operation.

Parameters
<T>
the generic type
type:Class<T>

the type

Returns:StatisticBuilder.OperationStatisticBuilder<T>

the operation statistic builder

org.terracotta.statistics back to summary

pack-priv Class StatisticBuilder.AbstractStatisticBuilder<T extends StatisticBuilder.AbstractStatisticBuilder<T>>

extends Object
Class Inheritance
  • java.lang.Object
  • org.terracotta.statistics.StatisticBuilder.AbstractStatisticBuilder
Known Direct Subclasses
org.terracotta.statistics.StatisticBuilder.OperationStatisticBuilder
Type Parameters
<T>
the generic type

The Class AbstractStatisticBuilder.

Field Summary

Modifier and TypeField and Description
protected Object
context

The context.

protected String
name

The name.

protected final Map<String, Object>
properties

The properties.

protected final Set<String>
tags

The tags.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public T

Returns:

the builder
named
(String
the name
name
)

Named.

public T

Returns:

the builder
of
(Object
the of
of
)

Of.

public T

Returns:

the builder
property
(String
the property key
key
,
Object
the property value
value
)

Tag.

public T

Returns:

the builder
tag
(String...
the tags
tags
)

Tag.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

contextback to summary
protected Object context

The context.

nameback to summary
protected String name

The name.

propertiesback to summary
protected final Map<String, Object> properties

The properties.

tagsback to summary
protected final Set<String> tags

The tags.

Constructor Detail

AbstractStatisticBuilderback to summary
pack-priv AbstractStatisticBuilder()

Method Detail

namedback to summary
public T named(String name)

Named.

Parameters
name:String

the name

Returns:T

the builder

Annotations
@SuppressWarnings:unchecked
ofback to summary
public T of(Object of)

Of.

Parameters
of:Object

the of

Returns:T

the builder

Annotations
@SuppressWarnings:unchecked
propertyback to summary
public T property(String key, Object value)

Tag.

Parameters
key:String

the property key

value:Object

the property value

Returns:T

the builder

Annotations
@SuppressWarnings:unchecked
tagback to summary
public T tag(String... tags)

Tag.

Parameters
tags:String[]

the tags

Returns:T

the builder

Annotations
@SuppressWarnings:unchecked
org.terracotta.statistics back to summary

public Class StatisticBuilder.OperationStatisticBuilder<T extends java.lang.Enum<T>>

extends StatisticBuilder.AbstractStatisticBuilder<StatisticBuilder.OperationStatisticBuilder<T extends Enum<T>>>
Class Inheritance
Type Parameters
<T>
the generic type

The Class OperationStatisticBuilder.

Field Summary

Modifier and TypeField and Description
private final Class<T>
type

The type.

Inherited from org.terracotta.statistics.StatisticBuilder.AbstractStatisticBuilder:
contextnamepropertiestags

Constructor Summary

AccessConstructor and Description
public
OperationStatisticBuilder(Class<T>
the type
type
)

Instantiates a new operation statistic builder.

Method Summary

Modifier and TypeMethod and Description
public OperationObserver<T>

Returns:

the operation observer
build
()

Builds the.

Inherited from org.terracotta.statistics.StatisticBuilder.AbstractStatisticBuilder:
namedofpropertytag

Field Detail

typeback to summary
private final Class<T> type

The type.

Constructor Detail

OperationStatisticBuilderback to summary
public OperationStatisticBuilder(Class<T> type)

Instantiates a new operation statistic builder.

Parameters
type:Class<T>

the type

Method Detail

buildback to summary
public OperationObserver<T> build()

Builds the.

Returns:OperationObserver<T>

the operation observer